kboss/b/product/add_user_inquiry.dspy
2025-07-16 14:27:17 +08:00

20 lines
587 B
Plaintext

async def add_user_inquiry(ns={}):
db = DBPools()
async with db.sqlorContext('kboss') as sor:
ns_c = {
'id': uuid(),
'content': ns.get('content'),
'custom_type': ns.get('custom_type'),
'name': ns.get('name'),
'phone': ns.get('phone'),
'company': ns.get('company'),
'email': ns.get('email')
}
await sor.C('product_inquiry', ns_c)
return {
'status': True,
'msg': 'create success'
}
ret = await add_user_inquiry(params_kw)
return ret