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

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