rbac/www/user/userapikey/update_userapikey.dspy

22 lines
445 B
Plaintext
Raw Normal View History

2025-01-03 16:24:32 +08:00
ns = params_kw.copy()
db = DBPools()
async with db.sqlorContext('sage') as sor:
r = await sor.U('userapikey', ns)
print('update success');
return {
"widgettype":"Message",
"options":{
"title":"Update Success",
"message":"ok"
}
}
print('update failed');
return {
"widgettype":"Error",
"options":{
"title":"Update Error",
"message":"failed"
}
}