31 lines
728 B
Plaintext
31 lines
728 B
Plaintext
async def floorPriceDelete(ns={}):
|
|
"""
|
|
id *
|
|
:param ns:
|
|
:return:
|
|
"""
|
|
db = DBPools()
|
|
async with db.sqlorContext('kboss') as sor:
|
|
if not ns.get('id'):
|
|
return {
|
|
"status": False,
|
|
"msg": "floorprice id is empty, please check",
|
|
}
|
|
try:
|
|
ns['del_flg'] = '1'
|
|
await sor.U('floorprice',ns)
|
|
return {
|
|
"status": True,
|
|
"msg": "floorprice delete success",
|
|
}
|
|
except Exception as e:
|
|
raise e
|
|
return {
|
|
"status": False,
|
|
"msg": "floorprice delete failed"
|
|
}
|
|
|
|
|
|
|
|
ret = await floorPriceDelete(params_kw)
|
|
return ret |