salescrm/b/customer/addcustomer.dspy
2025-10-27 15:50:44 +08:00

16 lines
422 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

async def addcustomer(ns):
"""添加客户
org_type2为个人客户、3为公司客户
"""
db = DBPools()
async with db.sqlorContext('kboss') as sor:
if ns:
ns['id'] = uuid()
await sor.C('organization', ns)
return {'status': True, 'msg': '添加成功'}
return {'status': False, 'msg': '添加失败'}
ret = await addcustomer(params_kw)
return ret