async def resellerConfigAdd(ns={}): """ `id` VARCHAR(32) , `orgid` VARCHAR(32) comment '分销商id', `settle_mode` VARCHAR(1) DEFAULT '0' comment '结算方式', 0:日结;1:周结;2:月结;3:季结;年结 `settle_flow` VARCHAR(1) DEFAULT '0' comment '结算流程', 0:无需审批;1:需要审批 `settle_datep` VARCHAR(100) comment '结算日期模版', `salemanid` VARCHAR(32) comment '上级机构销售id', `del_flg` VARCHAR(1) DEFAULT '0' comment '删除标志', `create_at` TIMESTAMP comment '创建时间戳' :param ns: :return: """ ns['id'] = ns.get('orgid') if not ns: return { "status": False, "message": "get no params..." } db = DBPools() async with db.sqlorContext('kboss') as sor: try: await sor.C('reseller', ns) return { "status": True, "msg": "resellerConfigAdd add success" } except Exception as e: return { "status": False, "message": "resellerConfigAdd add failed" } ret = await resellerConfigAdd(params_kw) return ret