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()]}