24 lines
620 B
Plaintext
24 lines
620 B
Plaintext
async def specification_template_delete(ns={}):
|
|
"""
|
|
规格模板删
|
|
:param ns:
|
|
:return:
|
|
"""
|
|
db = DBPools()
|
|
async with db.sqlorContext('kboss') as sor:
|
|
try:
|
|
ns['del_flg'] = '1'
|
|
await sor.U('specification',ns)
|
|
return {
|
|
"status": True,
|
|
"msg": "delete specification template success"
|
|
}
|
|
except Exception as e:
|
|
raise e
|
|
return {
|
|
"status": False,
|
|
"msg": "delete specification template failed"
|
|
}
|
|
|
|
ret = await specification_template_delete(params_kw)
|
|
return ret |