This commit is contained in:
yumoqing 2025-06-03 18:11:36 +08:00
parent a2fb1d50bb
commit ca05810fbd
5 changed files with 31 additions and 0 deletions

31
filemgr/filemgr.py Normal file
View File

@ -0,0 +1,31 @@
from ahserver.serverenv import get_serverenv
from sqlor.dbpools import DBPools
from ahserver.auth_api import get_userinfo
def get_dbname():
f = get_serverenv('get_module_dbname')
dbname = f('filemgr')
return dbname
class FileMgr:
def __init__(self, biztype):
self.biztype = biztype
async def get_bizinfo_nodes(self, request):
db = DBPools()
userinfo = await get_session_userinfo(request)
dbname = get_dbname()
async with db.sqlorContext(dbname) as sor:
ns = {
'orgid':userorgid,
'biztype':self.biztype
}
recs = await sor.R('folderinfo', ns)
return recs
return []
async def add_biznfo_node(self, request):

BIN
models/file.xlsx Normal file

Binary file not shown.

BIN
models/folder.xlsx Normal file

Binary file not shown.

BIN
models/folderinfo.xlsx Normal file

Binary file not shown.

BIN
models/~$folderinfo.xlsx Normal file

Binary file not shown.