25 lines
664 B
Plaintext
25 lines
664 B
Plaintext
async def addOrganization(ns):
|
||
|
||
"""
|
||
添加机构
|
||
:param orgname:
|
||
:param contactor:
|
||
:param contact_method:
|
||
:param reseller_id:
|
||
:param province_id:
|
||
:param city_id:
|
||
:param distinct_id:
|
||
:param address:
|
||
:param main_business:
|
||
:param orgcode:
|
||
:param license_img:
|
||
:param `org_type` VARCHAR(1) comment '机构类型:1为机构,2为个人客户、3为公司客户':
|
||
"""
|
||
db = DBPools()
|
||
async with db.sqlorContext('kboss') as sor:
|
||
ns['id'] = uuid()
|
||
await sor.C('organization', ns)
|
||
return {'status': True, 'msg': '添加成功'}
|
||
|
||
ret = await addOrganization(params_kw)
|
||
return ret |