20 lines
587 B
Plaintext
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 |