Files
SMANAGE/_api_backup/TempLateAPI/GERP/API/Department/GetDepartments.api
T
2026-06-16 11:55:14 +08:00

12 lines
476 B
Plaintext

from PDAPI import *
__metadata__ = {
"methods": ["GET", "POST"],
"blueprint": "GERP",
"permission": 1.0,
"attributes": [],
"limit": "1 per second"
}
def HandleRequest():
return {"code": 0, "count": 1000, "data": [{"DepartmentUUID": GetBytesTo16(i.DepartmentUUID), "DepartmentName": i.DepartmentName, "DepartmentEnglishName": i.DepartmentEnglishName, "DepartmentIntroduction": i.DepartmentIntroduction} for i in GERPDepartment.query.all()]}