reallife_asset/wwwroot/api/rl_org_group_delete.dspy

11 lines
436 B
Plaintext

id = params_kw.get('id', '')
if not id:
return {"widgettype":"Error","options":{"title":"删除失败","message":"id required","cwidth":16,"cheight":9,"timeout":3}}
db = DBPools()
dbname = get_module_dbname('reallife_asset')
async with db.sqlorContext(dbname) as sor:
await sor.D("rl_org_group", {"id": id})
return {"widgettype":"Message","options":{"title":"删除成功","message":"ok","cwidth":16,"cheight":9,"timeout":3}}