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

11 lines
351 B
Plaintext

async def getrorgrole(ns):
"""根据org_type 查询所有角色"""
db = DBPools()
async with db.sqlorContext('kboss') as sor:
ns['del_flg'] = '0'
reacs = await sor.R('role', {'org_type': ns.get('org_type'), 'del_flg': '0'})
return {'status': True, 'data': reacs}
ret = await getrorgrole(params_kw)
return ret