koa-boot-runtime 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aiToolRegistry.d.ts +32 -0
- package/dist/aiToolRegistry.d.ts.map +1 -0
- package/dist/aiToolRegistry.js +41 -0
- package/dist/aiToolRegistry.js.map +1 -0
- package/dist/build/routes.d.ts +3 -0
- package/dist/build/routes.d.ts.map +1 -0
- package/dist/build/routes.js +4055 -0
- package/dist/build/routes.js.map +1 -0
- package/dist/build/swagger.json +6752 -0
- package/dist/common/decorators/index.d.ts +2 -0
- package/dist/common/decorators/index.d.ts.map +1 -0
- package/dist/common/decorators/index.js +18 -0
- package/dist/common/decorators/index.js.map +1 -0
- package/dist/common/decorators/validation.d.ts +33 -0
- package/dist/common/decorators/validation.d.ts.map +1 -0
- package/dist/common/decorators/validation.js +215 -0
- package/dist/common/decorators/validation.js.map +1 -0
- package/dist/common/dto.d.ts +17 -0
- package/dist/common/dto.d.ts.map +1 -0
- package/dist/common/dto.js +28 -0
- package/dist/common/dto.js.map +1 -0
- package/dist/common/enums/base.d.ts +14 -0
- package/dist/common/enums/base.d.ts.map +1 -0
- package/dist/common/enums/base.js +14 -0
- package/dist/common/enums/base.js.map +1 -0
- package/dist/common/enums/index.d.ts +8 -0
- package/dist/common/enums/index.d.ts.map +1 -0
- package/dist/common/enums/index.js +24 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/system.d.ts +14 -0
- package/dist/common/enums/system.d.ts.map +1 -0
- package/dist/common/enums/system.js +14 -0
- package/dist/common/enums/system.js.map +1 -0
- package/dist/common/index.d.ts +6 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +25 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/paginate.d.ts +49 -0
- package/dist/common/paginate.d.ts.map +1 -0
- package/dist/common/paginate.js +47 -0
- package/dist/common/paginate.js.map +1 -0
- package/dist/common/types/index.d.ts +8 -0
- package/dist/common/types/index.d.ts.map +1 -0
- package/dist/common/types/index.js +18 -0
- package/dist/common/types/index.js.map +1 -0
- package/dist/common/types/pagination.d.ts +76 -0
- package/dist/common/types/pagination.d.ts.map +1 -0
- package/dist/common/types/pagination.js +29 -0
- package/dist/common/types/pagination.js.map +1 -0
- package/dist/common/types/request.d.ts +66 -0
- package/dist/common/types/request.d.ts.map +1 -0
- package/dist/common/types/request.js +4 -0
- package/dist/common/types/request.js.map +1 -0
- package/dist/common/types/response.d.ts +109 -0
- package/dist/common/types/response.d.ts.map +1 -0
- package/dist/common/types/response.js +50 -0
- package/dist/common/types/response.js.map +1 -0
- package/dist/common/types/sort.d.ts +71 -0
- package/dist/common/types/sort.d.ts.map +1 -0
- package/dist/common/types/sort.js +46 -0
- package/dist/common/types/sort.js.map +1 -0
- package/dist/config/database.d.ts +12 -0
- package/dist/config/database.d.ts.map +1 -0
- package/dist/config/database.js +24 -0
- package/dist/config/database.js.map +1 -0
- package/dist/config/index.d.ts +144 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +180 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/ioc.d.ts +6 -0
- package/dist/config/ioc.d.ts.map +1 -0
- package/dist/config/ioc.js +29 -0
- package/dist/config/ioc.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/auth.d.ts +3 -0
- package/dist/middleware/auth.d.ts.map +1 -0
- package/dist/middleware/auth.js +52 -0
- package/dist/middleware/auth.js.map +1 -0
- package/dist/middleware/errorHandler.d.ts +3 -0
- package/dist/middleware/errorHandler.d.ts.map +1 -0
- package/dist/middleware/errorHandler.js +40 -0
- package/dist/middleware/errorHandler.js.map +1 -0
- package/dist/middleware/logger.d.ts +3 -0
- package/dist/middleware/logger.d.ts.map +1 -0
- package/dist/middleware/logger.js +13 -0
- package/dist/middleware/logger.js.map +1 -0
- package/dist/middleware/operationLogger.d.ts +11 -0
- package/dist/middleware/operationLogger.d.ts.map +1 -0
- package/dist/middleware/operationLogger.js +155 -0
- package/dist/middleware/operationLogger.js.map +1 -0
- package/dist/middleware/permission.d.ts +23 -0
- package/dist/middleware/permission.d.ts.map +1 -0
- package/dist/middleware/permission.js +153 -0
- package/dist/middleware/permission.js.map +1 -0
- package/dist/middleware/validate.d.ts +7 -0
- package/dist/middleware/validate.d.ts.map +1 -0
- package/dist/middleware/validate.js +53 -0
- package/dist/middleware/validate.js.map +1 -0
- package/dist/middlewares.d.ts +15 -0
- package/dist/middlewares.d.ts.map +1 -0
- package/dist/middlewares.js +24 -0
- package/dist/middlewares.js.map +1 -0
- package/dist/registerRoutes.d.ts +15 -0
- package/dist/registerRoutes.d.ts.map +1 -0
- package/dist/registerRoutes.js +83 -0
- package/dist/registerRoutes.js.map +1 -0
- package/dist/system/department/department.controller.d.ts +46 -0
- package/dist/system/department/department.controller.d.ts.map +1 -0
- package/dist/system/department/department.controller.js +203 -0
- package/dist/system/department/department.controller.js.map +1 -0
- package/dist/system/department/department.model.d.ts +33 -0
- package/dist/system/department/department.model.d.ts.map +1 -0
- package/dist/system/department/department.model.js +171 -0
- package/dist/system/department/department.model.js.map +1 -0
- package/dist/system/department/department.service.d.ts +40 -0
- package/dist/system/department/department.service.d.ts.map +1 -0
- package/dist/system/department/department.service.js +99 -0
- package/dist/system/department/department.service.js.map +1 -0
- package/dist/system/dictItem/dictItem.controller.d.ts +42 -0
- package/dist/system/dictItem/dictItem.controller.d.ts.map +1 -0
- package/dist/system/dictItem/dictItem.controller.js +167 -0
- package/dist/system/dictItem/dictItem.controller.js.map +1 -0
- package/dist/system/dictItem/dictItem.model.d.ts +38 -0
- package/dist/system/dictItem/dictItem.model.d.ts.map +1 -0
- package/dist/system/dictItem/dictItem.model.js +180 -0
- package/dist/system/dictItem/dictItem.model.js.map +1 -0
- package/dist/system/dictItem/dictItem.service.d.ts +33 -0
- package/dist/system/dictItem/dictItem.service.d.ts.map +1 -0
- package/dist/system/dictItem/dictItem.service.js +97 -0
- package/dist/system/dictItem/dictItem.service.js.map +1 -0
- package/dist/system/dictType/dictType.controller.d.ts +47 -0
- package/dist/system/dictType/dictType.controller.d.ts.map +1 -0
- package/dist/system/dictType/dictType.controller.js +174 -0
- package/dist/system/dictType/dictType.controller.js.map +1 -0
- package/dist/system/dictType/dictType.model.d.ts +31 -0
- package/dist/system/dictType/dictType.model.d.ts.map +1 -0
- package/dist/system/dictType/dictType.model.js +127 -0
- package/dist/system/dictType/dictType.model.js.map +1 -0
- package/dist/system/dictType/dictType.service.d.ts +27 -0
- package/dist/system/dictType/dictType.service.d.ts.map +1 -0
- package/dist/system/dictType/dictType.service.js +74 -0
- package/dist/system/dictType/dictType.service.js.map +1 -0
- package/dist/system/employee/employee.controller.d.ts +16 -0
- package/dist/system/employee/employee.controller.d.ts.map +1 -0
- package/dist/system/employee/employee.controller.js +111 -0
- package/dist/system/employee/employee.controller.js.map +1 -0
- package/dist/system/employee/employee.model.d.ts +34 -0
- package/dist/system/employee/employee.model.d.ts.map +1 -0
- package/dist/system/employee/employee.model.js +186 -0
- package/dist/system/employee/employee.model.js.map +1 -0
- package/dist/system/employee/employee.service.d.ts +16 -0
- package/dist/system/employee/employee.service.d.ts.map +1 -0
- package/dist/system/employee/employee.service.js +49 -0
- package/dist/system/employee/employee.service.js.map +1 -0
- package/dist/system/fileUpload/fileUpload.controller.d.ts +35 -0
- package/dist/system/fileUpload/fileUpload.controller.d.ts.map +1 -0
- package/dist/system/fileUpload/fileUpload.controller.js +228 -0
- package/dist/system/fileUpload/fileUpload.controller.js.map +1 -0
- package/dist/system/fileUpload/fileUpload.model.d.ts +13 -0
- package/dist/system/fileUpload/fileUpload.model.d.ts.map +1 -0
- package/dist/system/fileUpload/fileUpload.model.js +71 -0
- package/dist/system/fileUpload/fileUpload.model.js.map +1 -0
- package/dist/system/fileUpload/fileUpload.service.d.ts +29 -0
- package/dist/system/fileUpload/fileUpload.service.d.ts.map +1 -0
- package/dist/system/fileUpload/fileUpload.service.js +61 -0
- package/dist/system/fileUpload/fileUpload.service.js.map +1 -0
- package/dist/system/loginLog/loginLog.controller.d.ts +21 -0
- package/dist/system/loginLog/loginLog.controller.d.ts.map +1 -0
- package/dist/system/loginLog/loginLog.controller.js +149 -0
- package/dist/system/loginLog/loginLog.controller.js.map +1 -0
- package/dist/system/loginLog/loginLog.model.d.ts +26 -0
- package/dist/system/loginLog/loginLog.model.d.ts.map +1 -0
- package/dist/system/loginLog/loginLog.model.js +150 -0
- package/dist/system/loginLog/loginLog.model.js.map +1 -0
- package/dist/system/loginLog/loginLog.service.d.ts +24 -0
- package/dist/system/loginLog/loginLog.service.d.ts.map +1 -0
- package/dist/system/loginLog/loginLog.service.js +87 -0
- package/dist/system/loginLog/loginLog.service.js.map +1 -0
- package/dist/system/menu/menu.controller.d.ts +46 -0
- package/dist/system/menu/menu.controller.d.ts.map +1 -0
- package/dist/system/menu/menu.controller.js +203 -0
- package/dist/system/menu/menu.controller.js.map +1 -0
- package/dist/system/menu/menu.model.d.ts +45 -0
- package/dist/system/menu/menu.model.d.ts.map +1 -0
- package/dist/system/menu/menu.model.js +254 -0
- package/dist/system/menu/menu.model.js.map +1 -0
- package/dist/system/menu/menu.service.d.ts +40 -0
- package/dist/system/menu/menu.service.d.ts.map +1 -0
- package/dist/system/menu/menu.service.js +101 -0
- package/dist/system/menu/menu.service.js.map +1 -0
- package/dist/system/operationLog/operationLog.controller.d.ts +34 -0
- package/dist/system/operationLog/operationLog.controller.d.ts.map +1 -0
- package/dist/system/operationLog/operationLog.controller.js +126 -0
- package/dist/system/operationLog/operationLog.controller.js.map +1 -0
- package/dist/system/operationLog/operationLog.model.d.ts +38 -0
- package/dist/system/operationLog/operationLog.model.d.ts.map +1 -0
- package/dist/system/operationLog/operationLog.model.js +224 -0
- package/dist/system/operationLog/operationLog.model.js.map +1 -0
- package/dist/system/operationLog/operationLog.service.d.ts +46 -0
- package/dist/system/operationLog/operationLog.service.d.ts.map +1 -0
- package/dist/system/operationLog/operationLog.service.js +109 -0
- package/dist/system/operationLog/operationLog.service.js.map +1 -0
- package/dist/system/permission/permission.controller.d.ts +18 -0
- package/dist/system/permission/permission.controller.d.ts.map +1 -0
- package/dist/system/permission/permission.controller.js +160 -0
- package/dist/system/permission/permission.controller.js.map +1 -0
- package/dist/system/permission/permission.model.d.ts +39 -0
- package/dist/system/permission/permission.model.d.ts.map +1 -0
- package/dist/system/permission/permission.model.js +220 -0
- package/dist/system/permission/permission.model.js.map +1 -0
- package/dist/system/permission/permission.service.d.ts +40 -0
- package/dist/system/permission/permission.service.d.ts.map +1 -0
- package/dist/system/permission/permission.service.js +105 -0
- package/dist/system/permission/permission.service.js.map +1 -0
- package/dist/system/role/role.controller.d.ts +16 -0
- package/dist/system/role/role.controller.d.ts.map +1 -0
- package/dist/system/role/role.controller.js +123 -0
- package/dist/system/role/role.controller.js.map +1 -0
- package/dist/system/role/role.model.d.ts +25 -0
- package/dist/system/role/role.model.d.ts.map +1 -0
- package/dist/system/role/role.model.js +133 -0
- package/dist/system/role/role.model.js.map +1 -0
- package/dist/system/role/role.service.d.ts +17 -0
- package/dist/system/role/role.service.d.ts.map +1 -0
- package/dist/system/role/role.service.js +50 -0
- package/dist/system/role/role.service.js.map +1 -0
- package/dist/system/roleMenu/roleMenu.controller.d.ts +26 -0
- package/dist/system/roleMenu/roleMenu.controller.d.ts.map +1 -0
- package/dist/system/roleMenu/roleMenu.controller.js +83 -0
- package/dist/system/roleMenu/roleMenu.controller.js.map +1 -0
- package/dist/system/roleMenu/roleMenu.model.d.ts +35 -0
- package/dist/system/roleMenu/roleMenu.model.d.ts.map +1 -0
- package/dist/system/roleMenu/roleMenu.model.js +56 -0
- package/dist/system/roleMenu/roleMenu.model.js.map +1 -0
- package/dist/system/roleMenu/roleMenu.service.d.ts +35 -0
- package/dist/system/roleMenu/roleMenu.service.d.ts.map +1 -0
- package/dist/system/roleMenu/roleMenu.service.js +77 -0
- package/dist/system/roleMenu/roleMenu.service.js.map +1 -0
- package/dist/system/rolePermission/rolePermission.controller.d.ts +36 -0
- package/dist/system/rolePermission/rolePermission.controller.d.ts.map +1 -0
- package/dist/system/rolePermission/rolePermission.controller.js +115 -0
- package/dist/system/rolePermission/rolePermission.controller.js.map +1 -0
- package/dist/system/rolePermission/rolePermission.model.d.ts +45 -0
- package/dist/system/rolePermission/rolePermission.model.d.ts.map +1 -0
- package/dist/system/rolePermission/rolePermission.model.js +87 -0
- package/dist/system/rolePermission/rolePermission.model.js.map +1 -0
- package/dist/system/rolePermission/rolePermission.service.d.ts +50 -0
- package/dist/system/rolePermission/rolePermission.service.d.ts.map +1 -0
- package/dist/system/rolePermission/rolePermission.service.js +110 -0
- package/dist/system/rolePermission/rolePermission.service.js.map +1 -0
- package/dist/system/user/user.controller.d.ts +66 -0
- package/dist/system/user/user.controller.d.ts.map +1 -0
- package/dist/system/user/user.controller.js +322 -0
- package/dist/system/user/user.controller.js.map +1 -0
- package/dist/system/user/user.model.d.ts +58 -0
- package/dist/system/user/user.model.d.ts.map +1 -0
- package/dist/system/user/user.model.js +225 -0
- package/dist/system/user/user.model.js.map +1 -0
- package/dist/system/user/user.service.d.ts +73 -0
- package/dist/system/user/user.service.d.ts.map +1 -0
- package/dist/system/user/user.service.js +388 -0
- package/dist/system/user/user.service.js.map +1 -0
- package/dist/system/userRole/userRole.controller.d.ts +33 -0
- package/dist/system/userRole/userRole.controller.d.ts.map +1 -0
- package/dist/system/userRole/userRole.controller.js +231 -0
- package/dist/system/userRole/userRole.controller.js.map +1 -0
- package/dist/system/userRole/userRole.model.d.ts +14 -0
- package/dist/system/userRole/userRole.model.d.ts.map +1 -0
- package/dist/system/userRole/userRole.model.js +58 -0
- package/dist/system/userRole/userRole.model.js.map +1 -0
- package/dist/system/userRole/userRole.service.d.ts +29 -0
- package/dist/system/userRole/userRole.service.d.ts.map +1 -0
- package/dist/system/userRole/userRole.service.js +135 -0
- package/dist/system/userRole/userRole.service.js.map +1 -0
- package/dist/systemServices.d.ts +23 -0
- package/dist/systemServices.d.ts.map +1 -0
- package/dist/systemServices.js +40 -0
- package/dist/systemServices.js.map +1 -0
- package/dist/types.d.ts +29 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +70 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/aiClient.d.ts +55 -0
- package/dist/utils/aiClient.d.ts.map +1 -0
- package/dist/utils/aiClient.js +59 -0
- package/dist/utils/aiClient.js.map +1 -0
- package/dist/utils/banner.d.ts +10 -0
- package/dist/utils/banner.d.ts.map +1 -0
- package/dist/utils/banner.js +40 -0
- package/dist/utils/banner.js.map +1 -0
- package/dist/utils/crypto.d.ts +49 -0
- package/dist/utils/crypto.d.ts.map +1 -0
- package/dist/utils/crypto.js +113 -0
- package/dist/utils/crypto.js.map +1 -0
- package/dist/utils/dataScope.d.ts +41 -0
- package/dist/utils/dataScope.d.ts.map +1 -0
- package/dist/utils/dataScope.js +130 -0
- package/dist/utils/dataScope.js.map +1 -0
- package/dist/utils/date.d.ts +48 -0
- package/dist/utils/date.d.ts.map +1 -0
- package/dist/utils/date.js +145 -0
- package/dist/utils/date.js.map +1 -0
- package/dist/utils/emailClient.d.ts +15 -0
- package/dist/utils/emailClient.d.ts.map +1 -0
- package/dist/utils/emailClient.js +71 -0
- package/dist/utils/emailClient.js.map +1 -0
- package/dist/utils/jwt.d.ts +10 -0
- package/dist/utils/jwt.d.ts.map +1 -0
- package/dist/utils/jwt.js +31 -0
- package/dist/utils/jwt.js.map +1 -0
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +108 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/ossClient.d.ts +38 -0
- package/dist/utils/ossClient.d.ts.map +1 -0
- package/dist/utils/ossClient.js +92 -0
- package/dist/utils/ossClient.js.map +1 -0
- package/dist/utils/permissionSync.d.ts +10 -0
- package/dist/utils/permissionSync.d.ts.map +1 -0
- package/dist/utils/permissionSync.js +11 -0
- package/dist/utils/permissionSync.js.map +1 -0
- package/dist/utils/redisClient.d.ts +91 -0
- package/dist/utils/redisClient.d.ts.map +1 -0
- package/dist/utils/redisClient.js +246 -0
- package/dist/utils/redisClient.js.map +1 -0
- package/dist/utils/sequence.d.ts +53 -0
- package/dist/utils/sequence.d.ts.map +1 -0
- package/dist/utils/sequence.js +109 -0
- package/dist/utils/sequence.js.map +1 -0
- package/dist/utils/smsClient.d.ts +15 -0
- package/dist/utils/smsClient.d.ts.map +1 -0
- package/dist/utils/smsClient.js +115 -0
- package/dist/utils/smsClient.js.map +1 -0
- package/dist/utils/supabaseClient.d.ts +5 -0
- package/dist/utils/supabaseClient.d.ts.map +1 -0
- package/dist/utils/supabaseClient.js +17 -0
- package/dist/utils/supabaseClient.js.map +1 -0
- package/dist/utils/unipushClient.d.ts +12 -0
- package/dist/utils/unipushClient.d.ts.map +1 -0
- package/dist/utils/unipushClient.js +109 -0
- package/dist/utils/unipushClient.js.map +1 -0
- package/dist/utils/validator.d.ts +74 -0
- package/dist/utils/validator.d.ts.map +1 -0
- package/dist/utils/validator.js +173 -0
- package/dist/utils/validator.js.map +1 -0
- package/dist/utils/wecom.d.ts +20 -0
- package/dist/utils/wecom.d.ts.map +1 -0
- package/dist/utils/wecom.js +126 -0
- package/dist/utils/wecom.js.map +1 -0
- package/package.json +84 -0
- package/templates/schema.system.prisma +283 -0
|
@@ -0,0 +1,4055 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegisterRoutes = RegisterRoutes;
|
|
4
|
+
const runtime_1 = require("@tsoa/runtime");
|
|
5
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
6
|
+
const userRole_controller_1 = require("./../system/userRole/userRole.controller");
|
|
7
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
8
|
+
const user_controller_1 = require("./../system/user/user.controller");
|
|
9
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
10
|
+
const rolePermission_controller_1 = require("./../system/rolePermission/rolePermission.controller");
|
|
11
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
12
|
+
const roleMenu_controller_1 = require("./../system/roleMenu/roleMenu.controller");
|
|
13
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
14
|
+
const role_controller_1 = require("./../system/role/role.controller");
|
|
15
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
16
|
+
const permission_controller_1 = require("./../system/permission/permission.controller");
|
|
17
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
18
|
+
const operationLog_controller_1 = require("./../system/operationLog/operationLog.controller");
|
|
19
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
20
|
+
const menu_controller_1 = require("./../system/menu/menu.controller");
|
|
21
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
22
|
+
const loginLog_controller_1 = require("./../system/loginLog/loginLog.controller");
|
|
23
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
24
|
+
const fileUpload_controller_1 = require("./../system/fileUpload/fileUpload.controller");
|
|
25
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
26
|
+
const employee_controller_1 = require("./../system/employee/employee.controller");
|
|
27
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
28
|
+
const dictType_controller_1 = require("./../system/dictType/dictType.controller");
|
|
29
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
30
|
+
const dictItem_controller_1 = require("./../system/dictItem/dictItem.controller");
|
|
31
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
32
|
+
const department_controller_1 = require("./../system/department/department.controller");
|
|
33
|
+
const ioc_1 = require("./../config/ioc");
|
|
34
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
35
|
+
const models = {
|
|
36
|
+
"BizCode": {
|
|
37
|
+
"dataType": "refEnum",
|
|
38
|
+
"enums": [200, -1, 401, 403, 404, 422, 500],
|
|
39
|
+
},
|
|
40
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
41
|
+
"UserRole": {
|
|
42
|
+
"dataType": "refObject",
|
|
43
|
+
"properties": {
|
|
44
|
+
"userId": { "dataType": "string", "required": true },
|
|
45
|
+
"roleId": { "dataType": "string", "required": true },
|
|
46
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
47
|
+
},
|
|
48
|
+
"additionalProperties": true,
|
|
49
|
+
},
|
|
50
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
51
|
+
"ApiResponse_UserRole_": {
|
|
52
|
+
"dataType": "refObject",
|
|
53
|
+
"properties": {
|
|
54
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
55
|
+
"message": { "dataType": "string", "required": true },
|
|
56
|
+
"data": { "ref": "UserRole", "required": true },
|
|
57
|
+
},
|
|
58
|
+
"additionalProperties": true,
|
|
59
|
+
},
|
|
60
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
61
|
+
"CreateUserRoleDto": {
|
|
62
|
+
"dataType": "refObject",
|
|
63
|
+
"properties": {
|
|
64
|
+
"userId": { "dataType": "string", "required": true },
|
|
65
|
+
"roleId": { "dataType": "string", "required": true },
|
|
66
|
+
},
|
|
67
|
+
"additionalProperties": true,
|
|
68
|
+
},
|
|
69
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
70
|
+
"ApiResponse_any-Array_": {
|
|
71
|
+
"dataType": "refObject",
|
|
72
|
+
"properties": {
|
|
73
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
74
|
+
"message": { "dataType": "string", "required": true },
|
|
75
|
+
"data": { "dataType": "array", "array": { "dataType": "any" }, "required": true },
|
|
76
|
+
},
|
|
77
|
+
"additionalProperties": true,
|
|
78
|
+
},
|
|
79
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
80
|
+
"ApiResponse_string-Array_": {
|
|
81
|
+
"dataType": "refObject",
|
|
82
|
+
"properties": {
|
|
83
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
84
|
+
"message": { "dataType": "string", "required": true },
|
|
85
|
+
"data": { "dataType": "array", "array": { "dataType": "string" }, "required": true },
|
|
86
|
+
},
|
|
87
|
+
"additionalProperties": true,
|
|
88
|
+
},
|
|
89
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
90
|
+
"ApiResponse_number_": {
|
|
91
|
+
"dataType": "refObject",
|
|
92
|
+
"properties": {
|
|
93
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
94
|
+
"message": { "dataType": "string", "required": true },
|
|
95
|
+
"data": { "dataType": "double", "required": true },
|
|
96
|
+
},
|
|
97
|
+
"additionalProperties": true,
|
|
98
|
+
},
|
|
99
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
100
|
+
"ApiResponse_boolean_": {
|
|
101
|
+
"dataType": "refObject",
|
|
102
|
+
"properties": {
|
|
103
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
104
|
+
"message": { "dataType": "string", "required": true },
|
|
105
|
+
"data": { "dataType": "boolean", "required": true },
|
|
106
|
+
},
|
|
107
|
+
"additionalProperties": true,
|
|
108
|
+
},
|
|
109
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
110
|
+
"PaginationMeta": {
|
|
111
|
+
"dataType": "refObject",
|
|
112
|
+
"properties": {
|
|
113
|
+
"page": { "dataType": "double", "required": true },
|
|
114
|
+
"pageSize": { "dataType": "double", "required": true },
|
|
115
|
+
"total": { "dataType": "double", "required": true },
|
|
116
|
+
"totalPages": { "dataType": "double", "required": true },
|
|
117
|
+
"hasPrev": { "dataType": "boolean", "required": true },
|
|
118
|
+
"hasNext": { "dataType": "boolean", "required": true },
|
|
119
|
+
},
|
|
120
|
+
"additionalProperties": true,
|
|
121
|
+
},
|
|
122
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
123
|
+
"ApiResponse__list-any-Array--pagination-PageResult_UserRole__91_pagination_93___": {
|
|
124
|
+
"dataType": "refObject",
|
|
125
|
+
"properties": {
|
|
126
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
127
|
+
"message": { "dataType": "string", "required": true },
|
|
128
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true },
|
|
129
|
+
},
|
|
130
|
+
"additionalProperties": true,
|
|
131
|
+
},
|
|
132
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
133
|
+
"AssignRolesDto": {
|
|
134
|
+
"dataType": "refObject",
|
|
135
|
+
"properties": {
|
|
136
|
+
"userId": { "dataType": "string", "required": true },
|
|
137
|
+
"roleIds": { "dataType": "array", "array": { "dataType": "string" } },
|
|
138
|
+
},
|
|
139
|
+
"additionalProperties": true,
|
|
140
|
+
},
|
|
141
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
142
|
+
"ApiResponse__user-any--token-string__": {
|
|
143
|
+
"dataType": "refObject",
|
|
144
|
+
"properties": {
|
|
145
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
146
|
+
"message": { "dataType": "string", "required": true },
|
|
147
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "token": { "dataType": "string", "required": true }, "user": { "dataType": "any", "required": true } }, "required": true },
|
|
148
|
+
},
|
|
149
|
+
"additionalProperties": true,
|
|
150
|
+
},
|
|
151
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
152
|
+
"LoginDto": {
|
|
153
|
+
"dataType": "refObject",
|
|
154
|
+
"properties": {
|
|
155
|
+
"username": { "dataType": "string", "required": true },
|
|
156
|
+
"password": { "dataType": "string", "required": true },
|
|
157
|
+
},
|
|
158
|
+
"additionalProperties": true,
|
|
159
|
+
},
|
|
160
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
161
|
+
"ApiResponse_null_": {
|
|
162
|
+
"dataType": "refObject",
|
|
163
|
+
"properties": {
|
|
164
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
165
|
+
"message": { "dataType": "string", "required": true },
|
|
166
|
+
"data": { "dataType": "enum", "enums": [null], "required": true },
|
|
167
|
+
},
|
|
168
|
+
"additionalProperties": true,
|
|
169
|
+
},
|
|
170
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
171
|
+
"ApiResponse__user-any--roles-any-Array--permissions-any-Array--menus-any-Array--orgs_58__stores-any-Array--branchWarehouses-any-Array--centralWarehouses-any-Array___": {
|
|
172
|
+
"dataType": "refObject",
|
|
173
|
+
"properties": {
|
|
174
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
175
|
+
"message": { "dataType": "string", "required": true },
|
|
176
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "orgs": { "dataType": "nestedObjectLiteral", "nestedProperties": { "centralWarehouses": { "dataType": "array", "array": { "dataType": "any" }, "required": true }, "branchWarehouses": { "dataType": "array", "array": { "dataType": "any" }, "required": true }, "stores": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true }, "menus": { "dataType": "array", "array": { "dataType": "any" }, "required": true }, "permissions": { "dataType": "array", "array": { "dataType": "any" }, "required": true }, "roles": { "dataType": "array", "array": { "dataType": "any" }, "required": true }, "user": { "dataType": "any", "required": true } }, "required": true },
|
|
177
|
+
},
|
|
178
|
+
"additionalProperties": true,
|
|
179
|
+
},
|
|
180
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
181
|
+
"ApiResponse__list-any-Array--pagination-PageResult_any__91_pagination_93___": {
|
|
182
|
+
"dataType": "refObject",
|
|
183
|
+
"properties": {
|
|
184
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
185
|
+
"message": { "dataType": "string", "required": true },
|
|
186
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true },
|
|
187
|
+
},
|
|
188
|
+
"additionalProperties": true,
|
|
189
|
+
},
|
|
190
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
191
|
+
"ApiResponse_any_": {
|
|
192
|
+
"dataType": "refObject",
|
|
193
|
+
"properties": {
|
|
194
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
195
|
+
"message": { "dataType": "string", "required": true },
|
|
196
|
+
"data": { "dataType": "any", "required": true },
|
|
197
|
+
},
|
|
198
|
+
"additionalProperties": true,
|
|
199
|
+
},
|
|
200
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
201
|
+
"CreateUserDto": {
|
|
202
|
+
"dataType": "refObject",
|
|
203
|
+
"properties": {
|
|
204
|
+
"username": { "dataType": "string", "required": true },
|
|
205
|
+
"password": { "dataType": "string", "required": true },
|
|
206
|
+
"name": { "dataType": "string", "required": true },
|
|
207
|
+
"phone": { "dataType": "string", "required": true },
|
|
208
|
+
"email": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
209
|
+
"avatar": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
210
|
+
"departmentId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
211
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
212
|
+
},
|
|
213
|
+
"additionalProperties": true,
|
|
214
|
+
},
|
|
215
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
216
|
+
"UpdateUserDto": {
|
|
217
|
+
"dataType": "refObject",
|
|
218
|
+
"properties": {
|
|
219
|
+
"username": { "dataType": "string" },
|
|
220
|
+
"password": { "dataType": "string" },
|
|
221
|
+
"name": { "dataType": "string" },
|
|
222
|
+
"phone": { "dataType": "string" },
|
|
223
|
+
"email": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
224
|
+
"avatar": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
225
|
+
"departmentId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
226
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
227
|
+
},
|
|
228
|
+
"additionalProperties": true,
|
|
229
|
+
},
|
|
230
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
231
|
+
"ChangePasswordDto": {
|
|
232
|
+
"dataType": "refObject",
|
|
233
|
+
"properties": {
|
|
234
|
+
"oldPassword": { "dataType": "string", "required": true },
|
|
235
|
+
"newPassword": { "dataType": "string", "required": true },
|
|
236
|
+
"confirmPassword": { "dataType": "string", "required": true },
|
|
237
|
+
},
|
|
238
|
+
"additionalProperties": true,
|
|
239
|
+
},
|
|
240
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
241
|
+
"SetPermissionsDto": {
|
|
242
|
+
"dataType": "refObject",
|
|
243
|
+
"properties": {
|
|
244
|
+
"permissionIds": { "dataType": "array", "array": { "dataType": "string" }, "required": true },
|
|
245
|
+
},
|
|
246
|
+
"additionalProperties": true,
|
|
247
|
+
},
|
|
248
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
249
|
+
"RolePermission": {
|
|
250
|
+
"dataType": "refObject",
|
|
251
|
+
"properties": {
|
|
252
|
+
"roleId": { "dataType": "string", "required": true },
|
|
253
|
+
"permissionId": { "dataType": "string", "required": true },
|
|
254
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
255
|
+
"role": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "code": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } },
|
|
256
|
+
"permission": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "code": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } },
|
|
257
|
+
},
|
|
258
|
+
"additionalProperties": true,
|
|
259
|
+
},
|
|
260
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
261
|
+
"ApiResponse_RolePermission-Array_": {
|
|
262
|
+
"dataType": "refObject",
|
|
263
|
+
"properties": {
|
|
264
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
265
|
+
"message": { "dataType": "string", "required": true },
|
|
266
|
+
"data": { "dataType": "array", "array": { "dataType": "refObject", "ref": "RolePermission" }, "required": true },
|
|
267
|
+
},
|
|
268
|
+
"additionalProperties": true,
|
|
269
|
+
},
|
|
270
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
271
|
+
"ApiResponse__hasPermission-boolean__": {
|
|
272
|
+
"dataType": "refObject",
|
|
273
|
+
"properties": {
|
|
274
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
275
|
+
"message": { "dataType": "string", "required": true },
|
|
276
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "hasPermission": { "dataType": "boolean", "required": true } }, "required": true },
|
|
277
|
+
},
|
|
278
|
+
"additionalProperties": true,
|
|
279
|
+
},
|
|
280
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
281
|
+
"SetMenusDto": {
|
|
282
|
+
"dataType": "refObject",
|
|
283
|
+
"properties": {
|
|
284
|
+
"menuIds": { "dataType": "array", "array": { "dataType": "string" }, "required": true },
|
|
285
|
+
},
|
|
286
|
+
"additionalProperties": true,
|
|
287
|
+
},
|
|
288
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
289
|
+
"RoleMenu": {
|
|
290
|
+
"dataType": "refObject",
|
|
291
|
+
"properties": {
|
|
292
|
+
"roleId": { "dataType": "string", "required": true },
|
|
293
|
+
"menuId": { "dataType": "string", "required": true },
|
|
294
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
295
|
+
"role": { "dataType": "nestedObjectLiteral", "nestedProperties": { "name": { "dataType": "string", "required": true }, "code": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } },
|
|
296
|
+
"menu": { "dataType": "nestedObjectLiteral", "nestedProperties": { "type": { "dataType": "string", "required": true }, "code": { "dataType": "string", "required": true }, "name": { "dataType": "string", "required": true }, "id": { "dataType": "string", "required": true } } },
|
|
297
|
+
},
|
|
298
|
+
"additionalProperties": true,
|
|
299
|
+
},
|
|
300
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
301
|
+
"ApiResponse_RoleMenu-Array_": {
|
|
302
|
+
"dataType": "refObject",
|
|
303
|
+
"properties": {
|
|
304
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
305
|
+
"message": { "dataType": "string", "required": true },
|
|
306
|
+
"data": { "dataType": "array", "array": { "dataType": "refObject", "ref": "RoleMenu" }, "required": true },
|
|
307
|
+
},
|
|
308
|
+
"additionalProperties": true,
|
|
309
|
+
},
|
|
310
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
311
|
+
"CreateRoleDto": {
|
|
312
|
+
"dataType": "refObject",
|
|
313
|
+
"properties": {
|
|
314
|
+
"code": { "dataType": "string", "required": true },
|
|
315
|
+
"name": { "dataType": "string", "required": true },
|
|
316
|
+
"description": { "dataType": "string" },
|
|
317
|
+
"sort": { "dataType": "double" },
|
|
318
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
319
|
+
},
|
|
320
|
+
"additionalProperties": true,
|
|
321
|
+
},
|
|
322
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
323
|
+
"UpdateRoleDto": {
|
|
324
|
+
"dataType": "refObject",
|
|
325
|
+
"properties": {
|
|
326
|
+
"code": { "dataType": "string" },
|
|
327
|
+
"name": { "dataType": "string" },
|
|
328
|
+
"description": { "dataType": "string" },
|
|
329
|
+
"sort": { "dataType": "double" },
|
|
330
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
331
|
+
},
|
|
332
|
+
"additionalProperties": true,
|
|
333
|
+
},
|
|
334
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
335
|
+
"CreatePermissionDto": {
|
|
336
|
+
"dataType": "refObject",
|
|
337
|
+
"properties": {
|
|
338
|
+
"code": { "dataType": "string", "required": true },
|
|
339
|
+
"name": { "dataType": "string", "required": true },
|
|
340
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["menu"] }, { "dataType": "enum", "enums": ["button"] }, { "dataType": "enum", "enums": ["api"] }], "required": true },
|
|
341
|
+
"description": { "dataType": "string" },
|
|
342
|
+
"parentId": { "dataType": "string" },
|
|
343
|
+
"path": { "dataType": "string" },
|
|
344
|
+
"method": { "dataType": "string" },
|
|
345
|
+
"sort": { "dataType": "double" },
|
|
346
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
347
|
+
},
|
|
348
|
+
"additionalProperties": true,
|
|
349
|
+
},
|
|
350
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
351
|
+
"UpdatePermissionDto": {
|
|
352
|
+
"dataType": "refObject",
|
|
353
|
+
"properties": {
|
|
354
|
+
"code": { "dataType": "string" },
|
|
355
|
+
"name": { "dataType": "string" },
|
|
356
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["menu"] }, { "dataType": "enum", "enums": ["button"] }, { "dataType": "enum", "enums": ["api"] }] },
|
|
357
|
+
"description": { "dataType": "string" },
|
|
358
|
+
"parentId": { "dataType": "string" },
|
|
359
|
+
"path": { "dataType": "string" },
|
|
360
|
+
"method": { "dataType": "string" },
|
|
361
|
+
"sort": { "dataType": "double" },
|
|
362
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
363
|
+
},
|
|
364
|
+
"additionalProperties": true,
|
|
365
|
+
},
|
|
366
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
367
|
+
"LogStatus": {
|
|
368
|
+
"dataType": "refAlias",
|
|
369
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["success"] }, { "dataType": "enum", "enums": ["fail"] }], "validators": {} },
|
|
370
|
+
},
|
|
371
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
372
|
+
"OperationLog": {
|
|
373
|
+
"dataType": "refObject",
|
|
374
|
+
"properties": {
|
|
375
|
+
"id": { "dataType": "string", "required": true },
|
|
376
|
+
"userId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
377
|
+
"username": { "dataType": "string", "required": true },
|
|
378
|
+
"module": { "dataType": "string", "required": true },
|
|
379
|
+
"action": { "dataType": "string", "required": true },
|
|
380
|
+
"targetType": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
381
|
+
"targetId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
382
|
+
"description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
383
|
+
"requestMethod": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
384
|
+
"requestUrl": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
385
|
+
"requestIp": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
386
|
+
"requestBody": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
387
|
+
"responseCode": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
388
|
+
"duration": { "dataType": "union", "subSchemas": [{ "dataType": "double" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
389
|
+
"status": { "ref": "LogStatus", "required": true },
|
|
390
|
+
"errorMsg": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
391
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
392
|
+
},
|
|
393
|
+
"additionalProperties": true,
|
|
394
|
+
},
|
|
395
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
396
|
+
"ApiResponse_OperationLog_": {
|
|
397
|
+
"dataType": "refObject",
|
|
398
|
+
"properties": {
|
|
399
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
400
|
+
"message": { "dataType": "string", "required": true },
|
|
401
|
+
"data": { "ref": "OperationLog", "required": true },
|
|
402
|
+
},
|
|
403
|
+
"additionalProperties": true,
|
|
404
|
+
},
|
|
405
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
406
|
+
"CreateOperationLogDto": {
|
|
407
|
+
"dataType": "refObject",
|
|
408
|
+
"properties": {
|
|
409
|
+
"userId": { "dataType": "string" },
|
|
410
|
+
"username": { "dataType": "string", "required": true },
|
|
411
|
+
"module": { "dataType": "string", "required": true },
|
|
412
|
+
"action": { "dataType": "string", "required": true },
|
|
413
|
+
"targetType": { "dataType": "string" },
|
|
414
|
+
"targetId": { "dataType": "string" },
|
|
415
|
+
"description": { "dataType": "string" },
|
|
416
|
+
"requestMethod": { "dataType": "string" },
|
|
417
|
+
"requestUrl": { "dataType": "string" },
|
|
418
|
+
"requestIp": { "dataType": "string" },
|
|
419
|
+
"requestBody": { "dataType": "string" },
|
|
420
|
+
"responseCode": { "dataType": "double" },
|
|
421
|
+
"duration": { "dataType": "double" },
|
|
422
|
+
"status": { "ref": "LogStatus" },
|
|
423
|
+
"errorMsg": { "dataType": "string" },
|
|
424
|
+
},
|
|
425
|
+
"additionalProperties": true,
|
|
426
|
+
},
|
|
427
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
428
|
+
"ApiResponse__list-any-Array--pagination-PageResult_OperationLog__91_pagination_93___": {
|
|
429
|
+
"dataType": "refObject",
|
|
430
|
+
"properties": {
|
|
431
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
432
|
+
"message": { "dataType": "string", "required": true },
|
|
433
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true },
|
|
434
|
+
},
|
|
435
|
+
"additionalProperties": true,
|
|
436
|
+
},
|
|
437
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
438
|
+
"Menu": {
|
|
439
|
+
"dataType": "refObject",
|
|
440
|
+
"properties": {
|
|
441
|
+
"id": { "dataType": "string", "required": true },
|
|
442
|
+
"name": { "dataType": "string", "required": true },
|
|
443
|
+
"code": { "dataType": "string", "required": true },
|
|
444
|
+
"parentId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
445
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["directory"] }, { "dataType": "enum", "enums": ["menu"] }, { "dataType": "enum", "enums": ["button"] }], "required": true },
|
|
446
|
+
"path": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
447
|
+
"component": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
448
|
+
"icon": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
449
|
+
"permissionId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
450
|
+
"sort": { "dataType": "double", "required": true },
|
|
451
|
+
"visible": { "dataType": "boolean", "required": true },
|
|
452
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }], "required": true },
|
|
453
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
454
|
+
"updatedAt": { "dataType": "datetime", "required": true },
|
|
455
|
+
"children": { "dataType": "array", "array": { "dataType": "refObject", "ref": "Menu" } },
|
|
456
|
+
},
|
|
457
|
+
"additionalProperties": true,
|
|
458
|
+
},
|
|
459
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
460
|
+
"ApiResponse_Menu-Array_": {
|
|
461
|
+
"dataType": "refObject",
|
|
462
|
+
"properties": {
|
|
463
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
464
|
+
"message": { "dataType": "string", "required": true },
|
|
465
|
+
"data": { "dataType": "array", "array": { "dataType": "refObject", "ref": "Menu" }, "required": true },
|
|
466
|
+
},
|
|
467
|
+
"additionalProperties": true,
|
|
468
|
+
},
|
|
469
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
470
|
+
"ApiResponse_Menu_": {
|
|
471
|
+
"dataType": "refObject",
|
|
472
|
+
"properties": {
|
|
473
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
474
|
+
"message": { "dataType": "string", "required": true },
|
|
475
|
+
"data": { "ref": "Menu", "required": true },
|
|
476
|
+
},
|
|
477
|
+
"additionalProperties": true,
|
|
478
|
+
},
|
|
479
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
480
|
+
"ApiResponse__list-any-Array--pagination-PageResult_Menu__91_pagination_93___": {
|
|
481
|
+
"dataType": "refObject",
|
|
482
|
+
"properties": {
|
|
483
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
484
|
+
"message": { "dataType": "string", "required": true },
|
|
485
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true },
|
|
486
|
+
},
|
|
487
|
+
"additionalProperties": true,
|
|
488
|
+
},
|
|
489
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
490
|
+
"CreateMenuDto": {
|
|
491
|
+
"dataType": "refObject",
|
|
492
|
+
"properties": {
|
|
493
|
+
"name": { "dataType": "string", "required": true },
|
|
494
|
+
"code": { "dataType": "string", "required": true },
|
|
495
|
+
"parentId": { "dataType": "string" },
|
|
496
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["directory"] }, { "dataType": "enum", "enums": ["menu"] }, { "dataType": "enum", "enums": ["button"] }] },
|
|
497
|
+
"path": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
498
|
+
"component": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
499
|
+
"icon": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
500
|
+
"permissionId": { "dataType": "string" },
|
|
501
|
+
"sort": { "dataType": "double" },
|
|
502
|
+
"visible": { "dataType": "boolean" },
|
|
503
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
504
|
+
},
|
|
505
|
+
"additionalProperties": true,
|
|
506
|
+
},
|
|
507
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
508
|
+
"UpdateMenuDto": {
|
|
509
|
+
"dataType": "refObject",
|
|
510
|
+
"properties": {
|
|
511
|
+
"name": { "dataType": "string" },
|
|
512
|
+
"code": { "dataType": "string" },
|
|
513
|
+
"parentId": { "dataType": "string" },
|
|
514
|
+
"type": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["directory"] }, { "dataType": "enum", "enums": ["menu"] }, { "dataType": "enum", "enums": ["button"] }] },
|
|
515
|
+
"path": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
516
|
+
"component": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
517
|
+
"icon": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
518
|
+
"permissionId": { "dataType": "string" },
|
|
519
|
+
"sort": { "dataType": "double" },
|
|
520
|
+
"visible": { "dataType": "boolean" },
|
|
521
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
522
|
+
},
|
|
523
|
+
"additionalProperties": true,
|
|
524
|
+
},
|
|
525
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
526
|
+
"LoginLog": {
|
|
527
|
+
"dataType": "refObject",
|
|
528
|
+
"properties": {
|
|
529
|
+
"id": { "dataType": "string", "required": true },
|
|
530
|
+
"userId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
531
|
+
"username": { "dataType": "string", "required": true },
|
|
532
|
+
"action": { "dataType": "string", "required": true },
|
|
533
|
+
"ip": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
534
|
+
"userAgent": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
535
|
+
"os": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
536
|
+
"browser": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
537
|
+
"status": { "ref": "LogStatus", "required": true },
|
|
538
|
+
"message": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
539
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
540
|
+
},
|
|
541
|
+
"additionalProperties": true,
|
|
542
|
+
},
|
|
543
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
544
|
+
"ApiResponse_LoginLog_": {
|
|
545
|
+
"dataType": "refObject",
|
|
546
|
+
"properties": {
|
|
547
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
548
|
+
"message": { "dataType": "string", "required": true },
|
|
549
|
+
"data": { "ref": "LoginLog", "required": true },
|
|
550
|
+
},
|
|
551
|
+
"additionalProperties": true,
|
|
552
|
+
},
|
|
553
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
554
|
+
"CreateLoginLogDto": {
|
|
555
|
+
"dataType": "refObject",
|
|
556
|
+
"properties": {
|
|
557
|
+
"userId": { "dataType": "string" },
|
|
558
|
+
"username": { "dataType": "string", "required": true },
|
|
559
|
+
"action": { "dataType": "string", "required": true },
|
|
560
|
+
"ip": { "dataType": "string" },
|
|
561
|
+
"userAgent": { "dataType": "string" },
|
|
562
|
+
"os": { "dataType": "string" },
|
|
563
|
+
"browser": { "dataType": "string" },
|
|
564
|
+
"status": { "ref": "LogStatus" },
|
|
565
|
+
"message": { "dataType": "string" },
|
|
566
|
+
},
|
|
567
|
+
"additionalProperties": true,
|
|
568
|
+
},
|
|
569
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
570
|
+
"ApiResponse__list-any-Array--pagination-PageResult_LoginLog__91_pagination_93___": {
|
|
571
|
+
"dataType": "refObject",
|
|
572
|
+
"properties": {
|
|
573
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
574
|
+
"message": { "dataType": "string", "required": true },
|
|
575
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true },
|
|
576
|
+
},
|
|
577
|
+
"additionalProperties": true,
|
|
578
|
+
},
|
|
579
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
580
|
+
"ApiResponse_LoginLog-Array_": {
|
|
581
|
+
"dataType": "refObject",
|
|
582
|
+
"properties": {
|
|
583
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
584
|
+
"message": { "dataType": "string", "required": true },
|
|
585
|
+
"data": { "dataType": "array", "array": { "dataType": "refObject", "ref": "LoginLog" }, "required": true },
|
|
586
|
+
},
|
|
587
|
+
"additionalProperties": true,
|
|
588
|
+
},
|
|
589
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
590
|
+
"FileUpload": {
|
|
591
|
+
"dataType": "refObject",
|
|
592
|
+
"properties": {
|
|
593
|
+
"id": { "dataType": "string", "required": true },
|
|
594
|
+
"fileNo": { "dataType": "string", "required": true },
|
|
595
|
+
"name": { "dataType": "string", "required": true },
|
|
596
|
+
"size": { "dataType": "double", "required": true },
|
|
597
|
+
"type": { "dataType": "string", "required": true },
|
|
598
|
+
"url": { "dataType": "string", "required": true },
|
|
599
|
+
"description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
600
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }], "required": true },
|
|
601
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
602
|
+
"updatedAt": { "dataType": "datetime", "required": true },
|
|
603
|
+
},
|
|
604
|
+
"additionalProperties": true,
|
|
605
|
+
},
|
|
606
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
607
|
+
"ApiResponse_FileUpload_": {
|
|
608
|
+
"dataType": "refObject",
|
|
609
|
+
"properties": {
|
|
610
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
611
|
+
"message": { "dataType": "string", "required": true },
|
|
612
|
+
"data": { "ref": "FileUpload", "required": true },
|
|
613
|
+
},
|
|
614
|
+
"additionalProperties": true,
|
|
615
|
+
},
|
|
616
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
617
|
+
"ApiResponse_FileUpload-Array_": {
|
|
618
|
+
"dataType": "refObject",
|
|
619
|
+
"properties": {
|
|
620
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
621
|
+
"message": { "dataType": "string", "required": true },
|
|
622
|
+
"data": { "dataType": "array", "array": { "dataType": "refObject", "ref": "FileUpload" }, "required": true },
|
|
623
|
+
},
|
|
624
|
+
"additionalProperties": true,
|
|
625
|
+
},
|
|
626
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
627
|
+
"ApiResponse__list-any-Array--pagination-PageResult_FileUpload__91_pagination_93___": {
|
|
628
|
+
"dataType": "refObject",
|
|
629
|
+
"properties": {
|
|
630
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
631
|
+
"message": { "dataType": "string", "required": true },
|
|
632
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true },
|
|
633
|
+
},
|
|
634
|
+
"additionalProperties": true,
|
|
635
|
+
},
|
|
636
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
637
|
+
"CreateEmployeeDto": {
|
|
638
|
+
"dataType": "refObject",
|
|
639
|
+
"properties": {
|
|
640
|
+
"name": { "dataType": "string", "required": true },
|
|
641
|
+
"phone": { "dataType": "string", "required": true },
|
|
642
|
+
"email": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
643
|
+
"position": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
644
|
+
"salary": { "dataType": "double" },
|
|
645
|
+
"departmentId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
646
|
+
"hireDate": { "dataType": "datetime", "required": true },
|
|
647
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
648
|
+
},
|
|
649
|
+
"additionalProperties": true,
|
|
650
|
+
},
|
|
651
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
652
|
+
"UpdateEmployeeDto": {
|
|
653
|
+
"dataType": "refObject",
|
|
654
|
+
"properties": {
|
|
655
|
+
"name": { "dataType": "string" },
|
|
656
|
+
"phone": { "dataType": "string" },
|
|
657
|
+
"email": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
658
|
+
"position": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
659
|
+
"salary": { "dataType": "double" },
|
|
660
|
+
"departmentId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
661
|
+
"hireDate": { "dataType": "datetime" },
|
|
662
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
663
|
+
},
|
|
664
|
+
"additionalProperties": true,
|
|
665
|
+
},
|
|
666
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
667
|
+
"DictType": {
|
|
668
|
+
"dataType": "refObject",
|
|
669
|
+
"properties": {
|
|
670
|
+
"id": { "dataType": "string", "required": true },
|
|
671
|
+
"code": { "dataType": "string", "required": true },
|
|
672
|
+
"name": { "dataType": "string", "required": true },
|
|
673
|
+
"description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
674
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }], "required": true },
|
|
675
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
676
|
+
"updatedAt": { "dataType": "datetime", "required": true },
|
|
677
|
+
},
|
|
678
|
+
"additionalProperties": true,
|
|
679
|
+
},
|
|
680
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
681
|
+
"ApiResponse_DictType-Array_": {
|
|
682
|
+
"dataType": "refObject",
|
|
683
|
+
"properties": {
|
|
684
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
685
|
+
"message": { "dataType": "string", "required": true },
|
|
686
|
+
"data": { "dataType": "array", "array": { "dataType": "refObject", "ref": "DictType" }, "required": true },
|
|
687
|
+
},
|
|
688
|
+
"additionalProperties": true,
|
|
689
|
+
},
|
|
690
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
691
|
+
"ApiResponse_DictType_": {
|
|
692
|
+
"dataType": "refObject",
|
|
693
|
+
"properties": {
|
|
694
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
695
|
+
"message": { "dataType": "string", "required": true },
|
|
696
|
+
"data": { "ref": "DictType", "required": true },
|
|
697
|
+
},
|
|
698
|
+
"additionalProperties": true,
|
|
699
|
+
},
|
|
700
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
701
|
+
"ApiResponse__list-any-Array--pagination-PageResult_DictType__91_pagination_93___": {
|
|
702
|
+
"dataType": "refObject",
|
|
703
|
+
"properties": {
|
|
704
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
705
|
+
"message": { "dataType": "string", "required": true },
|
|
706
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true },
|
|
707
|
+
},
|
|
708
|
+
"additionalProperties": true,
|
|
709
|
+
},
|
|
710
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
711
|
+
"DictItem": {
|
|
712
|
+
"dataType": "refObject",
|
|
713
|
+
"properties": {
|
|
714
|
+
"id": { "dataType": "string", "required": true },
|
|
715
|
+
"typeId": { "dataType": "string", "required": true },
|
|
716
|
+
"label": { "dataType": "string", "required": true },
|
|
717
|
+
"value": { "dataType": "string", "required": true },
|
|
718
|
+
"cssClass": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
719
|
+
"sort": { "dataType": "double", "required": true },
|
|
720
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }], "required": true },
|
|
721
|
+
"description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
722
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
723
|
+
"updatedAt": { "dataType": "datetime", "required": true },
|
|
724
|
+
},
|
|
725
|
+
"additionalProperties": true,
|
|
726
|
+
},
|
|
727
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
728
|
+
"DictTypeWithItems": {
|
|
729
|
+
"dataType": "refObject",
|
|
730
|
+
"properties": {
|
|
731
|
+
"id": { "dataType": "string", "required": true },
|
|
732
|
+
"code": { "dataType": "string", "required": true },
|
|
733
|
+
"name": { "dataType": "string", "required": true },
|
|
734
|
+
"description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
735
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }], "required": true },
|
|
736
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
737
|
+
"updatedAt": { "dataType": "datetime", "required": true },
|
|
738
|
+
"items": { "dataType": "array", "array": { "dataType": "refObject", "ref": "DictItem" }, "required": true },
|
|
739
|
+
},
|
|
740
|
+
"additionalProperties": true,
|
|
741
|
+
},
|
|
742
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
743
|
+
"ApiResponse__list-DictTypeWithItems-Array--pagination-PageResult_DictTypeWithItems__91_pagination_93___": {
|
|
744
|
+
"dataType": "refObject",
|
|
745
|
+
"properties": {
|
|
746
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
747
|
+
"message": { "dataType": "string", "required": true },
|
|
748
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "refObject", "ref": "DictTypeWithItems" }, "required": true } }, "required": true },
|
|
749
|
+
},
|
|
750
|
+
"additionalProperties": true,
|
|
751
|
+
},
|
|
752
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
753
|
+
"CreateDictTypeDto": {
|
|
754
|
+
"dataType": "refObject",
|
|
755
|
+
"properties": {
|
|
756
|
+
"code": { "dataType": "string", "required": true },
|
|
757
|
+
"name": { "dataType": "string", "required": true },
|
|
758
|
+
"description": { "dataType": "string" },
|
|
759
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
760
|
+
},
|
|
761
|
+
"additionalProperties": true,
|
|
762
|
+
},
|
|
763
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
764
|
+
"UpdateDictTypeDto": {
|
|
765
|
+
"dataType": "refObject",
|
|
766
|
+
"properties": {
|
|
767
|
+
"code": { "dataType": "string" },
|
|
768
|
+
"name": { "dataType": "string" },
|
|
769
|
+
"description": { "dataType": "string" },
|
|
770
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
771
|
+
},
|
|
772
|
+
"additionalProperties": true,
|
|
773
|
+
},
|
|
774
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
775
|
+
"ApiResponse_DictItem-Array_": {
|
|
776
|
+
"dataType": "refObject",
|
|
777
|
+
"properties": {
|
|
778
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
779
|
+
"message": { "dataType": "string", "required": true },
|
|
780
|
+
"data": { "dataType": "array", "array": { "dataType": "refObject", "ref": "DictItem" }, "required": true },
|
|
781
|
+
},
|
|
782
|
+
"additionalProperties": true,
|
|
783
|
+
},
|
|
784
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
785
|
+
"ApiResponse_DictItem_": {
|
|
786
|
+
"dataType": "refObject",
|
|
787
|
+
"properties": {
|
|
788
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
789
|
+
"message": { "dataType": "string", "required": true },
|
|
790
|
+
"data": { "ref": "DictItem", "required": true },
|
|
791
|
+
},
|
|
792
|
+
"additionalProperties": true,
|
|
793
|
+
},
|
|
794
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
795
|
+
"DictItemWithTypeName": {
|
|
796
|
+
"dataType": "refObject",
|
|
797
|
+
"properties": {
|
|
798
|
+
"id": { "dataType": "string", "required": true },
|
|
799
|
+
"typeId": { "dataType": "string", "required": true },
|
|
800
|
+
"label": { "dataType": "string", "required": true },
|
|
801
|
+
"value": { "dataType": "string", "required": true },
|
|
802
|
+
"cssClass": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
803
|
+
"sort": { "dataType": "double", "required": true },
|
|
804
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }], "required": true },
|
|
805
|
+
"description": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
806
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
807
|
+
"updatedAt": { "dataType": "datetime", "required": true },
|
|
808
|
+
"typeName": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
809
|
+
},
|
|
810
|
+
"additionalProperties": true,
|
|
811
|
+
},
|
|
812
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
813
|
+
"ApiResponse__list-DictItemWithTypeName-Array--pagination-PageResult_DictItem__91_pagination_93___": {
|
|
814
|
+
"dataType": "refObject",
|
|
815
|
+
"properties": {
|
|
816
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
817
|
+
"message": { "dataType": "string", "required": true },
|
|
818
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "refObject", "ref": "DictItemWithTypeName" }, "required": true } }, "required": true },
|
|
819
|
+
},
|
|
820
|
+
"additionalProperties": true,
|
|
821
|
+
},
|
|
822
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
823
|
+
"CreateDictItemDto": {
|
|
824
|
+
"dataType": "refObject",
|
|
825
|
+
"properties": {
|
|
826
|
+
"typeId": { "dataType": "string", "required": true },
|
|
827
|
+
"label": { "dataType": "string", "required": true },
|
|
828
|
+
"value": { "dataType": "string", "required": true },
|
|
829
|
+
"cssClass": { "dataType": "string" },
|
|
830
|
+
"sort": { "dataType": "double" },
|
|
831
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
832
|
+
"description": { "dataType": "string" },
|
|
833
|
+
},
|
|
834
|
+
"additionalProperties": true,
|
|
835
|
+
},
|
|
836
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
837
|
+
"UpdateDictItemDto": {
|
|
838
|
+
"dataType": "refObject",
|
|
839
|
+
"properties": {
|
|
840
|
+
"label": { "dataType": "string" },
|
|
841
|
+
"value": { "dataType": "string" },
|
|
842
|
+
"cssClass": { "dataType": "string" },
|
|
843
|
+
"sort": { "dataType": "double" },
|
|
844
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
845
|
+
"description": { "dataType": "string" },
|
|
846
|
+
},
|
|
847
|
+
"additionalProperties": true,
|
|
848
|
+
},
|
|
849
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
850
|
+
"Department": {
|
|
851
|
+
"dataType": "refObject",
|
|
852
|
+
"properties": {
|
|
853
|
+
"id": { "dataType": "string", "required": true },
|
|
854
|
+
"name": { "dataType": "string", "required": true },
|
|
855
|
+
"code": { "dataType": "string", "required": true },
|
|
856
|
+
"parentId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
857
|
+
"leaderId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
858
|
+
"phone": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }], "required": true },
|
|
859
|
+
"sort": { "dataType": "double", "required": true },
|
|
860
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }], "required": true },
|
|
861
|
+
"createdAt": { "dataType": "datetime", "required": true },
|
|
862
|
+
"updatedAt": { "dataType": "datetime", "required": true },
|
|
863
|
+
"children": { "dataType": "array", "array": { "dataType": "refObject", "ref": "Department" } },
|
|
864
|
+
},
|
|
865
|
+
"additionalProperties": true,
|
|
866
|
+
},
|
|
867
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
868
|
+
"ApiResponse_Department-Array_": {
|
|
869
|
+
"dataType": "refObject",
|
|
870
|
+
"properties": {
|
|
871
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
872
|
+
"message": { "dataType": "string", "required": true },
|
|
873
|
+
"data": { "dataType": "array", "array": { "dataType": "refObject", "ref": "Department" }, "required": true },
|
|
874
|
+
},
|
|
875
|
+
"additionalProperties": true,
|
|
876
|
+
},
|
|
877
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
878
|
+
"ApiResponse_Department_": {
|
|
879
|
+
"dataType": "refObject",
|
|
880
|
+
"properties": {
|
|
881
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
882
|
+
"message": { "dataType": "string", "required": true },
|
|
883
|
+
"data": { "ref": "Department", "required": true },
|
|
884
|
+
},
|
|
885
|
+
"additionalProperties": true,
|
|
886
|
+
},
|
|
887
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
888
|
+
"ApiResponse__list-any-Array--pagination-PageResult_Department__91_pagination_93___": {
|
|
889
|
+
"dataType": "refObject",
|
|
890
|
+
"properties": {
|
|
891
|
+
"code": { "dataType": "union", "subSchemas": [{ "ref": "BizCode" }, { "dataType": "double" }], "required": true },
|
|
892
|
+
"message": { "dataType": "string", "required": true },
|
|
893
|
+
"data": { "dataType": "nestedObjectLiteral", "nestedProperties": { "pagination": { "ref": "PaginationMeta", "required": true }, "list": { "dataType": "array", "array": { "dataType": "any" }, "required": true } }, "required": true },
|
|
894
|
+
},
|
|
895
|
+
"additionalProperties": true,
|
|
896
|
+
},
|
|
897
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
898
|
+
"CreateDepartmentDto": {
|
|
899
|
+
"dataType": "refObject",
|
|
900
|
+
"properties": {
|
|
901
|
+
"name": { "dataType": "string", "required": true },
|
|
902
|
+
"code": { "dataType": "string", "required": true },
|
|
903
|
+
"parentId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
904
|
+
"leaderId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
905
|
+
"phone": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
906
|
+
"sort": { "dataType": "double" },
|
|
907
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
908
|
+
},
|
|
909
|
+
"additionalProperties": true,
|
|
910
|
+
},
|
|
911
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
912
|
+
"UpdateDepartmentDto": {
|
|
913
|
+
"dataType": "refObject",
|
|
914
|
+
"properties": {
|
|
915
|
+
"name": { "dataType": "string" },
|
|
916
|
+
"code": { "dataType": "string" },
|
|
917
|
+
"parentId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
918
|
+
"leaderId": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
919
|
+
"phone": { "dataType": "union", "subSchemas": [{ "dataType": "string" }, { "dataType": "enum", "enums": [null] }] },
|
|
920
|
+
"sort": { "dataType": "double" },
|
|
921
|
+
"status": { "dataType": "union", "subSchemas": [{ "dataType": "enum", "enums": ["active"] }, { "dataType": "enum", "enums": ["inactive"] }] },
|
|
922
|
+
},
|
|
923
|
+
"additionalProperties": true,
|
|
924
|
+
},
|
|
925
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
926
|
+
};
|
|
927
|
+
const templateService = new runtime_1.KoaTemplateService(models, { "noImplicitAdditionalProperties": "ignore", "bodyCoercion": true });
|
|
928
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
929
|
+
function RegisterRoutes(router) {
|
|
930
|
+
// ###########################################################################################################
|
|
931
|
+
// NOTE: If you do not see routes for all of your controllers in this file, then you might not have informed tsoa of where to look
|
|
932
|
+
// Please look into the "controllerPathGlobs" config option described in the readme: https://github.com/lukeautry/tsoa
|
|
933
|
+
// ###########################################################################################################
|
|
934
|
+
const argsUserRoleController_createUserRole = {
|
|
935
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateUserRoleDto" },
|
|
936
|
+
};
|
|
937
|
+
router.post('/api/system/user-role', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.createUserRole)), async function UserRoleController_createUserRole(context, next) {
|
|
938
|
+
let validatedArgs = [];
|
|
939
|
+
try {
|
|
940
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_createUserRole, context, next });
|
|
941
|
+
}
|
|
942
|
+
catch (err) {
|
|
943
|
+
const error = err;
|
|
944
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
945
|
+
context.status = error.status;
|
|
946
|
+
context.throw(context.status, error.message, error);
|
|
947
|
+
}
|
|
948
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
949
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
950
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
951
|
+
controller.setStatus(undefined);
|
|
952
|
+
}
|
|
953
|
+
return templateService.apiHandler({
|
|
954
|
+
methodName: 'createUserRole',
|
|
955
|
+
controller,
|
|
956
|
+
context,
|
|
957
|
+
validatedArgs,
|
|
958
|
+
successStatus: 201,
|
|
959
|
+
});
|
|
960
|
+
});
|
|
961
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
962
|
+
const argsUserRoleController_getRolesByUserId = {
|
|
963
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
964
|
+
};
|
|
965
|
+
router.get('/api/system/user-role/user/:userId', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getRolesByUserId)), async function UserRoleController_getRolesByUserId(context, next) {
|
|
966
|
+
let validatedArgs = [];
|
|
967
|
+
try {
|
|
968
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getRolesByUserId, context, next });
|
|
969
|
+
}
|
|
970
|
+
catch (err) {
|
|
971
|
+
const error = err;
|
|
972
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
973
|
+
context.status = error.status;
|
|
974
|
+
context.throw(context.status, error.message, error);
|
|
975
|
+
}
|
|
976
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
977
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
978
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
979
|
+
controller.setStatus(undefined);
|
|
980
|
+
}
|
|
981
|
+
return templateService.apiHandler({
|
|
982
|
+
methodName: 'getRolesByUserId',
|
|
983
|
+
controller,
|
|
984
|
+
context,
|
|
985
|
+
validatedArgs,
|
|
986
|
+
successStatus: undefined,
|
|
987
|
+
});
|
|
988
|
+
});
|
|
989
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
990
|
+
const argsUserRoleController_getUsersByRoleId = {
|
|
991
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
992
|
+
};
|
|
993
|
+
router.get('/api/system/user-role/role/:roleId', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getUsersByRoleId)), async function UserRoleController_getUsersByRoleId(context, next) {
|
|
994
|
+
let validatedArgs = [];
|
|
995
|
+
try {
|
|
996
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getUsersByRoleId, context, next });
|
|
997
|
+
}
|
|
998
|
+
catch (err) {
|
|
999
|
+
const error = err;
|
|
1000
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1001
|
+
context.status = error.status;
|
|
1002
|
+
context.throw(context.status, error.message, error);
|
|
1003
|
+
}
|
|
1004
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1005
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1006
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1007
|
+
controller.setStatus(undefined);
|
|
1008
|
+
}
|
|
1009
|
+
return templateService.apiHandler({
|
|
1010
|
+
methodName: 'getUsersByRoleId',
|
|
1011
|
+
controller,
|
|
1012
|
+
context,
|
|
1013
|
+
validatedArgs,
|
|
1014
|
+
successStatus: undefined,
|
|
1015
|
+
});
|
|
1016
|
+
});
|
|
1017
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1018
|
+
const argsUserRoleController_getUserRoleIds = {
|
|
1019
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
1020
|
+
};
|
|
1021
|
+
router.get('/api/system/user-role/user/:userId/role-ids', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getUserRoleIds)), async function UserRoleController_getUserRoleIds(context, next) {
|
|
1022
|
+
let validatedArgs = [];
|
|
1023
|
+
try {
|
|
1024
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getUserRoleIds, context, next });
|
|
1025
|
+
}
|
|
1026
|
+
catch (err) {
|
|
1027
|
+
const error = err;
|
|
1028
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1029
|
+
context.status = error.status;
|
|
1030
|
+
context.throw(context.status, error.message, error);
|
|
1031
|
+
}
|
|
1032
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1033
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1034
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1035
|
+
controller.setStatus(undefined);
|
|
1036
|
+
}
|
|
1037
|
+
return templateService.apiHandler({
|
|
1038
|
+
methodName: 'getUserRoleIds',
|
|
1039
|
+
controller,
|
|
1040
|
+
context,
|
|
1041
|
+
validatedArgs,
|
|
1042
|
+
successStatus: undefined,
|
|
1043
|
+
});
|
|
1044
|
+
});
|
|
1045
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1046
|
+
const argsUserRoleController_getUserRoleCodes = {
|
|
1047
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
1048
|
+
};
|
|
1049
|
+
router.get('/api/system/user-role/user/:userId/role-codes', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getUserRoleCodes)), async function UserRoleController_getUserRoleCodes(context, next) {
|
|
1050
|
+
let validatedArgs = [];
|
|
1051
|
+
try {
|
|
1052
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getUserRoleCodes, context, next });
|
|
1053
|
+
}
|
|
1054
|
+
catch (err) {
|
|
1055
|
+
const error = err;
|
|
1056
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1057
|
+
context.status = error.status;
|
|
1058
|
+
context.throw(context.status, error.message, error);
|
|
1059
|
+
}
|
|
1060
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1061
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1062
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1063
|
+
controller.setStatus(undefined);
|
|
1064
|
+
}
|
|
1065
|
+
return templateService.apiHandler({
|
|
1066
|
+
methodName: 'getUserRoleCodes',
|
|
1067
|
+
controller,
|
|
1068
|
+
context,
|
|
1069
|
+
validatedArgs,
|
|
1070
|
+
successStatus: undefined,
|
|
1071
|
+
});
|
|
1072
|
+
});
|
|
1073
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1074
|
+
const argsUserRoleController_getUserRoleNames = {
|
|
1075
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
1076
|
+
};
|
|
1077
|
+
router.get('/api/system/user-role/user/:userId/role-names', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getUserRoleNames)), async function UserRoleController_getUserRoleNames(context, next) {
|
|
1078
|
+
let validatedArgs = [];
|
|
1079
|
+
try {
|
|
1080
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getUserRoleNames, context, next });
|
|
1081
|
+
}
|
|
1082
|
+
catch (err) {
|
|
1083
|
+
const error = err;
|
|
1084
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1085
|
+
context.status = error.status;
|
|
1086
|
+
context.throw(context.status, error.message, error);
|
|
1087
|
+
}
|
|
1088
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1089
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1090
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1091
|
+
controller.setStatus(undefined);
|
|
1092
|
+
}
|
|
1093
|
+
return templateService.apiHandler({
|
|
1094
|
+
methodName: 'getUserRoleNames',
|
|
1095
|
+
controller,
|
|
1096
|
+
context,
|
|
1097
|
+
validatedArgs,
|
|
1098
|
+
successStatus: undefined,
|
|
1099
|
+
});
|
|
1100
|
+
});
|
|
1101
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1102
|
+
const argsUserRoleController_getRoleUserIds = {
|
|
1103
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1104
|
+
};
|
|
1105
|
+
router.get('/api/system/user-role/role/:roleId/user-ids', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getRoleUserIds)), async function UserRoleController_getRoleUserIds(context, next) {
|
|
1106
|
+
let validatedArgs = [];
|
|
1107
|
+
try {
|
|
1108
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getRoleUserIds, context, next });
|
|
1109
|
+
}
|
|
1110
|
+
catch (err) {
|
|
1111
|
+
const error = err;
|
|
1112
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1113
|
+
context.status = error.status;
|
|
1114
|
+
context.throw(context.status, error.message, error);
|
|
1115
|
+
}
|
|
1116
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1117
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1118
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1119
|
+
controller.setStatus(undefined);
|
|
1120
|
+
}
|
|
1121
|
+
return templateService.apiHandler({
|
|
1122
|
+
methodName: 'getRoleUserIds',
|
|
1123
|
+
controller,
|
|
1124
|
+
context,
|
|
1125
|
+
validatedArgs,
|
|
1126
|
+
successStatus: undefined,
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1130
|
+
const argsUserRoleController_getRoleUserNames = {
|
|
1131
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1132
|
+
};
|
|
1133
|
+
router.get('/api/system/user-role/role/:roleId/user-names', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getRoleUserNames)), async function UserRoleController_getRoleUserNames(context, next) {
|
|
1134
|
+
let validatedArgs = [];
|
|
1135
|
+
try {
|
|
1136
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getRoleUserNames, context, next });
|
|
1137
|
+
}
|
|
1138
|
+
catch (err) {
|
|
1139
|
+
const error = err;
|
|
1140
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1141
|
+
context.status = error.status;
|
|
1142
|
+
context.throw(context.status, error.message, error);
|
|
1143
|
+
}
|
|
1144
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1145
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1146
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1147
|
+
controller.setStatus(undefined);
|
|
1148
|
+
}
|
|
1149
|
+
return templateService.apiHandler({
|
|
1150
|
+
methodName: 'getRoleUserNames',
|
|
1151
|
+
controller,
|
|
1152
|
+
context,
|
|
1153
|
+
validatedArgs,
|
|
1154
|
+
successStatus: undefined,
|
|
1155
|
+
});
|
|
1156
|
+
});
|
|
1157
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1158
|
+
const argsUserRoleController_getRoleUserCount = {
|
|
1159
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1160
|
+
};
|
|
1161
|
+
router.get('/api/system/user-role/role/:roleId/user-count', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getRoleUserCount)), async function UserRoleController_getRoleUserCount(context, next) {
|
|
1162
|
+
let validatedArgs = [];
|
|
1163
|
+
try {
|
|
1164
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getRoleUserCount, context, next });
|
|
1165
|
+
}
|
|
1166
|
+
catch (err) {
|
|
1167
|
+
const error = err;
|
|
1168
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1169
|
+
context.status = error.status;
|
|
1170
|
+
context.throw(context.status, error.message, error);
|
|
1171
|
+
}
|
|
1172
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1173
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1174
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1175
|
+
controller.setStatus(undefined);
|
|
1176
|
+
}
|
|
1177
|
+
return templateService.apiHandler({
|
|
1178
|
+
methodName: 'getRoleUserCount',
|
|
1179
|
+
controller,
|
|
1180
|
+
context,
|
|
1181
|
+
validatedArgs,
|
|
1182
|
+
successStatus: undefined,
|
|
1183
|
+
});
|
|
1184
|
+
});
|
|
1185
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1186
|
+
const argsUserRoleController_getUserRoleCount = {
|
|
1187
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
1188
|
+
};
|
|
1189
|
+
router.get('/api/system/user-role/user/:userId/role-count', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getUserRoleCount)), async function UserRoleController_getUserRoleCount(context, next) {
|
|
1190
|
+
let validatedArgs = [];
|
|
1191
|
+
try {
|
|
1192
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getUserRoleCount, context, next });
|
|
1193
|
+
}
|
|
1194
|
+
catch (err) {
|
|
1195
|
+
const error = err;
|
|
1196
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1197
|
+
context.status = error.status;
|
|
1198
|
+
context.throw(context.status, error.message, error);
|
|
1199
|
+
}
|
|
1200
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1201
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1202
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1203
|
+
controller.setStatus(undefined);
|
|
1204
|
+
}
|
|
1205
|
+
return templateService.apiHandler({
|
|
1206
|
+
methodName: 'getUserRoleCount',
|
|
1207
|
+
controller,
|
|
1208
|
+
context,
|
|
1209
|
+
validatedArgs,
|
|
1210
|
+
successStatus: undefined,
|
|
1211
|
+
});
|
|
1212
|
+
});
|
|
1213
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1214
|
+
const argsUserRoleController_checkRole = {
|
|
1215
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
1216
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1217
|
+
};
|
|
1218
|
+
router.get('/api/system/user-role/check/:userId/:roleId', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.checkRole)), async function UserRoleController_checkRole(context, next) {
|
|
1219
|
+
let validatedArgs = [];
|
|
1220
|
+
try {
|
|
1221
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_checkRole, context, next });
|
|
1222
|
+
}
|
|
1223
|
+
catch (err) {
|
|
1224
|
+
const error = err;
|
|
1225
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1226
|
+
context.status = error.status;
|
|
1227
|
+
context.throw(context.status, error.message, error);
|
|
1228
|
+
}
|
|
1229
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1230
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1231
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1232
|
+
controller.setStatus(undefined);
|
|
1233
|
+
}
|
|
1234
|
+
return templateService.apiHandler({
|
|
1235
|
+
methodName: 'checkRole',
|
|
1236
|
+
controller,
|
|
1237
|
+
context,
|
|
1238
|
+
validatedArgs,
|
|
1239
|
+
successStatus: undefined,
|
|
1240
|
+
});
|
|
1241
|
+
});
|
|
1242
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1243
|
+
const argsUserRoleController_getByPage = {
|
|
1244
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
1245
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
1246
|
+
userId: { "in": "query", "name": "userId", "dataType": "string" },
|
|
1247
|
+
roleId: { "in": "query", "name": "roleId", "dataType": "string" },
|
|
1248
|
+
};
|
|
1249
|
+
router.get('/api/system/user-role/search/page', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.getByPage)), async function UserRoleController_getByPage(context, next) {
|
|
1250
|
+
let validatedArgs = [];
|
|
1251
|
+
try {
|
|
1252
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_getByPage, context, next });
|
|
1253
|
+
}
|
|
1254
|
+
catch (err) {
|
|
1255
|
+
const error = err;
|
|
1256
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1257
|
+
context.status = error.status;
|
|
1258
|
+
context.throw(context.status, error.message, error);
|
|
1259
|
+
}
|
|
1260
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1261
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1262
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1263
|
+
controller.setStatus(undefined);
|
|
1264
|
+
}
|
|
1265
|
+
return templateService.apiHandler({
|
|
1266
|
+
methodName: 'getByPage',
|
|
1267
|
+
controller,
|
|
1268
|
+
context,
|
|
1269
|
+
validatedArgs,
|
|
1270
|
+
successStatus: undefined,
|
|
1271
|
+
});
|
|
1272
|
+
});
|
|
1273
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1274
|
+
const argsUserRoleController_assignRoles = {
|
|
1275
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "AssignRolesDto" },
|
|
1276
|
+
};
|
|
1277
|
+
router.post('/api/system/user-role/assign', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.assignRoles)), async function UserRoleController_assignRoles(context, next) {
|
|
1278
|
+
let validatedArgs = [];
|
|
1279
|
+
try {
|
|
1280
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_assignRoles, context, next });
|
|
1281
|
+
}
|
|
1282
|
+
catch (err) {
|
|
1283
|
+
const error = err;
|
|
1284
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1285
|
+
context.status = error.status;
|
|
1286
|
+
context.throw(context.status, error.message, error);
|
|
1287
|
+
}
|
|
1288
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1289
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1290
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1291
|
+
controller.setStatus(undefined);
|
|
1292
|
+
}
|
|
1293
|
+
return templateService.apiHandler({
|
|
1294
|
+
methodName: 'assignRoles',
|
|
1295
|
+
controller,
|
|
1296
|
+
context,
|
|
1297
|
+
validatedArgs,
|
|
1298
|
+
successStatus: 200,
|
|
1299
|
+
});
|
|
1300
|
+
});
|
|
1301
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1302
|
+
const argsUserRoleController_deleteUserRole = {
|
|
1303
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
1304
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1305
|
+
};
|
|
1306
|
+
router.delete('/api/system/user-role/:userId/:roleId', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.deleteUserRole)), async function UserRoleController_deleteUserRole(context, next) {
|
|
1307
|
+
let validatedArgs = [];
|
|
1308
|
+
try {
|
|
1309
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_deleteUserRole, context, next });
|
|
1310
|
+
}
|
|
1311
|
+
catch (err) {
|
|
1312
|
+
const error = err;
|
|
1313
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1314
|
+
context.status = error.status;
|
|
1315
|
+
context.throw(context.status, error.message, error);
|
|
1316
|
+
}
|
|
1317
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1318
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1319
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1320
|
+
controller.setStatus(undefined);
|
|
1321
|
+
}
|
|
1322
|
+
return templateService.apiHandler({
|
|
1323
|
+
methodName: 'deleteUserRole',
|
|
1324
|
+
controller,
|
|
1325
|
+
context,
|
|
1326
|
+
validatedArgs,
|
|
1327
|
+
successStatus: undefined,
|
|
1328
|
+
});
|
|
1329
|
+
});
|
|
1330
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1331
|
+
const argsUserRoleController_removeRolesByUserId = {
|
|
1332
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
1333
|
+
body: { "in": "body", "name": "body", "dataType": "nestedObjectLiteral", "nestedProperties": { "roleIds": { "dataType": "array", "array": { "dataType": "string" } } } },
|
|
1334
|
+
};
|
|
1335
|
+
router.delete('/api/system/user-role/user/:userId', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.removeRolesByUserId)), async function UserRoleController_removeRolesByUserId(context, next) {
|
|
1336
|
+
let validatedArgs = [];
|
|
1337
|
+
try {
|
|
1338
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_removeRolesByUserId, context, next });
|
|
1339
|
+
}
|
|
1340
|
+
catch (err) {
|
|
1341
|
+
const error = err;
|
|
1342
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1343
|
+
context.status = error.status;
|
|
1344
|
+
context.throw(context.status, error.message, error);
|
|
1345
|
+
}
|
|
1346
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1347
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1348
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1349
|
+
controller.setStatus(undefined);
|
|
1350
|
+
}
|
|
1351
|
+
return templateService.apiHandler({
|
|
1352
|
+
methodName: 'removeRolesByUserId',
|
|
1353
|
+
controller,
|
|
1354
|
+
context,
|
|
1355
|
+
validatedArgs,
|
|
1356
|
+
successStatus: undefined,
|
|
1357
|
+
});
|
|
1358
|
+
});
|
|
1359
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1360
|
+
const argsUserRoleController_removeUsersByRoleId = {
|
|
1361
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1362
|
+
body: { "in": "body", "name": "body", "dataType": "nestedObjectLiteral", "nestedProperties": { "userIds": { "dataType": "array", "array": { "dataType": "string" } } } },
|
|
1363
|
+
};
|
|
1364
|
+
router.delete('/api/system/user-role/role/:roleId', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.removeUsersByRoleId)), async function UserRoleController_removeUsersByRoleId(context, next) {
|
|
1365
|
+
let validatedArgs = [];
|
|
1366
|
+
try {
|
|
1367
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_removeUsersByRoleId, context, next });
|
|
1368
|
+
}
|
|
1369
|
+
catch (err) {
|
|
1370
|
+
const error = err;
|
|
1371
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1372
|
+
context.status = error.status;
|
|
1373
|
+
context.throw(context.status, error.message, error);
|
|
1374
|
+
}
|
|
1375
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1376
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1377
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1378
|
+
controller.setStatus(undefined);
|
|
1379
|
+
}
|
|
1380
|
+
return templateService.apiHandler({
|
|
1381
|
+
methodName: 'removeUsersByRoleId',
|
|
1382
|
+
controller,
|
|
1383
|
+
context,
|
|
1384
|
+
validatedArgs,
|
|
1385
|
+
successStatus: undefined,
|
|
1386
|
+
});
|
|
1387
|
+
});
|
|
1388
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1389
|
+
const argsUserRoleController_deleteUserRoleBatch = {
|
|
1390
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
1391
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "roleIds": { "dataType": "array", "array": { "dataType": "string" }, "required": true } } },
|
|
1392
|
+
};
|
|
1393
|
+
router.delete('/api/system/user-role/user/:userId/batch', ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController)), ...((0, runtime_1.fetchMiddlewares)(userRole_controller_1.UserRoleController.prototype.deleteUserRoleBatch)), async function UserRoleController_deleteUserRoleBatch(context, next) {
|
|
1394
|
+
let validatedArgs = [];
|
|
1395
|
+
try {
|
|
1396
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserRoleController_deleteUserRoleBatch, context, next });
|
|
1397
|
+
}
|
|
1398
|
+
catch (err) {
|
|
1399
|
+
const error = err;
|
|
1400
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1401
|
+
context.status = error.status;
|
|
1402
|
+
context.throw(context.status, error.message, error);
|
|
1403
|
+
}
|
|
1404
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1405
|
+
const controller = await container.get(userRole_controller_1.UserRoleController);
|
|
1406
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1407
|
+
controller.setStatus(undefined);
|
|
1408
|
+
}
|
|
1409
|
+
return templateService.apiHandler({
|
|
1410
|
+
methodName: 'deleteUserRoleBatch',
|
|
1411
|
+
controller,
|
|
1412
|
+
context,
|
|
1413
|
+
validatedArgs,
|
|
1414
|
+
successStatus: undefined,
|
|
1415
|
+
});
|
|
1416
|
+
});
|
|
1417
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1418
|
+
const argsUserController_login = {
|
|
1419
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "LoginDto" },
|
|
1420
|
+
req: { "in": "request", "name": "req", "dataType": "object" },
|
|
1421
|
+
};
|
|
1422
|
+
router.post('/api/system/user/login', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.login)), async function UserController_login(context, next) {
|
|
1423
|
+
let validatedArgs = [];
|
|
1424
|
+
try {
|
|
1425
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_login, context, next });
|
|
1426
|
+
}
|
|
1427
|
+
catch (err) {
|
|
1428
|
+
const error = err;
|
|
1429
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1430
|
+
context.status = error.status;
|
|
1431
|
+
context.throw(context.status, error.message, error);
|
|
1432
|
+
}
|
|
1433
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1434
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1435
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1436
|
+
controller.setStatus(undefined);
|
|
1437
|
+
}
|
|
1438
|
+
return templateService.apiHandler({
|
|
1439
|
+
methodName: 'login',
|
|
1440
|
+
controller,
|
|
1441
|
+
context,
|
|
1442
|
+
validatedArgs,
|
|
1443
|
+
successStatus: undefined,
|
|
1444
|
+
});
|
|
1445
|
+
});
|
|
1446
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1447
|
+
const argsUserController_logout = {
|
|
1448
|
+
req: { "in": "request", "name": "req", "dataType": "object" },
|
|
1449
|
+
};
|
|
1450
|
+
router.post('/api/system/user/logout', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.logout)), async function UserController_logout(context, next) {
|
|
1451
|
+
let validatedArgs = [];
|
|
1452
|
+
try {
|
|
1453
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_logout, context, next });
|
|
1454
|
+
}
|
|
1455
|
+
catch (err) {
|
|
1456
|
+
const error = err;
|
|
1457
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1458
|
+
context.status = error.status;
|
|
1459
|
+
context.throw(context.status, error.message, error);
|
|
1460
|
+
}
|
|
1461
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1462
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1463
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1464
|
+
controller.setStatus(undefined);
|
|
1465
|
+
}
|
|
1466
|
+
return templateService.apiHandler({
|
|
1467
|
+
methodName: 'logout',
|
|
1468
|
+
controller,
|
|
1469
|
+
context,
|
|
1470
|
+
validatedArgs,
|
|
1471
|
+
successStatus: undefined,
|
|
1472
|
+
});
|
|
1473
|
+
});
|
|
1474
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1475
|
+
const argsUserController_getCurrentUser = {
|
|
1476
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1477
|
+
};
|
|
1478
|
+
router.get('/api/system/user/current', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.getCurrentUser)), async function UserController_getCurrentUser(context, next) {
|
|
1479
|
+
let validatedArgs = [];
|
|
1480
|
+
try {
|
|
1481
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getCurrentUser, context, next });
|
|
1482
|
+
}
|
|
1483
|
+
catch (err) {
|
|
1484
|
+
const error = err;
|
|
1485
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1486
|
+
context.status = error.status;
|
|
1487
|
+
context.throw(context.status, error.message, error);
|
|
1488
|
+
}
|
|
1489
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1490
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1491
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1492
|
+
controller.setStatus(undefined);
|
|
1493
|
+
}
|
|
1494
|
+
return templateService.apiHandler({
|
|
1495
|
+
methodName: 'getCurrentUser',
|
|
1496
|
+
controller,
|
|
1497
|
+
context,
|
|
1498
|
+
validatedArgs,
|
|
1499
|
+
successStatus: undefined,
|
|
1500
|
+
});
|
|
1501
|
+
});
|
|
1502
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1503
|
+
const argsUserController_getAllUsers = {
|
|
1504
|
+
roleCode: { "in": "query", "name": "roleCode", "dataType": "string" },
|
|
1505
|
+
};
|
|
1506
|
+
router.get('/api/system/user', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.getAllUsers)), async function UserController_getAllUsers(context, next) {
|
|
1507
|
+
let validatedArgs = [];
|
|
1508
|
+
try {
|
|
1509
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAllUsers, context, next });
|
|
1510
|
+
}
|
|
1511
|
+
catch (err) {
|
|
1512
|
+
const error = err;
|
|
1513
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1514
|
+
context.status = error.status;
|
|
1515
|
+
context.throw(context.status, error.message, error);
|
|
1516
|
+
}
|
|
1517
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1518
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1519
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1520
|
+
controller.setStatus(undefined);
|
|
1521
|
+
}
|
|
1522
|
+
return templateService.apiHandler({
|
|
1523
|
+
methodName: 'getAllUsers',
|
|
1524
|
+
controller,
|
|
1525
|
+
context,
|
|
1526
|
+
validatedArgs,
|
|
1527
|
+
successStatus: undefined,
|
|
1528
|
+
});
|
|
1529
|
+
});
|
|
1530
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1531
|
+
const argsUserController_getAllUsersByPage = {
|
|
1532
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
1533
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
1534
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
1535
|
+
};
|
|
1536
|
+
router.get('/api/system/user/page', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.getAllUsersByPage)), async function UserController_getAllUsersByPage(context, next) {
|
|
1537
|
+
let validatedArgs = [];
|
|
1538
|
+
try {
|
|
1539
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getAllUsersByPage, context, next });
|
|
1540
|
+
}
|
|
1541
|
+
catch (err) {
|
|
1542
|
+
const error = err;
|
|
1543
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1544
|
+
context.status = error.status;
|
|
1545
|
+
context.throw(context.status, error.message, error);
|
|
1546
|
+
}
|
|
1547
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1548
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1549
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1550
|
+
controller.setStatus(undefined);
|
|
1551
|
+
}
|
|
1552
|
+
return templateService.apiHandler({
|
|
1553
|
+
methodName: 'getAllUsersByPage',
|
|
1554
|
+
controller,
|
|
1555
|
+
context,
|
|
1556
|
+
validatedArgs,
|
|
1557
|
+
successStatus: undefined,
|
|
1558
|
+
});
|
|
1559
|
+
});
|
|
1560
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1561
|
+
const argsUserController_getUserById = {
|
|
1562
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1563
|
+
};
|
|
1564
|
+
router.get('/api/system/user/:id', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.getUserById)), async function UserController_getUserById(context, next) {
|
|
1565
|
+
let validatedArgs = [];
|
|
1566
|
+
try {
|
|
1567
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_getUserById, context, next });
|
|
1568
|
+
}
|
|
1569
|
+
catch (err) {
|
|
1570
|
+
const error = err;
|
|
1571
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1572
|
+
context.status = error.status;
|
|
1573
|
+
context.throw(context.status, error.message, error);
|
|
1574
|
+
}
|
|
1575
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1576
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1577
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1578
|
+
controller.setStatus(undefined);
|
|
1579
|
+
}
|
|
1580
|
+
return templateService.apiHandler({
|
|
1581
|
+
methodName: 'getUserById',
|
|
1582
|
+
controller,
|
|
1583
|
+
context,
|
|
1584
|
+
validatedArgs,
|
|
1585
|
+
successStatus: undefined,
|
|
1586
|
+
});
|
|
1587
|
+
});
|
|
1588
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1589
|
+
const argsUserController_createUser = {
|
|
1590
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateUserDto" },
|
|
1591
|
+
};
|
|
1592
|
+
router.post('/api/system/user', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.createUser)), async function UserController_createUser(context, next) {
|
|
1593
|
+
let validatedArgs = [];
|
|
1594
|
+
try {
|
|
1595
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_createUser, context, next });
|
|
1596
|
+
}
|
|
1597
|
+
catch (err) {
|
|
1598
|
+
const error = err;
|
|
1599
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1600
|
+
context.status = error.status;
|
|
1601
|
+
context.throw(context.status, error.message, error);
|
|
1602
|
+
}
|
|
1603
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1604
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1605
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1606
|
+
controller.setStatus(undefined);
|
|
1607
|
+
}
|
|
1608
|
+
return templateService.apiHandler({
|
|
1609
|
+
methodName: 'createUser',
|
|
1610
|
+
controller,
|
|
1611
|
+
context,
|
|
1612
|
+
validatedArgs,
|
|
1613
|
+
successStatus: undefined,
|
|
1614
|
+
});
|
|
1615
|
+
});
|
|
1616
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1617
|
+
const argsUserController_updateUser = {
|
|
1618
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1619
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateUserDto" },
|
|
1620
|
+
};
|
|
1621
|
+
router.put('/api/system/user/:id', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.updateUser)), async function UserController_updateUser(context, next) {
|
|
1622
|
+
let validatedArgs = [];
|
|
1623
|
+
try {
|
|
1624
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_updateUser, context, next });
|
|
1625
|
+
}
|
|
1626
|
+
catch (err) {
|
|
1627
|
+
const error = err;
|
|
1628
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1629
|
+
context.status = error.status;
|
|
1630
|
+
context.throw(context.status, error.message, error);
|
|
1631
|
+
}
|
|
1632
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1633
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1634
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1635
|
+
controller.setStatus(undefined);
|
|
1636
|
+
}
|
|
1637
|
+
return templateService.apiHandler({
|
|
1638
|
+
methodName: 'updateUser',
|
|
1639
|
+
controller,
|
|
1640
|
+
context,
|
|
1641
|
+
validatedArgs,
|
|
1642
|
+
successStatus: undefined,
|
|
1643
|
+
});
|
|
1644
|
+
});
|
|
1645
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1646
|
+
const argsUserController_deleteUser = {
|
|
1647
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1648
|
+
};
|
|
1649
|
+
router.delete('/api/system/user/:id', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.deleteUser)), async function UserController_deleteUser(context, next) {
|
|
1650
|
+
let validatedArgs = [];
|
|
1651
|
+
try {
|
|
1652
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_deleteUser, context, next });
|
|
1653
|
+
}
|
|
1654
|
+
catch (err) {
|
|
1655
|
+
const error = err;
|
|
1656
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1657
|
+
context.status = error.status;
|
|
1658
|
+
context.throw(context.status, error.message, error);
|
|
1659
|
+
}
|
|
1660
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1661
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1662
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1663
|
+
controller.setStatus(undefined);
|
|
1664
|
+
}
|
|
1665
|
+
return templateService.apiHandler({
|
|
1666
|
+
methodName: 'deleteUser',
|
|
1667
|
+
controller,
|
|
1668
|
+
context,
|
|
1669
|
+
validatedArgs,
|
|
1670
|
+
successStatus: undefined,
|
|
1671
|
+
});
|
|
1672
|
+
});
|
|
1673
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1674
|
+
const argsUserController_reportPushCid = {
|
|
1675
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
1676
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "cid": { "dataType": "string", "required": true } } },
|
|
1677
|
+
};
|
|
1678
|
+
router.post('/api/system/user/push-cid', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.reportPushCid)), async function UserController_reportPushCid(context, next) {
|
|
1679
|
+
let validatedArgs = [];
|
|
1680
|
+
try {
|
|
1681
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_reportPushCid, context, next });
|
|
1682
|
+
}
|
|
1683
|
+
catch (err) {
|
|
1684
|
+
const error = err;
|
|
1685
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1686
|
+
context.status = error.status;
|
|
1687
|
+
context.throw(context.status, error.message, error);
|
|
1688
|
+
}
|
|
1689
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1690
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1691
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1692
|
+
controller.setStatus(undefined);
|
|
1693
|
+
}
|
|
1694
|
+
return templateService.apiHandler({
|
|
1695
|
+
methodName: 'reportPushCid',
|
|
1696
|
+
controller,
|
|
1697
|
+
context,
|
|
1698
|
+
validatedArgs,
|
|
1699
|
+
successStatus: undefined,
|
|
1700
|
+
});
|
|
1701
|
+
});
|
|
1702
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1703
|
+
const argsUserController_changePassword = {
|
|
1704
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
1705
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "ChangePasswordDto" },
|
|
1706
|
+
};
|
|
1707
|
+
router.put('/api/system/user/:id/password', ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController)), ...((0, runtime_1.fetchMiddlewares)(user_controller_1.UserController.prototype.changePassword)), async function UserController_changePassword(context, next) {
|
|
1708
|
+
let validatedArgs = [];
|
|
1709
|
+
try {
|
|
1710
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsUserController_changePassword, context, next });
|
|
1711
|
+
}
|
|
1712
|
+
catch (err) {
|
|
1713
|
+
const error = err;
|
|
1714
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1715
|
+
context.status = error.status;
|
|
1716
|
+
context.throw(context.status, error.message, error);
|
|
1717
|
+
}
|
|
1718
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1719
|
+
const controller = await container.get(user_controller_1.UserController);
|
|
1720
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1721
|
+
controller.setStatus(undefined);
|
|
1722
|
+
}
|
|
1723
|
+
return templateService.apiHandler({
|
|
1724
|
+
methodName: 'changePassword',
|
|
1725
|
+
controller,
|
|
1726
|
+
context,
|
|
1727
|
+
validatedArgs,
|
|
1728
|
+
successStatus: undefined,
|
|
1729
|
+
});
|
|
1730
|
+
});
|
|
1731
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1732
|
+
const argsRolePermissionController_setPermissions = {
|
|
1733
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1734
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "SetPermissionsDto" },
|
|
1735
|
+
};
|
|
1736
|
+
router.put('/api/system/role-permission/role/:roleId', ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController)), ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController.prototype.setPermissions)), async function RolePermissionController_setPermissions(context, next) {
|
|
1737
|
+
let validatedArgs = [];
|
|
1738
|
+
try {
|
|
1739
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRolePermissionController_setPermissions, context, next });
|
|
1740
|
+
}
|
|
1741
|
+
catch (err) {
|
|
1742
|
+
const error = err;
|
|
1743
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1744
|
+
context.status = error.status;
|
|
1745
|
+
context.throw(context.status, error.message, error);
|
|
1746
|
+
}
|
|
1747
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1748
|
+
const controller = await container.get(rolePermission_controller_1.RolePermissionController);
|
|
1749
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1750
|
+
controller.setStatus(undefined);
|
|
1751
|
+
}
|
|
1752
|
+
return templateService.apiHandler({
|
|
1753
|
+
methodName: 'setPermissions',
|
|
1754
|
+
controller,
|
|
1755
|
+
context,
|
|
1756
|
+
validatedArgs,
|
|
1757
|
+
successStatus: undefined,
|
|
1758
|
+
});
|
|
1759
|
+
});
|
|
1760
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1761
|
+
const argsRolePermissionController_getPermissionsByRole = {
|
|
1762
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1763
|
+
};
|
|
1764
|
+
router.get('/api/system/role-permission/role/:roleId', ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController)), ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController.prototype.getPermissionsByRole)), async function RolePermissionController_getPermissionsByRole(context, next) {
|
|
1765
|
+
let validatedArgs = [];
|
|
1766
|
+
try {
|
|
1767
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRolePermissionController_getPermissionsByRole, context, next });
|
|
1768
|
+
}
|
|
1769
|
+
catch (err) {
|
|
1770
|
+
const error = err;
|
|
1771
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1772
|
+
context.status = error.status;
|
|
1773
|
+
context.throw(context.status, error.message, error);
|
|
1774
|
+
}
|
|
1775
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1776
|
+
const controller = await container.get(rolePermission_controller_1.RolePermissionController);
|
|
1777
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1778
|
+
controller.setStatus(undefined);
|
|
1779
|
+
}
|
|
1780
|
+
return templateService.apiHandler({
|
|
1781
|
+
methodName: 'getPermissionsByRole',
|
|
1782
|
+
controller,
|
|
1783
|
+
context,
|
|
1784
|
+
validatedArgs,
|
|
1785
|
+
successStatus: undefined,
|
|
1786
|
+
});
|
|
1787
|
+
});
|
|
1788
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1789
|
+
const argsRolePermissionController_getPermissionIdsByRole = {
|
|
1790
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1791
|
+
};
|
|
1792
|
+
router.get('/api/system/role-permission/role/:roleId/ids', ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController)), ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController.prototype.getPermissionIdsByRole)), async function RolePermissionController_getPermissionIdsByRole(context, next) {
|
|
1793
|
+
let validatedArgs = [];
|
|
1794
|
+
try {
|
|
1795
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRolePermissionController_getPermissionIdsByRole, context, next });
|
|
1796
|
+
}
|
|
1797
|
+
catch (err) {
|
|
1798
|
+
const error = err;
|
|
1799
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1800
|
+
context.status = error.status;
|
|
1801
|
+
context.throw(context.status, error.message, error);
|
|
1802
|
+
}
|
|
1803
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1804
|
+
const controller = await container.get(rolePermission_controller_1.RolePermissionController);
|
|
1805
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1806
|
+
controller.setStatus(undefined);
|
|
1807
|
+
}
|
|
1808
|
+
return templateService.apiHandler({
|
|
1809
|
+
methodName: 'getPermissionIdsByRole',
|
|
1810
|
+
controller,
|
|
1811
|
+
context,
|
|
1812
|
+
validatedArgs,
|
|
1813
|
+
successStatus: undefined,
|
|
1814
|
+
});
|
|
1815
|
+
});
|
|
1816
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1817
|
+
const argsRolePermissionController_getRolesByPermission = {
|
|
1818
|
+
permissionId: { "in": "path", "name": "permissionId", "required": true, "dataType": "string" },
|
|
1819
|
+
};
|
|
1820
|
+
router.get('/api/system/role-permission/permission/:permissionId', ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController)), ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController.prototype.getRolesByPermission)), async function RolePermissionController_getRolesByPermission(context, next) {
|
|
1821
|
+
let validatedArgs = [];
|
|
1822
|
+
try {
|
|
1823
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRolePermissionController_getRolesByPermission, context, next });
|
|
1824
|
+
}
|
|
1825
|
+
catch (err) {
|
|
1826
|
+
const error = err;
|
|
1827
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1828
|
+
context.status = error.status;
|
|
1829
|
+
context.throw(context.status, error.message, error);
|
|
1830
|
+
}
|
|
1831
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1832
|
+
const controller = await container.get(rolePermission_controller_1.RolePermissionController);
|
|
1833
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1834
|
+
controller.setStatus(undefined);
|
|
1835
|
+
}
|
|
1836
|
+
return templateService.apiHandler({
|
|
1837
|
+
methodName: 'getRolesByPermission',
|
|
1838
|
+
controller,
|
|
1839
|
+
context,
|
|
1840
|
+
validatedArgs,
|
|
1841
|
+
successStatus: undefined,
|
|
1842
|
+
});
|
|
1843
|
+
});
|
|
1844
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1845
|
+
const argsRolePermissionController_checkPermission = {
|
|
1846
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1847
|
+
permissionId: { "in": "path", "name": "permissionId", "required": true, "dataType": "string" },
|
|
1848
|
+
};
|
|
1849
|
+
router.get('/api/system/role-permission/check/:roleId/:permissionId', ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController)), ...((0, runtime_1.fetchMiddlewares)(rolePermission_controller_1.RolePermissionController.prototype.checkPermission)), async function RolePermissionController_checkPermission(context, next) {
|
|
1850
|
+
let validatedArgs = [];
|
|
1851
|
+
try {
|
|
1852
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRolePermissionController_checkPermission, context, next });
|
|
1853
|
+
}
|
|
1854
|
+
catch (err) {
|
|
1855
|
+
const error = err;
|
|
1856
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1857
|
+
context.status = error.status;
|
|
1858
|
+
context.throw(context.status, error.message, error);
|
|
1859
|
+
}
|
|
1860
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1861
|
+
const controller = await container.get(rolePermission_controller_1.RolePermissionController);
|
|
1862
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1863
|
+
controller.setStatus(undefined);
|
|
1864
|
+
}
|
|
1865
|
+
return templateService.apiHandler({
|
|
1866
|
+
methodName: 'checkPermission',
|
|
1867
|
+
controller,
|
|
1868
|
+
context,
|
|
1869
|
+
validatedArgs,
|
|
1870
|
+
successStatus: undefined,
|
|
1871
|
+
});
|
|
1872
|
+
});
|
|
1873
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1874
|
+
const argsRoleMenuController_setMenus = {
|
|
1875
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1876
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "SetMenusDto" },
|
|
1877
|
+
};
|
|
1878
|
+
router.put('/api/system/role-menu/role/:roleId', ...((0, runtime_1.fetchMiddlewares)(roleMenu_controller_1.RoleMenuController)), ...((0, runtime_1.fetchMiddlewares)(roleMenu_controller_1.RoleMenuController.prototype.setMenus)), async function RoleMenuController_setMenus(context, next) {
|
|
1879
|
+
let validatedArgs = [];
|
|
1880
|
+
try {
|
|
1881
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleMenuController_setMenus, context, next });
|
|
1882
|
+
}
|
|
1883
|
+
catch (err) {
|
|
1884
|
+
const error = err;
|
|
1885
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1886
|
+
context.status = error.status;
|
|
1887
|
+
context.throw(context.status, error.message, error);
|
|
1888
|
+
}
|
|
1889
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1890
|
+
const controller = await container.get(roleMenu_controller_1.RoleMenuController);
|
|
1891
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1892
|
+
controller.setStatus(undefined);
|
|
1893
|
+
}
|
|
1894
|
+
return templateService.apiHandler({
|
|
1895
|
+
methodName: 'setMenus',
|
|
1896
|
+
controller,
|
|
1897
|
+
context,
|
|
1898
|
+
validatedArgs,
|
|
1899
|
+
successStatus: undefined,
|
|
1900
|
+
});
|
|
1901
|
+
});
|
|
1902
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1903
|
+
const argsRoleMenuController_getMenusByRole = {
|
|
1904
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1905
|
+
};
|
|
1906
|
+
router.get('/api/system/role-menu/role/:roleId', ...((0, runtime_1.fetchMiddlewares)(roleMenu_controller_1.RoleMenuController)), ...((0, runtime_1.fetchMiddlewares)(roleMenu_controller_1.RoleMenuController.prototype.getMenusByRole)), async function RoleMenuController_getMenusByRole(context, next) {
|
|
1907
|
+
let validatedArgs = [];
|
|
1908
|
+
try {
|
|
1909
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleMenuController_getMenusByRole, context, next });
|
|
1910
|
+
}
|
|
1911
|
+
catch (err) {
|
|
1912
|
+
const error = err;
|
|
1913
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1914
|
+
context.status = error.status;
|
|
1915
|
+
context.throw(context.status, error.message, error);
|
|
1916
|
+
}
|
|
1917
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1918
|
+
const controller = await container.get(roleMenu_controller_1.RoleMenuController);
|
|
1919
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1920
|
+
controller.setStatus(undefined);
|
|
1921
|
+
}
|
|
1922
|
+
return templateService.apiHandler({
|
|
1923
|
+
methodName: 'getMenusByRole',
|
|
1924
|
+
controller,
|
|
1925
|
+
context,
|
|
1926
|
+
validatedArgs,
|
|
1927
|
+
successStatus: undefined,
|
|
1928
|
+
});
|
|
1929
|
+
});
|
|
1930
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1931
|
+
const argsRoleMenuController_getMenuIdsByRole = {
|
|
1932
|
+
roleId: { "in": "path", "name": "roleId", "required": true, "dataType": "string" },
|
|
1933
|
+
};
|
|
1934
|
+
router.get('/api/system/role-menu/role/:roleId/ids', ...((0, runtime_1.fetchMiddlewares)(roleMenu_controller_1.RoleMenuController)), ...((0, runtime_1.fetchMiddlewares)(roleMenu_controller_1.RoleMenuController.prototype.getMenuIdsByRole)), async function RoleMenuController_getMenuIdsByRole(context, next) {
|
|
1935
|
+
let validatedArgs = [];
|
|
1936
|
+
try {
|
|
1937
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleMenuController_getMenuIdsByRole, context, next });
|
|
1938
|
+
}
|
|
1939
|
+
catch (err) {
|
|
1940
|
+
const error = err;
|
|
1941
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1942
|
+
context.status = error.status;
|
|
1943
|
+
context.throw(context.status, error.message, error);
|
|
1944
|
+
}
|
|
1945
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1946
|
+
const controller = await container.get(roleMenu_controller_1.RoleMenuController);
|
|
1947
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1948
|
+
controller.setStatus(undefined);
|
|
1949
|
+
}
|
|
1950
|
+
return templateService.apiHandler({
|
|
1951
|
+
methodName: 'getMenuIdsByRole',
|
|
1952
|
+
controller,
|
|
1953
|
+
context,
|
|
1954
|
+
validatedArgs,
|
|
1955
|
+
successStatus: undefined,
|
|
1956
|
+
});
|
|
1957
|
+
});
|
|
1958
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1959
|
+
const argsRoleController_getAllRoles = {
|
|
1960
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
1961
|
+
};
|
|
1962
|
+
router.get('/api/system/role', ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController)), ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController.prototype.getAllRoles)), async function RoleController_getAllRoles(context, next) {
|
|
1963
|
+
let validatedArgs = [];
|
|
1964
|
+
try {
|
|
1965
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleController_getAllRoles, context, next });
|
|
1966
|
+
}
|
|
1967
|
+
catch (err) {
|
|
1968
|
+
const error = err;
|
|
1969
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
1970
|
+
context.status = error.status;
|
|
1971
|
+
context.throw(context.status, error.message, error);
|
|
1972
|
+
}
|
|
1973
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
1974
|
+
const controller = await container.get(role_controller_1.RoleController);
|
|
1975
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
1976
|
+
controller.setStatus(undefined);
|
|
1977
|
+
}
|
|
1978
|
+
return templateService.apiHandler({
|
|
1979
|
+
methodName: 'getAllRoles',
|
|
1980
|
+
controller,
|
|
1981
|
+
context,
|
|
1982
|
+
validatedArgs,
|
|
1983
|
+
successStatus: undefined,
|
|
1984
|
+
});
|
|
1985
|
+
});
|
|
1986
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
1987
|
+
const argsRoleController_getAllRolesByPage = {
|
|
1988
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
1989
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
1990
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
1991
|
+
};
|
|
1992
|
+
router.get('/api/system/role/page', ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController)), ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController.prototype.getAllRolesByPage)), async function RoleController_getAllRolesByPage(context, next) {
|
|
1993
|
+
let validatedArgs = [];
|
|
1994
|
+
try {
|
|
1995
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleController_getAllRolesByPage, context, next });
|
|
1996
|
+
}
|
|
1997
|
+
catch (err) {
|
|
1998
|
+
const error = err;
|
|
1999
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2000
|
+
context.status = error.status;
|
|
2001
|
+
context.throw(context.status, error.message, error);
|
|
2002
|
+
}
|
|
2003
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2004
|
+
const controller = await container.get(role_controller_1.RoleController);
|
|
2005
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2006
|
+
controller.setStatus(undefined);
|
|
2007
|
+
}
|
|
2008
|
+
return templateService.apiHandler({
|
|
2009
|
+
methodName: 'getAllRolesByPage',
|
|
2010
|
+
controller,
|
|
2011
|
+
context,
|
|
2012
|
+
validatedArgs,
|
|
2013
|
+
successStatus: undefined,
|
|
2014
|
+
});
|
|
2015
|
+
});
|
|
2016
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2017
|
+
const argsRoleController_getRoleById = {
|
|
2018
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2019
|
+
};
|
|
2020
|
+
router.get('/api/system/role/:id', ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController)), ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController.prototype.getRoleById)), async function RoleController_getRoleById(context, next) {
|
|
2021
|
+
let validatedArgs = [];
|
|
2022
|
+
try {
|
|
2023
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleController_getRoleById, context, next });
|
|
2024
|
+
}
|
|
2025
|
+
catch (err) {
|
|
2026
|
+
const error = err;
|
|
2027
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2028
|
+
context.status = error.status;
|
|
2029
|
+
context.throw(context.status, error.message, error);
|
|
2030
|
+
}
|
|
2031
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2032
|
+
const controller = await container.get(role_controller_1.RoleController);
|
|
2033
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2034
|
+
controller.setStatus(undefined);
|
|
2035
|
+
}
|
|
2036
|
+
return templateService.apiHandler({
|
|
2037
|
+
methodName: 'getRoleById',
|
|
2038
|
+
controller,
|
|
2039
|
+
context,
|
|
2040
|
+
validatedArgs,
|
|
2041
|
+
successStatus: undefined,
|
|
2042
|
+
});
|
|
2043
|
+
});
|
|
2044
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2045
|
+
const argsRoleController_createRole = {
|
|
2046
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateRoleDto" },
|
|
2047
|
+
};
|
|
2048
|
+
router.post('/api/system/role', ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController)), ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController.prototype.createRole)), async function RoleController_createRole(context, next) {
|
|
2049
|
+
let validatedArgs = [];
|
|
2050
|
+
try {
|
|
2051
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleController_createRole, context, next });
|
|
2052
|
+
}
|
|
2053
|
+
catch (err) {
|
|
2054
|
+
const error = err;
|
|
2055
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2056
|
+
context.status = error.status;
|
|
2057
|
+
context.throw(context.status, error.message, error);
|
|
2058
|
+
}
|
|
2059
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2060
|
+
const controller = await container.get(role_controller_1.RoleController);
|
|
2061
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2062
|
+
controller.setStatus(undefined);
|
|
2063
|
+
}
|
|
2064
|
+
return templateService.apiHandler({
|
|
2065
|
+
methodName: 'createRole',
|
|
2066
|
+
controller,
|
|
2067
|
+
context,
|
|
2068
|
+
validatedArgs,
|
|
2069
|
+
successStatus: undefined,
|
|
2070
|
+
});
|
|
2071
|
+
});
|
|
2072
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2073
|
+
const argsRoleController_updateRole = {
|
|
2074
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2075
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateRoleDto" },
|
|
2076
|
+
};
|
|
2077
|
+
router.put('/api/system/role/:id', ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController)), ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController.prototype.updateRole)), async function RoleController_updateRole(context, next) {
|
|
2078
|
+
let validatedArgs = [];
|
|
2079
|
+
try {
|
|
2080
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleController_updateRole, context, next });
|
|
2081
|
+
}
|
|
2082
|
+
catch (err) {
|
|
2083
|
+
const error = err;
|
|
2084
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2085
|
+
context.status = error.status;
|
|
2086
|
+
context.throw(context.status, error.message, error);
|
|
2087
|
+
}
|
|
2088
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2089
|
+
const controller = await container.get(role_controller_1.RoleController);
|
|
2090
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2091
|
+
controller.setStatus(undefined);
|
|
2092
|
+
}
|
|
2093
|
+
return templateService.apiHandler({
|
|
2094
|
+
methodName: 'updateRole',
|
|
2095
|
+
controller,
|
|
2096
|
+
context,
|
|
2097
|
+
validatedArgs,
|
|
2098
|
+
successStatus: undefined,
|
|
2099
|
+
});
|
|
2100
|
+
});
|
|
2101
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2102
|
+
const argsRoleController_deleteRole = {
|
|
2103
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2104
|
+
};
|
|
2105
|
+
router.delete('/api/system/role/:id', ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController)), ...((0, runtime_1.fetchMiddlewares)(role_controller_1.RoleController.prototype.deleteRole)), async function RoleController_deleteRole(context, next) {
|
|
2106
|
+
let validatedArgs = [];
|
|
2107
|
+
try {
|
|
2108
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsRoleController_deleteRole, context, next });
|
|
2109
|
+
}
|
|
2110
|
+
catch (err) {
|
|
2111
|
+
const error = err;
|
|
2112
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2113
|
+
context.status = error.status;
|
|
2114
|
+
context.throw(context.status, error.message, error);
|
|
2115
|
+
}
|
|
2116
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2117
|
+
const controller = await container.get(role_controller_1.RoleController);
|
|
2118
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2119
|
+
controller.setStatus(undefined);
|
|
2120
|
+
}
|
|
2121
|
+
return templateService.apiHandler({
|
|
2122
|
+
methodName: 'deleteRole',
|
|
2123
|
+
controller,
|
|
2124
|
+
context,
|
|
2125
|
+
validatedArgs,
|
|
2126
|
+
successStatus: undefined,
|
|
2127
|
+
});
|
|
2128
|
+
});
|
|
2129
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2130
|
+
const argsPermissionController_getAllPermissions = {
|
|
2131
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
2132
|
+
};
|
|
2133
|
+
router.get('/api/system/permission', ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController)), ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController.prototype.getAllPermissions)), async function PermissionController_getAllPermissions(context, next) {
|
|
2134
|
+
let validatedArgs = [];
|
|
2135
|
+
try {
|
|
2136
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPermissionController_getAllPermissions, context, next });
|
|
2137
|
+
}
|
|
2138
|
+
catch (err) {
|
|
2139
|
+
const error = err;
|
|
2140
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2141
|
+
context.status = error.status;
|
|
2142
|
+
context.throw(context.status, error.message, error);
|
|
2143
|
+
}
|
|
2144
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2145
|
+
const controller = await container.get(permission_controller_1.PermissionController);
|
|
2146
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2147
|
+
controller.setStatus(undefined);
|
|
2148
|
+
}
|
|
2149
|
+
return templateService.apiHandler({
|
|
2150
|
+
methodName: 'getAllPermissions',
|
|
2151
|
+
controller,
|
|
2152
|
+
context,
|
|
2153
|
+
validatedArgs,
|
|
2154
|
+
successStatus: undefined,
|
|
2155
|
+
});
|
|
2156
|
+
});
|
|
2157
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2158
|
+
const argsPermissionController_getAllPermissionsByPage = {
|
|
2159
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
2160
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
2161
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
2162
|
+
};
|
|
2163
|
+
router.get('/api/system/permission/page', ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController)), ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController.prototype.getAllPermissionsByPage)), async function PermissionController_getAllPermissionsByPage(context, next) {
|
|
2164
|
+
let validatedArgs = [];
|
|
2165
|
+
try {
|
|
2166
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPermissionController_getAllPermissionsByPage, context, next });
|
|
2167
|
+
}
|
|
2168
|
+
catch (err) {
|
|
2169
|
+
const error = err;
|
|
2170
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2171
|
+
context.status = error.status;
|
|
2172
|
+
context.throw(context.status, error.message, error);
|
|
2173
|
+
}
|
|
2174
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2175
|
+
const controller = await container.get(permission_controller_1.PermissionController);
|
|
2176
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2177
|
+
controller.setStatus(undefined);
|
|
2178
|
+
}
|
|
2179
|
+
return templateService.apiHandler({
|
|
2180
|
+
methodName: 'getAllPermissionsByPage',
|
|
2181
|
+
controller,
|
|
2182
|
+
context,
|
|
2183
|
+
validatedArgs,
|
|
2184
|
+
successStatus: undefined,
|
|
2185
|
+
});
|
|
2186
|
+
});
|
|
2187
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2188
|
+
const argsPermissionController_getPermissionTree = {};
|
|
2189
|
+
router.get('/api/system/permission/tree', ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController)), ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController.prototype.getPermissionTree)), async function PermissionController_getPermissionTree(context, next) {
|
|
2190
|
+
let validatedArgs = [];
|
|
2191
|
+
try {
|
|
2192
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPermissionController_getPermissionTree, context, next });
|
|
2193
|
+
}
|
|
2194
|
+
catch (err) {
|
|
2195
|
+
const error = err;
|
|
2196
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2197
|
+
context.status = error.status;
|
|
2198
|
+
context.throw(context.status, error.message, error);
|
|
2199
|
+
}
|
|
2200
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2201
|
+
const controller = await container.get(permission_controller_1.PermissionController);
|
|
2202
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2203
|
+
controller.setStatus(undefined);
|
|
2204
|
+
}
|
|
2205
|
+
return templateService.apiHandler({
|
|
2206
|
+
methodName: 'getPermissionTree',
|
|
2207
|
+
controller,
|
|
2208
|
+
context,
|
|
2209
|
+
validatedArgs,
|
|
2210
|
+
successStatus: undefined,
|
|
2211
|
+
});
|
|
2212
|
+
});
|
|
2213
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2214
|
+
const argsPermissionController_getPermissionsByType = {
|
|
2215
|
+
type: { "in": "path", "name": "type", "required": true, "dataType": "string" },
|
|
2216
|
+
};
|
|
2217
|
+
router.get('/api/system/permission/type/:type', ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController)), ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController.prototype.getPermissionsByType)), async function PermissionController_getPermissionsByType(context, next) {
|
|
2218
|
+
let validatedArgs = [];
|
|
2219
|
+
try {
|
|
2220
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPermissionController_getPermissionsByType, context, next });
|
|
2221
|
+
}
|
|
2222
|
+
catch (err) {
|
|
2223
|
+
const error = err;
|
|
2224
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2225
|
+
context.status = error.status;
|
|
2226
|
+
context.throw(context.status, error.message, error);
|
|
2227
|
+
}
|
|
2228
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2229
|
+
const controller = await container.get(permission_controller_1.PermissionController);
|
|
2230
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2231
|
+
controller.setStatus(undefined);
|
|
2232
|
+
}
|
|
2233
|
+
return templateService.apiHandler({
|
|
2234
|
+
methodName: 'getPermissionsByType',
|
|
2235
|
+
controller,
|
|
2236
|
+
context,
|
|
2237
|
+
validatedArgs,
|
|
2238
|
+
successStatus: undefined,
|
|
2239
|
+
});
|
|
2240
|
+
});
|
|
2241
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2242
|
+
const argsPermissionController_getPermissionById = {
|
|
2243
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2244
|
+
};
|
|
2245
|
+
router.get('/api/system/permission/:id', ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController)), ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController.prototype.getPermissionById)), async function PermissionController_getPermissionById(context, next) {
|
|
2246
|
+
let validatedArgs = [];
|
|
2247
|
+
try {
|
|
2248
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPermissionController_getPermissionById, context, next });
|
|
2249
|
+
}
|
|
2250
|
+
catch (err) {
|
|
2251
|
+
const error = err;
|
|
2252
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2253
|
+
context.status = error.status;
|
|
2254
|
+
context.throw(context.status, error.message, error);
|
|
2255
|
+
}
|
|
2256
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2257
|
+
const controller = await container.get(permission_controller_1.PermissionController);
|
|
2258
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2259
|
+
controller.setStatus(undefined);
|
|
2260
|
+
}
|
|
2261
|
+
return templateService.apiHandler({
|
|
2262
|
+
methodName: 'getPermissionById',
|
|
2263
|
+
controller,
|
|
2264
|
+
context,
|
|
2265
|
+
validatedArgs,
|
|
2266
|
+
successStatus: undefined,
|
|
2267
|
+
});
|
|
2268
|
+
});
|
|
2269
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2270
|
+
const argsPermissionController_createPermission = {
|
|
2271
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreatePermissionDto" },
|
|
2272
|
+
};
|
|
2273
|
+
router.post('/api/system/permission', ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController)), ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController.prototype.createPermission)), async function PermissionController_createPermission(context, next) {
|
|
2274
|
+
let validatedArgs = [];
|
|
2275
|
+
try {
|
|
2276
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPermissionController_createPermission, context, next });
|
|
2277
|
+
}
|
|
2278
|
+
catch (err) {
|
|
2279
|
+
const error = err;
|
|
2280
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2281
|
+
context.status = error.status;
|
|
2282
|
+
context.throw(context.status, error.message, error);
|
|
2283
|
+
}
|
|
2284
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2285
|
+
const controller = await container.get(permission_controller_1.PermissionController);
|
|
2286
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2287
|
+
controller.setStatus(undefined);
|
|
2288
|
+
}
|
|
2289
|
+
return templateService.apiHandler({
|
|
2290
|
+
methodName: 'createPermission',
|
|
2291
|
+
controller,
|
|
2292
|
+
context,
|
|
2293
|
+
validatedArgs,
|
|
2294
|
+
successStatus: undefined,
|
|
2295
|
+
});
|
|
2296
|
+
});
|
|
2297
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2298
|
+
const argsPermissionController_updatePermission = {
|
|
2299
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2300
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdatePermissionDto" },
|
|
2301
|
+
};
|
|
2302
|
+
router.put('/api/system/permission/:id', ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController)), ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController.prototype.updatePermission)), async function PermissionController_updatePermission(context, next) {
|
|
2303
|
+
let validatedArgs = [];
|
|
2304
|
+
try {
|
|
2305
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPermissionController_updatePermission, context, next });
|
|
2306
|
+
}
|
|
2307
|
+
catch (err) {
|
|
2308
|
+
const error = err;
|
|
2309
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2310
|
+
context.status = error.status;
|
|
2311
|
+
context.throw(context.status, error.message, error);
|
|
2312
|
+
}
|
|
2313
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2314
|
+
const controller = await container.get(permission_controller_1.PermissionController);
|
|
2315
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2316
|
+
controller.setStatus(undefined);
|
|
2317
|
+
}
|
|
2318
|
+
return templateService.apiHandler({
|
|
2319
|
+
methodName: 'updatePermission',
|
|
2320
|
+
controller,
|
|
2321
|
+
context,
|
|
2322
|
+
validatedArgs,
|
|
2323
|
+
successStatus: undefined,
|
|
2324
|
+
});
|
|
2325
|
+
});
|
|
2326
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2327
|
+
const argsPermissionController_deletePermission = {
|
|
2328
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2329
|
+
};
|
|
2330
|
+
router.delete('/api/system/permission/:id', ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController)), ...((0, runtime_1.fetchMiddlewares)(permission_controller_1.PermissionController.prototype.deletePermission)), async function PermissionController_deletePermission(context, next) {
|
|
2331
|
+
let validatedArgs = [];
|
|
2332
|
+
try {
|
|
2333
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsPermissionController_deletePermission, context, next });
|
|
2334
|
+
}
|
|
2335
|
+
catch (err) {
|
|
2336
|
+
const error = err;
|
|
2337
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2338
|
+
context.status = error.status;
|
|
2339
|
+
context.throw(context.status, error.message, error);
|
|
2340
|
+
}
|
|
2341
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2342
|
+
const controller = await container.get(permission_controller_1.PermissionController);
|
|
2343
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2344
|
+
controller.setStatus(undefined);
|
|
2345
|
+
}
|
|
2346
|
+
return templateService.apiHandler({
|
|
2347
|
+
methodName: 'deletePermission',
|
|
2348
|
+
controller,
|
|
2349
|
+
context,
|
|
2350
|
+
validatedArgs,
|
|
2351
|
+
successStatus: undefined,
|
|
2352
|
+
});
|
|
2353
|
+
});
|
|
2354
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2355
|
+
const argsOperationLogController_createLog = {
|
|
2356
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateOperationLogDto" },
|
|
2357
|
+
};
|
|
2358
|
+
router.post('/api/system/operation-log', ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController)), ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController.prototype.createLog)), async function OperationLogController_createLog(context, next) {
|
|
2359
|
+
let validatedArgs = [];
|
|
2360
|
+
try {
|
|
2361
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsOperationLogController_createLog, context, next });
|
|
2362
|
+
}
|
|
2363
|
+
catch (err) {
|
|
2364
|
+
const error = err;
|
|
2365
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2366
|
+
context.status = error.status;
|
|
2367
|
+
context.throw(context.status, error.message, error);
|
|
2368
|
+
}
|
|
2369
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2370
|
+
const controller = await container.get(operationLog_controller_1.OperationLogController);
|
|
2371
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2372
|
+
controller.setStatus(undefined);
|
|
2373
|
+
}
|
|
2374
|
+
return templateService.apiHandler({
|
|
2375
|
+
methodName: 'createLog',
|
|
2376
|
+
controller,
|
|
2377
|
+
context,
|
|
2378
|
+
validatedArgs,
|
|
2379
|
+
successStatus: 201,
|
|
2380
|
+
});
|
|
2381
|
+
});
|
|
2382
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2383
|
+
const argsOperationLogController_getLogById = {
|
|
2384
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2385
|
+
};
|
|
2386
|
+
router.get('/api/system/operation-log/:id', ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController)), ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController.prototype.getLogById)), async function OperationLogController_getLogById(context, next) {
|
|
2387
|
+
let validatedArgs = [];
|
|
2388
|
+
try {
|
|
2389
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsOperationLogController_getLogById, context, next });
|
|
2390
|
+
}
|
|
2391
|
+
catch (err) {
|
|
2392
|
+
const error = err;
|
|
2393
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2394
|
+
context.status = error.status;
|
|
2395
|
+
context.throw(context.status, error.message, error);
|
|
2396
|
+
}
|
|
2397
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2398
|
+
const controller = await container.get(operationLog_controller_1.OperationLogController);
|
|
2399
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2400
|
+
controller.setStatus(undefined);
|
|
2401
|
+
}
|
|
2402
|
+
return templateService.apiHandler({
|
|
2403
|
+
methodName: 'getLogById',
|
|
2404
|
+
controller,
|
|
2405
|
+
context,
|
|
2406
|
+
validatedArgs,
|
|
2407
|
+
successStatus: undefined,
|
|
2408
|
+
});
|
|
2409
|
+
});
|
|
2410
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2411
|
+
const argsOperationLogController_getLogsByPage = {
|
|
2412
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
2413
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
2414
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
2415
|
+
module: { "in": "query", "name": "module", "dataType": "string" },
|
|
2416
|
+
action: { "in": "query", "name": "action", "dataType": "string" },
|
|
2417
|
+
userId: { "in": "query", "name": "userId", "dataType": "string" },
|
|
2418
|
+
startDate: { "in": "query", "name": "startDate", "dataType": "string" },
|
|
2419
|
+
endDate: { "in": "query", "name": "endDate", "dataType": "string" },
|
|
2420
|
+
};
|
|
2421
|
+
router.get('/api/system/operation-log/search/page', ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController)), ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController.prototype.getLogsByPage)), async function OperationLogController_getLogsByPage(context, next) {
|
|
2422
|
+
let validatedArgs = [];
|
|
2423
|
+
try {
|
|
2424
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsOperationLogController_getLogsByPage, context, next });
|
|
2425
|
+
}
|
|
2426
|
+
catch (err) {
|
|
2427
|
+
const error = err;
|
|
2428
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2429
|
+
context.status = error.status;
|
|
2430
|
+
context.throw(context.status, error.message, error);
|
|
2431
|
+
}
|
|
2432
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2433
|
+
const controller = await container.get(operationLog_controller_1.OperationLogController);
|
|
2434
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2435
|
+
controller.setStatus(undefined);
|
|
2436
|
+
}
|
|
2437
|
+
return templateService.apiHandler({
|
|
2438
|
+
methodName: 'getLogsByPage',
|
|
2439
|
+
controller,
|
|
2440
|
+
context,
|
|
2441
|
+
validatedArgs,
|
|
2442
|
+
successStatus: undefined,
|
|
2443
|
+
});
|
|
2444
|
+
});
|
|
2445
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2446
|
+
const argsOperationLogController_getDistinctModules = {};
|
|
2447
|
+
router.get('/api/system/operation-log/modules', ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController)), ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController.prototype.getDistinctModules)), async function OperationLogController_getDistinctModules(context, next) {
|
|
2448
|
+
let validatedArgs = [];
|
|
2449
|
+
try {
|
|
2450
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsOperationLogController_getDistinctModules, context, next });
|
|
2451
|
+
}
|
|
2452
|
+
catch (err) {
|
|
2453
|
+
const error = err;
|
|
2454
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2455
|
+
context.status = error.status;
|
|
2456
|
+
context.throw(context.status, error.message, error);
|
|
2457
|
+
}
|
|
2458
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2459
|
+
const controller = await container.get(operationLog_controller_1.OperationLogController);
|
|
2460
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2461
|
+
controller.setStatus(undefined);
|
|
2462
|
+
}
|
|
2463
|
+
return templateService.apiHandler({
|
|
2464
|
+
methodName: 'getDistinctModules',
|
|
2465
|
+
controller,
|
|
2466
|
+
context,
|
|
2467
|
+
validatedArgs,
|
|
2468
|
+
successStatus: undefined,
|
|
2469
|
+
});
|
|
2470
|
+
});
|
|
2471
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2472
|
+
const argsOperationLogController_getDistinctActions = {};
|
|
2473
|
+
router.get('/api/system/operation-log/actions', ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController)), ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController.prototype.getDistinctActions)), async function OperationLogController_getDistinctActions(context, next) {
|
|
2474
|
+
let validatedArgs = [];
|
|
2475
|
+
try {
|
|
2476
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsOperationLogController_getDistinctActions, context, next });
|
|
2477
|
+
}
|
|
2478
|
+
catch (err) {
|
|
2479
|
+
const error = err;
|
|
2480
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2481
|
+
context.status = error.status;
|
|
2482
|
+
context.throw(context.status, error.message, error);
|
|
2483
|
+
}
|
|
2484
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2485
|
+
const controller = await container.get(operationLog_controller_1.OperationLogController);
|
|
2486
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2487
|
+
controller.setStatus(undefined);
|
|
2488
|
+
}
|
|
2489
|
+
return templateService.apiHandler({
|
|
2490
|
+
methodName: 'getDistinctActions',
|
|
2491
|
+
controller,
|
|
2492
|
+
context,
|
|
2493
|
+
validatedArgs,
|
|
2494
|
+
successStatus: undefined,
|
|
2495
|
+
});
|
|
2496
|
+
});
|
|
2497
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2498
|
+
const argsOperationLogController_cleanLogs = {
|
|
2499
|
+
days: { "in": "path", "name": "days", "required": true, "dataType": "double" },
|
|
2500
|
+
};
|
|
2501
|
+
router.delete('/api/system/operation-log/clean/:days', ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController)), ...((0, runtime_1.fetchMiddlewares)(operationLog_controller_1.OperationLogController.prototype.cleanLogs)), async function OperationLogController_cleanLogs(context, next) {
|
|
2502
|
+
let validatedArgs = [];
|
|
2503
|
+
try {
|
|
2504
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsOperationLogController_cleanLogs, context, next });
|
|
2505
|
+
}
|
|
2506
|
+
catch (err) {
|
|
2507
|
+
const error = err;
|
|
2508
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2509
|
+
context.status = error.status;
|
|
2510
|
+
context.throw(context.status, error.message, error);
|
|
2511
|
+
}
|
|
2512
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2513
|
+
const controller = await container.get(operationLog_controller_1.OperationLogController);
|
|
2514
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2515
|
+
controller.setStatus(undefined);
|
|
2516
|
+
}
|
|
2517
|
+
return templateService.apiHandler({
|
|
2518
|
+
methodName: 'cleanLogs',
|
|
2519
|
+
controller,
|
|
2520
|
+
context,
|
|
2521
|
+
validatedArgs,
|
|
2522
|
+
successStatus: undefined,
|
|
2523
|
+
});
|
|
2524
|
+
});
|
|
2525
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2526
|
+
const argsMenuController_getAllMenus = {};
|
|
2527
|
+
router.get('/api/system/menu', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.getAllMenus)), async function MenuController_getAllMenus(context, next) {
|
|
2528
|
+
let validatedArgs = [];
|
|
2529
|
+
try {
|
|
2530
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_getAllMenus, context, next });
|
|
2531
|
+
}
|
|
2532
|
+
catch (err) {
|
|
2533
|
+
const error = err;
|
|
2534
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2535
|
+
context.status = error.status;
|
|
2536
|
+
context.throw(context.status, error.message, error);
|
|
2537
|
+
}
|
|
2538
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2539
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2540
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2541
|
+
controller.setStatus(undefined);
|
|
2542
|
+
}
|
|
2543
|
+
return templateService.apiHandler({
|
|
2544
|
+
methodName: 'getAllMenus',
|
|
2545
|
+
controller,
|
|
2546
|
+
context,
|
|
2547
|
+
validatedArgs,
|
|
2548
|
+
successStatus: undefined,
|
|
2549
|
+
});
|
|
2550
|
+
});
|
|
2551
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2552
|
+
const argsMenuController_getMenuTree = {};
|
|
2553
|
+
router.get('/api/system/menu/tree', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.getMenuTree)), async function MenuController_getMenuTree(context, next) {
|
|
2554
|
+
let validatedArgs = [];
|
|
2555
|
+
try {
|
|
2556
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_getMenuTree, context, next });
|
|
2557
|
+
}
|
|
2558
|
+
catch (err) {
|
|
2559
|
+
const error = err;
|
|
2560
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2561
|
+
context.status = error.status;
|
|
2562
|
+
context.throw(context.status, error.message, error);
|
|
2563
|
+
}
|
|
2564
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2565
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2566
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2567
|
+
controller.setStatus(undefined);
|
|
2568
|
+
}
|
|
2569
|
+
return templateService.apiHandler({
|
|
2570
|
+
methodName: 'getMenuTree',
|
|
2571
|
+
controller,
|
|
2572
|
+
context,
|
|
2573
|
+
validatedArgs,
|
|
2574
|
+
successStatus: undefined,
|
|
2575
|
+
});
|
|
2576
|
+
});
|
|
2577
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2578
|
+
const argsMenuController_getMenusByType = {
|
|
2579
|
+
type: { "in": "path", "name": "type", "required": true, "dataType": "string" },
|
|
2580
|
+
};
|
|
2581
|
+
router.get('/api/system/menu/type/:type', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.getMenusByType)), async function MenuController_getMenusByType(context, next) {
|
|
2582
|
+
let validatedArgs = [];
|
|
2583
|
+
try {
|
|
2584
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_getMenusByType, context, next });
|
|
2585
|
+
}
|
|
2586
|
+
catch (err) {
|
|
2587
|
+
const error = err;
|
|
2588
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2589
|
+
context.status = error.status;
|
|
2590
|
+
context.throw(context.status, error.message, error);
|
|
2591
|
+
}
|
|
2592
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2593
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2594
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2595
|
+
controller.setStatus(undefined);
|
|
2596
|
+
}
|
|
2597
|
+
return templateService.apiHandler({
|
|
2598
|
+
methodName: 'getMenusByType',
|
|
2599
|
+
controller,
|
|
2600
|
+
context,
|
|
2601
|
+
validatedArgs,
|
|
2602
|
+
successStatus: undefined,
|
|
2603
|
+
});
|
|
2604
|
+
});
|
|
2605
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2606
|
+
const argsMenuController_getMenusByParent = {
|
|
2607
|
+
parentId: { "in": "path", "name": "parentId", "required": true, "dataType": "string" },
|
|
2608
|
+
};
|
|
2609
|
+
router.get('/api/system/menu/parent/:parentId', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.getMenusByParent)), async function MenuController_getMenusByParent(context, next) {
|
|
2610
|
+
let validatedArgs = [];
|
|
2611
|
+
try {
|
|
2612
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_getMenusByParent, context, next });
|
|
2613
|
+
}
|
|
2614
|
+
catch (err) {
|
|
2615
|
+
const error = err;
|
|
2616
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2617
|
+
context.status = error.status;
|
|
2618
|
+
context.throw(context.status, error.message, error);
|
|
2619
|
+
}
|
|
2620
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2621
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2622
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2623
|
+
controller.setStatus(undefined);
|
|
2624
|
+
}
|
|
2625
|
+
return templateService.apiHandler({
|
|
2626
|
+
methodName: 'getMenusByParent',
|
|
2627
|
+
controller,
|
|
2628
|
+
context,
|
|
2629
|
+
validatedArgs,
|
|
2630
|
+
successStatus: undefined,
|
|
2631
|
+
});
|
|
2632
|
+
});
|
|
2633
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2634
|
+
const argsMenuController_getMenuById = {
|
|
2635
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2636
|
+
};
|
|
2637
|
+
router.get('/api/system/menu/:id', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.getMenuById)), async function MenuController_getMenuById(context, next) {
|
|
2638
|
+
let validatedArgs = [];
|
|
2639
|
+
try {
|
|
2640
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_getMenuById, context, next });
|
|
2641
|
+
}
|
|
2642
|
+
catch (err) {
|
|
2643
|
+
const error = err;
|
|
2644
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2645
|
+
context.status = error.status;
|
|
2646
|
+
context.throw(context.status, error.message, error);
|
|
2647
|
+
}
|
|
2648
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2649
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2650
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2651
|
+
controller.setStatus(undefined);
|
|
2652
|
+
}
|
|
2653
|
+
return templateService.apiHandler({
|
|
2654
|
+
methodName: 'getMenuById',
|
|
2655
|
+
controller,
|
|
2656
|
+
context,
|
|
2657
|
+
validatedArgs,
|
|
2658
|
+
successStatus: undefined,
|
|
2659
|
+
});
|
|
2660
|
+
});
|
|
2661
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2662
|
+
const argsMenuController_searchMenusByPage = {
|
|
2663
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
2664
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
2665
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
2666
|
+
};
|
|
2667
|
+
router.get('/api/system/menu/search/page', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.searchMenusByPage)), async function MenuController_searchMenusByPage(context, next) {
|
|
2668
|
+
let validatedArgs = [];
|
|
2669
|
+
try {
|
|
2670
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_searchMenusByPage, context, next });
|
|
2671
|
+
}
|
|
2672
|
+
catch (err) {
|
|
2673
|
+
const error = err;
|
|
2674
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2675
|
+
context.status = error.status;
|
|
2676
|
+
context.throw(context.status, error.message, error);
|
|
2677
|
+
}
|
|
2678
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2679
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2680
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2681
|
+
controller.setStatus(undefined);
|
|
2682
|
+
}
|
|
2683
|
+
return templateService.apiHandler({
|
|
2684
|
+
methodName: 'searchMenusByPage',
|
|
2685
|
+
controller,
|
|
2686
|
+
context,
|
|
2687
|
+
validatedArgs,
|
|
2688
|
+
successStatus: undefined,
|
|
2689
|
+
});
|
|
2690
|
+
});
|
|
2691
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2692
|
+
const argsMenuController_createMenu = {
|
|
2693
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateMenuDto" },
|
|
2694
|
+
};
|
|
2695
|
+
router.post('/api/system/menu', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.createMenu)), async function MenuController_createMenu(context, next) {
|
|
2696
|
+
let validatedArgs = [];
|
|
2697
|
+
try {
|
|
2698
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_createMenu, context, next });
|
|
2699
|
+
}
|
|
2700
|
+
catch (err) {
|
|
2701
|
+
const error = err;
|
|
2702
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2703
|
+
context.status = error.status;
|
|
2704
|
+
context.throw(context.status, error.message, error);
|
|
2705
|
+
}
|
|
2706
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2707
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2708
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2709
|
+
controller.setStatus(undefined);
|
|
2710
|
+
}
|
|
2711
|
+
return templateService.apiHandler({
|
|
2712
|
+
methodName: 'createMenu',
|
|
2713
|
+
controller,
|
|
2714
|
+
context,
|
|
2715
|
+
validatedArgs,
|
|
2716
|
+
successStatus: 201,
|
|
2717
|
+
});
|
|
2718
|
+
});
|
|
2719
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2720
|
+
const argsMenuController_updateMenu = {
|
|
2721
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2722
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateMenuDto" },
|
|
2723
|
+
};
|
|
2724
|
+
router.put('/api/system/menu/:id', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.updateMenu)), async function MenuController_updateMenu(context, next) {
|
|
2725
|
+
let validatedArgs = [];
|
|
2726
|
+
try {
|
|
2727
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_updateMenu, context, next });
|
|
2728
|
+
}
|
|
2729
|
+
catch (err) {
|
|
2730
|
+
const error = err;
|
|
2731
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2732
|
+
context.status = error.status;
|
|
2733
|
+
context.throw(context.status, error.message, error);
|
|
2734
|
+
}
|
|
2735
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2736
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2737
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2738
|
+
controller.setStatus(undefined);
|
|
2739
|
+
}
|
|
2740
|
+
return templateService.apiHandler({
|
|
2741
|
+
methodName: 'updateMenu',
|
|
2742
|
+
controller,
|
|
2743
|
+
context,
|
|
2744
|
+
validatedArgs,
|
|
2745
|
+
successStatus: undefined,
|
|
2746
|
+
});
|
|
2747
|
+
});
|
|
2748
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2749
|
+
const argsMenuController_deleteMenu = {
|
|
2750
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2751
|
+
};
|
|
2752
|
+
router.delete('/api/system/menu/:id', ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController)), ...((0, runtime_1.fetchMiddlewares)(menu_controller_1.MenuController.prototype.deleteMenu)), async function MenuController_deleteMenu(context, next) {
|
|
2753
|
+
let validatedArgs = [];
|
|
2754
|
+
try {
|
|
2755
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsMenuController_deleteMenu, context, next });
|
|
2756
|
+
}
|
|
2757
|
+
catch (err) {
|
|
2758
|
+
const error = err;
|
|
2759
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2760
|
+
context.status = error.status;
|
|
2761
|
+
context.throw(context.status, error.message, error);
|
|
2762
|
+
}
|
|
2763
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2764
|
+
const controller = await container.get(menu_controller_1.MenuController);
|
|
2765
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2766
|
+
controller.setStatus(undefined);
|
|
2767
|
+
}
|
|
2768
|
+
return templateService.apiHandler({
|
|
2769
|
+
methodName: 'deleteMenu',
|
|
2770
|
+
controller,
|
|
2771
|
+
context,
|
|
2772
|
+
validatedArgs,
|
|
2773
|
+
successStatus: undefined,
|
|
2774
|
+
});
|
|
2775
|
+
});
|
|
2776
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2777
|
+
const argsLoginLogController_createLog = {
|
|
2778
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateLoginLogDto" },
|
|
2779
|
+
};
|
|
2780
|
+
router.post('/api/system/login-log', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.createLog)), async function LoginLogController_createLog(context, next) {
|
|
2781
|
+
let validatedArgs = [];
|
|
2782
|
+
try {
|
|
2783
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_createLog, context, next });
|
|
2784
|
+
}
|
|
2785
|
+
catch (err) {
|
|
2786
|
+
const error = err;
|
|
2787
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2788
|
+
context.status = error.status;
|
|
2789
|
+
context.throw(context.status, error.message, error);
|
|
2790
|
+
}
|
|
2791
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2792
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
2793
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2794
|
+
controller.setStatus(undefined);
|
|
2795
|
+
}
|
|
2796
|
+
return templateService.apiHandler({
|
|
2797
|
+
methodName: 'createLog',
|
|
2798
|
+
controller,
|
|
2799
|
+
context,
|
|
2800
|
+
validatedArgs,
|
|
2801
|
+
successStatus: 201,
|
|
2802
|
+
});
|
|
2803
|
+
});
|
|
2804
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2805
|
+
const argsLoginLogController_getLogById = {
|
|
2806
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2807
|
+
};
|
|
2808
|
+
router.get('/api/system/login-log/:id', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.getLogById)), async function LoginLogController_getLogById(context, next) {
|
|
2809
|
+
let validatedArgs = [];
|
|
2810
|
+
try {
|
|
2811
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_getLogById, context, next });
|
|
2812
|
+
}
|
|
2813
|
+
catch (err) {
|
|
2814
|
+
const error = err;
|
|
2815
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2816
|
+
context.status = error.status;
|
|
2817
|
+
context.throw(context.status, error.message, error);
|
|
2818
|
+
}
|
|
2819
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2820
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
2821
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2822
|
+
controller.setStatus(undefined);
|
|
2823
|
+
}
|
|
2824
|
+
return templateService.apiHandler({
|
|
2825
|
+
methodName: 'getLogById',
|
|
2826
|
+
controller,
|
|
2827
|
+
context,
|
|
2828
|
+
validatedArgs,
|
|
2829
|
+
successStatus: undefined,
|
|
2830
|
+
});
|
|
2831
|
+
});
|
|
2832
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2833
|
+
const argsLoginLogController_getLogsByPage = {
|
|
2834
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
2835
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
2836
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
2837
|
+
action: { "in": "query", "name": "action", "dataType": "string" },
|
|
2838
|
+
userId: { "in": "query", "name": "userId", "dataType": "string" },
|
|
2839
|
+
username: { "in": "query", "name": "username", "dataType": "string" },
|
|
2840
|
+
status: { "in": "query", "name": "status", "dataType": "string" },
|
|
2841
|
+
startDate: { "in": "query", "name": "startDate", "dataType": "string" },
|
|
2842
|
+
endDate: { "in": "query", "name": "endDate", "dataType": "string" },
|
|
2843
|
+
};
|
|
2844
|
+
router.get('/api/system/login-log/search/page', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.getLogsByPage)), async function LoginLogController_getLogsByPage(context, next) {
|
|
2845
|
+
let validatedArgs = [];
|
|
2846
|
+
try {
|
|
2847
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_getLogsByPage, context, next });
|
|
2848
|
+
}
|
|
2849
|
+
catch (err) {
|
|
2850
|
+
const error = err;
|
|
2851
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2852
|
+
context.status = error.status;
|
|
2853
|
+
context.throw(context.status, error.message, error);
|
|
2854
|
+
}
|
|
2855
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2856
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
2857
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2858
|
+
controller.setStatus(undefined);
|
|
2859
|
+
}
|
|
2860
|
+
return templateService.apiHandler({
|
|
2861
|
+
methodName: 'getLogsByPage',
|
|
2862
|
+
controller,
|
|
2863
|
+
context,
|
|
2864
|
+
validatedArgs,
|
|
2865
|
+
successStatus: undefined,
|
|
2866
|
+
});
|
|
2867
|
+
});
|
|
2868
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2869
|
+
const argsLoginLogController_getLogsByUserId = {
|
|
2870
|
+
userId: { "in": "path", "name": "userId", "required": true, "dataType": "string" },
|
|
2871
|
+
};
|
|
2872
|
+
router.get('/api/system/login-log/user/:userId', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.getLogsByUserId)), async function LoginLogController_getLogsByUserId(context, next) {
|
|
2873
|
+
let validatedArgs = [];
|
|
2874
|
+
try {
|
|
2875
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_getLogsByUserId, context, next });
|
|
2876
|
+
}
|
|
2877
|
+
catch (err) {
|
|
2878
|
+
const error = err;
|
|
2879
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2880
|
+
context.status = error.status;
|
|
2881
|
+
context.throw(context.status, error.message, error);
|
|
2882
|
+
}
|
|
2883
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2884
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
2885
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2886
|
+
controller.setStatus(undefined);
|
|
2887
|
+
}
|
|
2888
|
+
return templateService.apiHandler({
|
|
2889
|
+
methodName: 'getLogsByUserId',
|
|
2890
|
+
controller,
|
|
2891
|
+
context,
|
|
2892
|
+
validatedArgs,
|
|
2893
|
+
successStatus: undefined,
|
|
2894
|
+
});
|
|
2895
|
+
});
|
|
2896
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2897
|
+
const argsLoginLogController_getLogsByUsername = {
|
|
2898
|
+
username: { "in": "path", "name": "username", "required": true, "dataType": "string" },
|
|
2899
|
+
};
|
|
2900
|
+
router.get('/api/system/login-log/username/:username', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.getLogsByUsername)), async function LoginLogController_getLogsByUsername(context, next) {
|
|
2901
|
+
let validatedArgs = [];
|
|
2902
|
+
try {
|
|
2903
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_getLogsByUsername, context, next });
|
|
2904
|
+
}
|
|
2905
|
+
catch (err) {
|
|
2906
|
+
const error = err;
|
|
2907
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2908
|
+
context.status = error.status;
|
|
2909
|
+
context.throw(context.status, error.message, error);
|
|
2910
|
+
}
|
|
2911
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2912
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
2913
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2914
|
+
controller.setStatus(undefined);
|
|
2915
|
+
}
|
|
2916
|
+
return templateService.apiHandler({
|
|
2917
|
+
methodName: 'getLogsByUsername',
|
|
2918
|
+
controller,
|
|
2919
|
+
context,
|
|
2920
|
+
validatedArgs,
|
|
2921
|
+
successStatus: undefined,
|
|
2922
|
+
});
|
|
2923
|
+
});
|
|
2924
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2925
|
+
const argsLoginLogController_getDistinctActions = {};
|
|
2926
|
+
router.get('/api/system/login-log/actions', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.getDistinctActions)), async function LoginLogController_getDistinctActions(context, next) {
|
|
2927
|
+
let validatedArgs = [];
|
|
2928
|
+
try {
|
|
2929
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_getDistinctActions, context, next });
|
|
2930
|
+
}
|
|
2931
|
+
catch (err) {
|
|
2932
|
+
const error = err;
|
|
2933
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2934
|
+
context.status = error.status;
|
|
2935
|
+
context.throw(context.status, error.message, error);
|
|
2936
|
+
}
|
|
2937
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2938
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
2939
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2940
|
+
controller.setStatus(undefined);
|
|
2941
|
+
}
|
|
2942
|
+
return templateService.apiHandler({
|
|
2943
|
+
methodName: 'getDistinctActions',
|
|
2944
|
+
controller,
|
|
2945
|
+
context,
|
|
2946
|
+
validatedArgs,
|
|
2947
|
+
successStatus: undefined,
|
|
2948
|
+
});
|
|
2949
|
+
});
|
|
2950
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2951
|
+
const argsLoginLogController_deleteLog = {
|
|
2952
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
2953
|
+
};
|
|
2954
|
+
router.delete('/api/system/login-log/:id', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.deleteLog)), async function LoginLogController_deleteLog(context, next) {
|
|
2955
|
+
let validatedArgs = [];
|
|
2956
|
+
try {
|
|
2957
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_deleteLog, context, next });
|
|
2958
|
+
}
|
|
2959
|
+
catch (err) {
|
|
2960
|
+
const error = err;
|
|
2961
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2962
|
+
context.status = error.status;
|
|
2963
|
+
context.throw(context.status, error.message, error);
|
|
2964
|
+
}
|
|
2965
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2966
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
2967
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2968
|
+
controller.setStatus(undefined);
|
|
2969
|
+
}
|
|
2970
|
+
return templateService.apiHandler({
|
|
2971
|
+
methodName: 'deleteLog',
|
|
2972
|
+
controller,
|
|
2973
|
+
context,
|
|
2974
|
+
validatedArgs,
|
|
2975
|
+
successStatus: undefined,
|
|
2976
|
+
});
|
|
2977
|
+
});
|
|
2978
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
2979
|
+
const argsLoginLogController_deleteLogs = {
|
|
2980
|
+
body: { "in": "body", "name": "body", "required": true, "dataType": "nestedObjectLiteral", "nestedProperties": { "ids": { "dataType": "array", "array": { "dataType": "string" }, "required": true } } },
|
|
2981
|
+
};
|
|
2982
|
+
router.delete('/api/system/login-log/batch', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.deleteLogs)), async function LoginLogController_deleteLogs(context, next) {
|
|
2983
|
+
let validatedArgs = [];
|
|
2984
|
+
try {
|
|
2985
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_deleteLogs, context, next });
|
|
2986
|
+
}
|
|
2987
|
+
catch (err) {
|
|
2988
|
+
const error = err;
|
|
2989
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
2990
|
+
context.status = error.status;
|
|
2991
|
+
context.throw(context.status, error.message, error);
|
|
2992
|
+
}
|
|
2993
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
2994
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
2995
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
2996
|
+
controller.setStatus(undefined);
|
|
2997
|
+
}
|
|
2998
|
+
return templateService.apiHandler({
|
|
2999
|
+
methodName: 'deleteLogs',
|
|
3000
|
+
controller,
|
|
3001
|
+
context,
|
|
3002
|
+
validatedArgs,
|
|
3003
|
+
successStatus: undefined,
|
|
3004
|
+
});
|
|
3005
|
+
});
|
|
3006
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3007
|
+
const argsLoginLogController_cleanLogs = {
|
|
3008
|
+
days: { "in": "path", "name": "days", "required": true, "dataType": "double" },
|
|
3009
|
+
};
|
|
3010
|
+
router.delete('/api/system/login-log/clean/:days', ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController)), ...((0, runtime_1.fetchMiddlewares)(loginLog_controller_1.LoginLogController.prototype.cleanLogs)), async function LoginLogController_cleanLogs(context, next) {
|
|
3011
|
+
let validatedArgs = [];
|
|
3012
|
+
try {
|
|
3013
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsLoginLogController_cleanLogs, context, next });
|
|
3014
|
+
}
|
|
3015
|
+
catch (err) {
|
|
3016
|
+
const error = err;
|
|
3017
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3018
|
+
context.status = error.status;
|
|
3019
|
+
context.throw(context.status, error.message, error);
|
|
3020
|
+
}
|
|
3021
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3022
|
+
const controller = await container.get(loginLog_controller_1.LoginLogController);
|
|
3023
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3024
|
+
controller.setStatus(undefined);
|
|
3025
|
+
}
|
|
3026
|
+
return templateService.apiHandler({
|
|
3027
|
+
methodName: 'cleanLogs',
|
|
3028
|
+
controller,
|
|
3029
|
+
context,
|
|
3030
|
+
validatedArgs,
|
|
3031
|
+
successStatus: undefined,
|
|
3032
|
+
});
|
|
3033
|
+
});
|
|
3034
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3035
|
+
const argsFileUploadController_uploadFile = {
|
|
3036
|
+
req: { "in": "request", "name": "req", "required": true, "dataType": "object" },
|
|
3037
|
+
};
|
|
3038
|
+
router.post('/api/system/file-upload', ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController)), ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController.prototype.uploadFile)), async function FileUploadController_uploadFile(context, next) {
|
|
3039
|
+
let validatedArgs = [];
|
|
3040
|
+
try {
|
|
3041
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsFileUploadController_uploadFile, context, next });
|
|
3042
|
+
}
|
|
3043
|
+
catch (err) {
|
|
3044
|
+
const error = err;
|
|
3045
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3046
|
+
context.status = error.status;
|
|
3047
|
+
context.throw(context.status, error.message, error);
|
|
3048
|
+
}
|
|
3049
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3050
|
+
const controller = await container.get(fileUpload_controller_1.FileUploadController);
|
|
3051
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3052
|
+
controller.setStatus(undefined);
|
|
3053
|
+
}
|
|
3054
|
+
return templateService.apiHandler({
|
|
3055
|
+
methodName: 'uploadFile',
|
|
3056
|
+
controller,
|
|
3057
|
+
context,
|
|
3058
|
+
validatedArgs,
|
|
3059
|
+
successStatus: 201,
|
|
3060
|
+
});
|
|
3061
|
+
});
|
|
3062
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3063
|
+
const argsFileUploadController_getFilesByFileNos = {
|
|
3064
|
+
fileNos: { "in": "query", "name": "fileNos", "dataType": "string" },
|
|
3065
|
+
};
|
|
3066
|
+
router.get('/api/system/file-upload/batch', ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController)), ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController.prototype.getFilesByFileNos)), async function FileUploadController_getFilesByFileNos(context, next) {
|
|
3067
|
+
let validatedArgs = [];
|
|
3068
|
+
try {
|
|
3069
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsFileUploadController_getFilesByFileNos, context, next });
|
|
3070
|
+
}
|
|
3071
|
+
catch (err) {
|
|
3072
|
+
const error = err;
|
|
3073
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3074
|
+
context.status = error.status;
|
|
3075
|
+
context.throw(context.status, error.message, error);
|
|
3076
|
+
}
|
|
3077
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3078
|
+
const controller = await container.get(fileUpload_controller_1.FileUploadController);
|
|
3079
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3080
|
+
controller.setStatus(undefined);
|
|
3081
|
+
}
|
|
3082
|
+
return templateService.apiHandler({
|
|
3083
|
+
methodName: 'getFilesByFileNos',
|
|
3084
|
+
controller,
|
|
3085
|
+
context,
|
|
3086
|
+
validatedArgs,
|
|
3087
|
+
successStatus: undefined,
|
|
3088
|
+
});
|
|
3089
|
+
});
|
|
3090
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3091
|
+
const argsFileUploadController_getFileUploadsByPage = {
|
|
3092
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
3093
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
3094
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
3095
|
+
type: { "in": "query", "name": "type", "dataType": "string" },
|
|
3096
|
+
};
|
|
3097
|
+
router.get('/api/system/file-upload/search/page', ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController)), ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController.prototype.getFileUploadsByPage)), async function FileUploadController_getFileUploadsByPage(context, next) {
|
|
3098
|
+
let validatedArgs = [];
|
|
3099
|
+
try {
|
|
3100
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsFileUploadController_getFileUploadsByPage, context, next });
|
|
3101
|
+
}
|
|
3102
|
+
catch (err) {
|
|
3103
|
+
const error = err;
|
|
3104
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3105
|
+
context.status = error.status;
|
|
3106
|
+
context.throw(context.status, error.message, error);
|
|
3107
|
+
}
|
|
3108
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3109
|
+
const controller = await container.get(fileUpload_controller_1.FileUploadController);
|
|
3110
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3111
|
+
controller.setStatus(undefined);
|
|
3112
|
+
}
|
|
3113
|
+
return templateService.apiHandler({
|
|
3114
|
+
methodName: 'getFileUploadsByPage',
|
|
3115
|
+
controller,
|
|
3116
|
+
context,
|
|
3117
|
+
validatedArgs,
|
|
3118
|
+
successStatus: undefined,
|
|
3119
|
+
});
|
|
3120
|
+
});
|
|
3121
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3122
|
+
const argsFileUploadController_getFileById = {
|
|
3123
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3124
|
+
};
|
|
3125
|
+
router.get('/api/system/file-upload/:id', ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController)), ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController.prototype.getFileById)), async function FileUploadController_getFileById(context, next) {
|
|
3126
|
+
let validatedArgs = [];
|
|
3127
|
+
try {
|
|
3128
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsFileUploadController_getFileById, context, next });
|
|
3129
|
+
}
|
|
3130
|
+
catch (err) {
|
|
3131
|
+
const error = err;
|
|
3132
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3133
|
+
context.status = error.status;
|
|
3134
|
+
context.throw(context.status, error.message, error);
|
|
3135
|
+
}
|
|
3136
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3137
|
+
const controller = await container.get(fileUpload_controller_1.FileUploadController);
|
|
3138
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3139
|
+
controller.setStatus(undefined);
|
|
3140
|
+
}
|
|
3141
|
+
return templateService.apiHandler({
|
|
3142
|
+
methodName: 'getFileById',
|
|
3143
|
+
controller,
|
|
3144
|
+
context,
|
|
3145
|
+
validatedArgs,
|
|
3146
|
+
successStatus: undefined,
|
|
3147
|
+
});
|
|
3148
|
+
});
|
|
3149
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3150
|
+
const argsFileUploadController_deleteFile = {
|
|
3151
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3152
|
+
};
|
|
3153
|
+
router.delete('/api/system/file-upload/:id', ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController)), ...((0, runtime_1.fetchMiddlewares)(fileUpload_controller_1.FileUploadController.prototype.deleteFile)), async function FileUploadController_deleteFile(context, next) {
|
|
3154
|
+
let validatedArgs = [];
|
|
3155
|
+
try {
|
|
3156
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsFileUploadController_deleteFile, context, next });
|
|
3157
|
+
}
|
|
3158
|
+
catch (err) {
|
|
3159
|
+
const error = err;
|
|
3160
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3161
|
+
context.status = error.status;
|
|
3162
|
+
context.throw(context.status, error.message, error);
|
|
3163
|
+
}
|
|
3164
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3165
|
+
const controller = await container.get(fileUpload_controller_1.FileUploadController);
|
|
3166
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3167
|
+
controller.setStatus(undefined);
|
|
3168
|
+
}
|
|
3169
|
+
return templateService.apiHandler({
|
|
3170
|
+
methodName: 'deleteFile',
|
|
3171
|
+
controller,
|
|
3172
|
+
context,
|
|
3173
|
+
validatedArgs,
|
|
3174
|
+
successStatus: undefined,
|
|
3175
|
+
});
|
|
3176
|
+
});
|
|
3177
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3178
|
+
const argsEmployeeController_getAllEmployees = {
|
|
3179
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
3180
|
+
};
|
|
3181
|
+
router.get('/api/system/employee', ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController)), ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController.prototype.getAllEmployees)), async function EmployeeController_getAllEmployees(context, next) {
|
|
3182
|
+
let validatedArgs = [];
|
|
3183
|
+
try {
|
|
3184
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsEmployeeController_getAllEmployees, context, next });
|
|
3185
|
+
}
|
|
3186
|
+
catch (err) {
|
|
3187
|
+
const error = err;
|
|
3188
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3189
|
+
context.status = error.status;
|
|
3190
|
+
context.throw(context.status, error.message, error);
|
|
3191
|
+
}
|
|
3192
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3193
|
+
const controller = await container.get(employee_controller_1.EmployeeController);
|
|
3194
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3195
|
+
controller.setStatus(undefined);
|
|
3196
|
+
}
|
|
3197
|
+
return templateService.apiHandler({
|
|
3198
|
+
methodName: 'getAllEmployees',
|
|
3199
|
+
controller,
|
|
3200
|
+
context,
|
|
3201
|
+
validatedArgs,
|
|
3202
|
+
successStatus: undefined,
|
|
3203
|
+
});
|
|
3204
|
+
});
|
|
3205
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3206
|
+
const argsEmployeeController_getAllEmployeesByPage = {
|
|
3207
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
3208
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
3209
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
3210
|
+
};
|
|
3211
|
+
router.get('/api/system/employee/page', ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController)), ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController.prototype.getAllEmployeesByPage)), async function EmployeeController_getAllEmployeesByPage(context, next) {
|
|
3212
|
+
let validatedArgs = [];
|
|
3213
|
+
try {
|
|
3214
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsEmployeeController_getAllEmployeesByPage, context, next });
|
|
3215
|
+
}
|
|
3216
|
+
catch (err) {
|
|
3217
|
+
const error = err;
|
|
3218
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3219
|
+
context.status = error.status;
|
|
3220
|
+
context.throw(context.status, error.message, error);
|
|
3221
|
+
}
|
|
3222
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3223
|
+
const controller = await container.get(employee_controller_1.EmployeeController);
|
|
3224
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3225
|
+
controller.setStatus(undefined);
|
|
3226
|
+
}
|
|
3227
|
+
return templateService.apiHandler({
|
|
3228
|
+
methodName: 'getAllEmployeesByPage',
|
|
3229
|
+
controller,
|
|
3230
|
+
context,
|
|
3231
|
+
validatedArgs,
|
|
3232
|
+
successStatus: undefined,
|
|
3233
|
+
});
|
|
3234
|
+
});
|
|
3235
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3236
|
+
const argsEmployeeController_getEmployeeById = {
|
|
3237
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3238
|
+
};
|
|
3239
|
+
router.get('/api/system/employee/:id', ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController)), ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController.prototype.getEmployeeById)), async function EmployeeController_getEmployeeById(context, next) {
|
|
3240
|
+
let validatedArgs = [];
|
|
3241
|
+
try {
|
|
3242
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsEmployeeController_getEmployeeById, context, next });
|
|
3243
|
+
}
|
|
3244
|
+
catch (err) {
|
|
3245
|
+
const error = err;
|
|
3246
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3247
|
+
context.status = error.status;
|
|
3248
|
+
context.throw(context.status, error.message, error);
|
|
3249
|
+
}
|
|
3250
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3251
|
+
const controller = await container.get(employee_controller_1.EmployeeController);
|
|
3252
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3253
|
+
controller.setStatus(undefined);
|
|
3254
|
+
}
|
|
3255
|
+
return templateService.apiHandler({
|
|
3256
|
+
methodName: 'getEmployeeById',
|
|
3257
|
+
controller,
|
|
3258
|
+
context,
|
|
3259
|
+
validatedArgs,
|
|
3260
|
+
successStatus: undefined,
|
|
3261
|
+
});
|
|
3262
|
+
});
|
|
3263
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3264
|
+
const argsEmployeeController_createEmployee = {
|
|
3265
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateEmployeeDto" },
|
|
3266
|
+
};
|
|
3267
|
+
router.post('/api/system/employee', ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController)), ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController.prototype.createEmployee)), async function EmployeeController_createEmployee(context, next) {
|
|
3268
|
+
let validatedArgs = [];
|
|
3269
|
+
try {
|
|
3270
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsEmployeeController_createEmployee, context, next });
|
|
3271
|
+
}
|
|
3272
|
+
catch (err) {
|
|
3273
|
+
const error = err;
|
|
3274
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3275
|
+
context.status = error.status;
|
|
3276
|
+
context.throw(context.status, error.message, error);
|
|
3277
|
+
}
|
|
3278
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3279
|
+
const controller = await container.get(employee_controller_1.EmployeeController);
|
|
3280
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3281
|
+
controller.setStatus(undefined);
|
|
3282
|
+
}
|
|
3283
|
+
return templateService.apiHandler({
|
|
3284
|
+
methodName: 'createEmployee',
|
|
3285
|
+
controller,
|
|
3286
|
+
context,
|
|
3287
|
+
validatedArgs,
|
|
3288
|
+
successStatus: undefined,
|
|
3289
|
+
});
|
|
3290
|
+
});
|
|
3291
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3292
|
+
const argsEmployeeController_updateEmployee = {
|
|
3293
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3294
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateEmployeeDto" },
|
|
3295
|
+
};
|
|
3296
|
+
router.put('/api/system/employee/:id', ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController)), ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController.prototype.updateEmployee)), async function EmployeeController_updateEmployee(context, next) {
|
|
3297
|
+
let validatedArgs = [];
|
|
3298
|
+
try {
|
|
3299
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsEmployeeController_updateEmployee, context, next });
|
|
3300
|
+
}
|
|
3301
|
+
catch (err) {
|
|
3302
|
+
const error = err;
|
|
3303
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3304
|
+
context.status = error.status;
|
|
3305
|
+
context.throw(context.status, error.message, error);
|
|
3306
|
+
}
|
|
3307
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3308
|
+
const controller = await container.get(employee_controller_1.EmployeeController);
|
|
3309
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3310
|
+
controller.setStatus(undefined);
|
|
3311
|
+
}
|
|
3312
|
+
return templateService.apiHandler({
|
|
3313
|
+
methodName: 'updateEmployee',
|
|
3314
|
+
controller,
|
|
3315
|
+
context,
|
|
3316
|
+
validatedArgs,
|
|
3317
|
+
successStatus: undefined,
|
|
3318
|
+
});
|
|
3319
|
+
});
|
|
3320
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3321
|
+
const argsEmployeeController_deleteEmployee = {
|
|
3322
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3323
|
+
};
|
|
3324
|
+
router.delete('/api/system/employee/:id', ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController)), ...((0, runtime_1.fetchMiddlewares)(employee_controller_1.EmployeeController.prototype.deleteEmployee)), async function EmployeeController_deleteEmployee(context, next) {
|
|
3325
|
+
let validatedArgs = [];
|
|
3326
|
+
try {
|
|
3327
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsEmployeeController_deleteEmployee, context, next });
|
|
3328
|
+
}
|
|
3329
|
+
catch (err) {
|
|
3330
|
+
const error = err;
|
|
3331
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3332
|
+
context.status = error.status;
|
|
3333
|
+
context.throw(context.status, error.message, error);
|
|
3334
|
+
}
|
|
3335
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3336
|
+
const controller = await container.get(employee_controller_1.EmployeeController);
|
|
3337
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3338
|
+
controller.setStatus(undefined);
|
|
3339
|
+
}
|
|
3340
|
+
return templateService.apiHandler({
|
|
3341
|
+
methodName: 'deleteEmployee',
|
|
3342
|
+
controller,
|
|
3343
|
+
context,
|
|
3344
|
+
validatedArgs,
|
|
3345
|
+
successStatus: undefined,
|
|
3346
|
+
});
|
|
3347
|
+
});
|
|
3348
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3349
|
+
const argsDictTypeController_getAllDictTypes = {};
|
|
3350
|
+
router.get('/api/system/dict-type', ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController)), ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController.prototype.getAllDictTypes)), async function DictTypeController_getAllDictTypes(context, next) {
|
|
3351
|
+
let validatedArgs = [];
|
|
3352
|
+
try {
|
|
3353
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictTypeController_getAllDictTypes, context, next });
|
|
3354
|
+
}
|
|
3355
|
+
catch (err) {
|
|
3356
|
+
const error = err;
|
|
3357
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3358
|
+
context.status = error.status;
|
|
3359
|
+
context.throw(context.status, error.message, error);
|
|
3360
|
+
}
|
|
3361
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3362
|
+
const controller = await container.get(dictType_controller_1.DictTypeController);
|
|
3363
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3364
|
+
controller.setStatus(undefined);
|
|
3365
|
+
}
|
|
3366
|
+
return templateService.apiHandler({
|
|
3367
|
+
methodName: 'getAllDictTypes',
|
|
3368
|
+
controller,
|
|
3369
|
+
context,
|
|
3370
|
+
validatedArgs,
|
|
3371
|
+
successStatus: undefined,
|
|
3372
|
+
});
|
|
3373
|
+
});
|
|
3374
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3375
|
+
const argsDictTypeController_getDictTypeByCode = {
|
|
3376
|
+
code: { "in": "path", "name": "code", "required": true, "dataType": "string" },
|
|
3377
|
+
};
|
|
3378
|
+
router.get('/api/system/dict-type/code/:code', ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController)), ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController.prototype.getDictTypeByCode)), async function DictTypeController_getDictTypeByCode(context, next) {
|
|
3379
|
+
let validatedArgs = [];
|
|
3380
|
+
try {
|
|
3381
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictTypeController_getDictTypeByCode, context, next });
|
|
3382
|
+
}
|
|
3383
|
+
catch (err) {
|
|
3384
|
+
const error = err;
|
|
3385
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3386
|
+
context.status = error.status;
|
|
3387
|
+
context.throw(context.status, error.message, error);
|
|
3388
|
+
}
|
|
3389
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3390
|
+
const controller = await container.get(dictType_controller_1.DictTypeController);
|
|
3391
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3392
|
+
controller.setStatus(undefined);
|
|
3393
|
+
}
|
|
3394
|
+
return templateService.apiHandler({
|
|
3395
|
+
methodName: 'getDictTypeByCode',
|
|
3396
|
+
controller,
|
|
3397
|
+
context,
|
|
3398
|
+
validatedArgs,
|
|
3399
|
+
successStatus: undefined,
|
|
3400
|
+
});
|
|
3401
|
+
});
|
|
3402
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3403
|
+
const argsDictTypeController_getDictTypeById = {
|
|
3404
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3405
|
+
};
|
|
3406
|
+
router.get('/api/system/dict-type/:id', ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController)), ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController.prototype.getDictTypeById)), async function DictTypeController_getDictTypeById(context, next) {
|
|
3407
|
+
let validatedArgs = [];
|
|
3408
|
+
try {
|
|
3409
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictTypeController_getDictTypeById, context, next });
|
|
3410
|
+
}
|
|
3411
|
+
catch (err) {
|
|
3412
|
+
const error = err;
|
|
3413
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3414
|
+
context.status = error.status;
|
|
3415
|
+
context.throw(context.status, error.message, error);
|
|
3416
|
+
}
|
|
3417
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3418
|
+
const controller = await container.get(dictType_controller_1.DictTypeController);
|
|
3419
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3420
|
+
controller.setStatus(undefined);
|
|
3421
|
+
}
|
|
3422
|
+
return templateService.apiHandler({
|
|
3423
|
+
methodName: 'getDictTypeById',
|
|
3424
|
+
controller,
|
|
3425
|
+
context,
|
|
3426
|
+
validatedArgs,
|
|
3427
|
+
successStatus: undefined,
|
|
3428
|
+
});
|
|
3429
|
+
});
|
|
3430
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3431
|
+
const argsDictTypeController_searchDictTypesByPage = {
|
|
3432
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
3433
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
3434
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
3435
|
+
};
|
|
3436
|
+
router.get('/api/system/dict-type/search/page', ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController)), ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController.prototype.searchDictTypesByPage)), async function DictTypeController_searchDictTypesByPage(context, next) {
|
|
3437
|
+
let validatedArgs = [];
|
|
3438
|
+
try {
|
|
3439
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictTypeController_searchDictTypesByPage, context, next });
|
|
3440
|
+
}
|
|
3441
|
+
catch (err) {
|
|
3442
|
+
const error = err;
|
|
3443
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3444
|
+
context.status = error.status;
|
|
3445
|
+
context.throw(context.status, error.message, error);
|
|
3446
|
+
}
|
|
3447
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3448
|
+
const controller = await container.get(dictType_controller_1.DictTypeController);
|
|
3449
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3450
|
+
controller.setStatus(undefined);
|
|
3451
|
+
}
|
|
3452
|
+
return templateService.apiHandler({
|
|
3453
|
+
methodName: 'searchDictTypesByPage',
|
|
3454
|
+
controller,
|
|
3455
|
+
context,
|
|
3456
|
+
validatedArgs,
|
|
3457
|
+
successStatus: undefined,
|
|
3458
|
+
});
|
|
3459
|
+
});
|
|
3460
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3461
|
+
const argsDictTypeController_getDictTypeTreeByPage = {
|
|
3462
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
3463
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
3464
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
3465
|
+
};
|
|
3466
|
+
router.get('/api/system/dict-type/tree/page', ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController)), ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController.prototype.getDictTypeTreeByPage)), async function DictTypeController_getDictTypeTreeByPage(context, next) {
|
|
3467
|
+
let validatedArgs = [];
|
|
3468
|
+
try {
|
|
3469
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictTypeController_getDictTypeTreeByPage, context, next });
|
|
3470
|
+
}
|
|
3471
|
+
catch (err) {
|
|
3472
|
+
const error = err;
|
|
3473
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3474
|
+
context.status = error.status;
|
|
3475
|
+
context.throw(context.status, error.message, error);
|
|
3476
|
+
}
|
|
3477
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3478
|
+
const controller = await container.get(dictType_controller_1.DictTypeController);
|
|
3479
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3480
|
+
controller.setStatus(undefined);
|
|
3481
|
+
}
|
|
3482
|
+
return templateService.apiHandler({
|
|
3483
|
+
methodName: 'getDictTypeTreeByPage',
|
|
3484
|
+
controller,
|
|
3485
|
+
context,
|
|
3486
|
+
validatedArgs,
|
|
3487
|
+
successStatus: undefined,
|
|
3488
|
+
});
|
|
3489
|
+
});
|
|
3490
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3491
|
+
const argsDictTypeController_createDictType = {
|
|
3492
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateDictTypeDto" },
|
|
3493
|
+
};
|
|
3494
|
+
router.post('/api/system/dict-type', ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController)), ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController.prototype.createDictType)), async function DictTypeController_createDictType(context, next) {
|
|
3495
|
+
let validatedArgs = [];
|
|
3496
|
+
try {
|
|
3497
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictTypeController_createDictType, context, next });
|
|
3498
|
+
}
|
|
3499
|
+
catch (err) {
|
|
3500
|
+
const error = err;
|
|
3501
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3502
|
+
context.status = error.status;
|
|
3503
|
+
context.throw(context.status, error.message, error);
|
|
3504
|
+
}
|
|
3505
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3506
|
+
const controller = await container.get(dictType_controller_1.DictTypeController);
|
|
3507
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3508
|
+
controller.setStatus(undefined);
|
|
3509
|
+
}
|
|
3510
|
+
return templateService.apiHandler({
|
|
3511
|
+
methodName: 'createDictType',
|
|
3512
|
+
controller,
|
|
3513
|
+
context,
|
|
3514
|
+
validatedArgs,
|
|
3515
|
+
successStatus: 201,
|
|
3516
|
+
});
|
|
3517
|
+
});
|
|
3518
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3519
|
+
const argsDictTypeController_updateDictType = {
|
|
3520
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3521
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateDictTypeDto" },
|
|
3522
|
+
};
|
|
3523
|
+
router.put('/api/system/dict-type/:id', ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController)), ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController.prototype.updateDictType)), async function DictTypeController_updateDictType(context, next) {
|
|
3524
|
+
let validatedArgs = [];
|
|
3525
|
+
try {
|
|
3526
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictTypeController_updateDictType, context, next });
|
|
3527
|
+
}
|
|
3528
|
+
catch (err) {
|
|
3529
|
+
const error = err;
|
|
3530
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3531
|
+
context.status = error.status;
|
|
3532
|
+
context.throw(context.status, error.message, error);
|
|
3533
|
+
}
|
|
3534
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3535
|
+
const controller = await container.get(dictType_controller_1.DictTypeController);
|
|
3536
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3537
|
+
controller.setStatus(undefined);
|
|
3538
|
+
}
|
|
3539
|
+
return templateService.apiHandler({
|
|
3540
|
+
methodName: 'updateDictType',
|
|
3541
|
+
controller,
|
|
3542
|
+
context,
|
|
3543
|
+
validatedArgs,
|
|
3544
|
+
successStatus: undefined,
|
|
3545
|
+
});
|
|
3546
|
+
});
|
|
3547
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3548
|
+
const argsDictTypeController_deleteDictType = {
|
|
3549
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3550
|
+
};
|
|
3551
|
+
router.delete('/api/system/dict-type/:id', ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController)), ...((0, runtime_1.fetchMiddlewares)(dictType_controller_1.DictTypeController.prototype.deleteDictType)), async function DictTypeController_deleteDictType(context, next) {
|
|
3552
|
+
let validatedArgs = [];
|
|
3553
|
+
try {
|
|
3554
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictTypeController_deleteDictType, context, next });
|
|
3555
|
+
}
|
|
3556
|
+
catch (err) {
|
|
3557
|
+
const error = err;
|
|
3558
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3559
|
+
context.status = error.status;
|
|
3560
|
+
context.throw(context.status, error.message, error);
|
|
3561
|
+
}
|
|
3562
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3563
|
+
const controller = await container.get(dictType_controller_1.DictTypeController);
|
|
3564
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3565
|
+
controller.setStatus(undefined);
|
|
3566
|
+
}
|
|
3567
|
+
return templateService.apiHandler({
|
|
3568
|
+
methodName: 'deleteDictType',
|
|
3569
|
+
controller,
|
|
3570
|
+
context,
|
|
3571
|
+
validatedArgs,
|
|
3572
|
+
successStatus: undefined,
|
|
3573
|
+
});
|
|
3574
|
+
});
|
|
3575
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3576
|
+
const argsDictItemController_getAllDictItems = {};
|
|
3577
|
+
router.get('/api/system/dict-item', ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController)), ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController.prototype.getAllDictItems)), async function DictItemController_getAllDictItems(context, next) {
|
|
3578
|
+
let validatedArgs = [];
|
|
3579
|
+
try {
|
|
3580
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictItemController_getAllDictItems, context, next });
|
|
3581
|
+
}
|
|
3582
|
+
catch (err) {
|
|
3583
|
+
const error = err;
|
|
3584
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3585
|
+
context.status = error.status;
|
|
3586
|
+
context.throw(context.status, error.message, error);
|
|
3587
|
+
}
|
|
3588
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3589
|
+
const controller = await container.get(dictItem_controller_1.DictItemController);
|
|
3590
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3591
|
+
controller.setStatus(undefined);
|
|
3592
|
+
}
|
|
3593
|
+
return templateService.apiHandler({
|
|
3594
|
+
methodName: 'getAllDictItems',
|
|
3595
|
+
controller,
|
|
3596
|
+
context,
|
|
3597
|
+
validatedArgs,
|
|
3598
|
+
successStatus: undefined,
|
|
3599
|
+
});
|
|
3600
|
+
});
|
|
3601
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3602
|
+
const argsDictItemController_getDictItemsByTypeId = {
|
|
3603
|
+
typeId: { "in": "path", "name": "typeId", "required": true, "dataType": "string" },
|
|
3604
|
+
};
|
|
3605
|
+
router.get('/api/system/dict-item/type/:typeId', ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController)), ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController.prototype.getDictItemsByTypeId)), async function DictItemController_getDictItemsByTypeId(context, next) {
|
|
3606
|
+
let validatedArgs = [];
|
|
3607
|
+
try {
|
|
3608
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictItemController_getDictItemsByTypeId, context, next });
|
|
3609
|
+
}
|
|
3610
|
+
catch (err) {
|
|
3611
|
+
const error = err;
|
|
3612
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3613
|
+
context.status = error.status;
|
|
3614
|
+
context.throw(context.status, error.message, error);
|
|
3615
|
+
}
|
|
3616
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3617
|
+
const controller = await container.get(dictItem_controller_1.DictItemController);
|
|
3618
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3619
|
+
controller.setStatus(undefined);
|
|
3620
|
+
}
|
|
3621
|
+
return templateService.apiHandler({
|
|
3622
|
+
methodName: 'getDictItemsByTypeId',
|
|
3623
|
+
controller,
|
|
3624
|
+
context,
|
|
3625
|
+
validatedArgs,
|
|
3626
|
+
successStatus: undefined,
|
|
3627
|
+
});
|
|
3628
|
+
});
|
|
3629
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3630
|
+
const argsDictItemController_getDictItemsByTypeCode = {
|
|
3631
|
+
typeCode: { "in": "path", "name": "typeCode", "required": true, "dataType": "string" },
|
|
3632
|
+
};
|
|
3633
|
+
router.get('/api/system/dict-item/type-code/:typeCode', ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController)), ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController.prototype.getDictItemsByTypeCode)), async function DictItemController_getDictItemsByTypeCode(context, next) {
|
|
3634
|
+
let validatedArgs = [];
|
|
3635
|
+
try {
|
|
3636
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictItemController_getDictItemsByTypeCode, context, next });
|
|
3637
|
+
}
|
|
3638
|
+
catch (err) {
|
|
3639
|
+
const error = err;
|
|
3640
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3641
|
+
context.status = error.status;
|
|
3642
|
+
context.throw(context.status, error.message, error);
|
|
3643
|
+
}
|
|
3644
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3645
|
+
const controller = await container.get(dictItem_controller_1.DictItemController);
|
|
3646
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3647
|
+
controller.setStatus(undefined);
|
|
3648
|
+
}
|
|
3649
|
+
return templateService.apiHandler({
|
|
3650
|
+
methodName: 'getDictItemsByTypeCode',
|
|
3651
|
+
controller,
|
|
3652
|
+
context,
|
|
3653
|
+
validatedArgs,
|
|
3654
|
+
successStatus: undefined,
|
|
3655
|
+
});
|
|
3656
|
+
});
|
|
3657
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3658
|
+
const argsDictItemController_getDictItemById = {
|
|
3659
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3660
|
+
};
|
|
3661
|
+
router.get('/api/system/dict-item/:id', ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController)), ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController.prototype.getDictItemById)), async function DictItemController_getDictItemById(context, next) {
|
|
3662
|
+
let validatedArgs = [];
|
|
3663
|
+
try {
|
|
3664
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictItemController_getDictItemById, context, next });
|
|
3665
|
+
}
|
|
3666
|
+
catch (err) {
|
|
3667
|
+
const error = err;
|
|
3668
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3669
|
+
context.status = error.status;
|
|
3670
|
+
context.throw(context.status, error.message, error);
|
|
3671
|
+
}
|
|
3672
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3673
|
+
const controller = await container.get(dictItem_controller_1.DictItemController);
|
|
3674
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3675
|
+
controller.setStatus(undefined);
|
|
3676
|
+
}
|
|
3677
|
+
return templateService.apiHandler({
|
|
3678
|
+
methodName: 'getDictItemById',
|
|
3679
|
+
controller,
|
|
3680
|
+
context,
|
|
3681
|
+
validatedArgs,
|
|
3682
|
+
successStatus: undefined,
|
|
3683
|
+
});
|
|
3684
|
+
});
|
|
3685
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3686
|
+
const argsDictItemController_searchDictItemsByPage = {
|
|
3687
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
3688
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
3689
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
3690
|
+
};
|
|
3691
|
+
router.get('/api/system/dict-item/search/page', ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController)), ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController.prototype.searchDictItemsByPage)), async function DictItemController_searchDictItemsByPage(context, next) {
|
|
3692
|
+
let validatedArgs = [];
|
|
3693
|
+
try {
|
|
3694
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictItemController_searchDictItemsByPage, context, next });
|
|
3695
|
+
}
|
|
3696
|
+
catch (err) {
|
|
3697
|
+
const error = err;
|
|
3698
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3699
|
+
context.status = error.status;
|
|
3700
|
+
context.throw(context.status, error.message, error);
|
|
3701
|
+
}
|
|
3702
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3703
|
+
const controller = await container.get(dictItem_controller_1.DictItemController);
|
|
3704
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3705
|
+
controller.setStatus(undefined);
|
|
3706
|
+
}
|
|
3707
|
+
return templateService.apiHandler({
|
|
3708
|
+
methodName: 'searchDictItemsByPage',
|
|
3709
|
+
controller,
|
|
3710
|
+
context,
|
|
3711
|
+
validatedArgs,
|
|
3712
|
+
successStatus: undefined,
|
|
3713
|
+
});
|
|
3714
|
+
});
|
|
3715
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3716
|
+
const argsDictItemController_createDictItem = {
|
|
3717
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateDictItemDto" },
|
|
3718
|
+
};
|
|
3719
|
+
router.post('/api/system/dict-item', ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController)), ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController.prototype.createDictItem)), async function DictItemController_createDictItem(context, next) {
|
|
3720
|
+
let validatedArgs = [];
|
|
3721
|
+
try {
|
|
3722
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictItemController_createDictItem, context, next });
|
|
3723
|
+
}
|
|
3724
|
+
catch (err) {
|
|
3725
|
+
const error = err;
|
|
3726
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3727
|
+
context.status = error.status;
|
|
3728
|
+
context.throw(context.status, error.message, error);
|
|
3729
|
+
}
|
|
3730
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3731
|
+
const controller = await container.get(dictItem_controller_1.DictItemController);
|
|
3732
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3733
|
+
controller.setStatus(undefined);
|
|
3734
|
+
}
|
|
3735
|
+
return templateService.apiHandler({
|
|
3736
|
+
methodName: 'createDictItem',
|
|
3737
|
+
controller,
|
|
3738
|
+
context,
|
|
3739
|
+
validatedArgs,
|
|
3740
|
+
successStatus: 201,
|
|
3741
|
+
});
|
|
3742
|
+
});
|
|
3743
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3744
|
+
const argsDictItemController_updateDictItem = {
|
|
3745
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3746
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateDictItemDto" },
|
|
3747
|
+
};
|
|
3748
|
+
router.put('/api/system/dict-item/:id', ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController)), ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController.prototype.updateDictItem)), async function DictItemController_updateDictItem(context, next) {
|
|
3749
|
+
let validatedArgs = [];
|
|
3750
|
+
try {
|
|
3751
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictItemController_updateDictItem, context, next });
|
|
3752
|
+
}
|
|
3753
|
+
catch (err) {
|
|
3754
|
+
const error = err;
|
|
3755
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3756
|
+
context.status = error.status;
|
|
3757
|
+
context.throw(context.status, error.message, error);
|
|
3758
|
+
}
|
|
3759
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3760
|
+
const controller = await container.get(dictItem_controller_1.DictItemController);
|
|
3761
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3762
|
+
controller.setStatus(undefined);
|
|
3763
|
+
}
|
|
3764
|
+
return templateService.apiHandler({
|
|
3765
|
+
methodName: 'updateDictItem',
|
|
3766
|
+
controller,
|
|
3767
|
+
context,
|
|
3768
|
+
validatedArgs,
|
|
3769
|
+
successStatus: undefined,
|
|
3770
|
+
});
|
|
3771
|
+
});
|
|
3772
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3773
|
+
const argsDictItemController_deleteDictItem = {
|
|
3774
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3775
|
+
};
|
|
3776
|
+
router.delete('/api/system/dict-item/:id', ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController)), ...((0, runtime_1.fetchMiddlewares)(dictItem_controller_1.DictItemController.prototype.deleteDictItem)), async function DictItemController_deleteDictItem(context, next) {
|
|
3777
|
+
let validatedArgs = [];
|
|
3778
|
+
try {
|
|
3779
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDictItemController_deleteDictItem, context, next });
|
|
3780
|
+
}
|
|
3781
|
+
catch (err) {
|
|
3782
|
+
const error = err;
|
|
3783
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3784
|
+
context.status = error.status;
|
|
3785
|
+
context.throw(context.status, error.message, error);
|
|
3786
|
+
}
|
|
3787
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3788
|
+
const controller = await container.get(dictItem_controller_1.DictItemController);
|
|
3789
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3790
|
+
controller.setStatus(undefined);
|
|
3791
|
+
}
|
|
3792
|
+
return templateService.apiHandler({
|
|
3793
|
+
methodName: 'deleteDictItem',
|
|
3794
|
+
controller,
|
|
3795
|
+
context,
|
|
3796
|
+
validatedArgs,
|
|
3797
|
+
successStatus: undefined,
|
|
3798
|
+
});
|
|
3799
|
+
});
|
|
3800
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3801
|
+
const argsDepartmentController_getAllDepartments = {};
|
|
3802
|
+
router.get('/api/system/department', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.getAllDepartments)), async function DepartmentController_getAllDepartments(context, next) {
|
|
3803
|
+
let validatedArgs = [];
|
|
3804
|
+
try {
|
|
3805
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_getAllDepartments, context, next });
|
|
3806
|
+
}
|
|
3807
|
+
catch (err) {
|
|
3808
|
+
const error = err;
|
|
3809
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3810
|
+
context.status = error.status;
|
|
3811
|
+
context.throw(context.status, error.message, error);
|
|
3812
|
+
}
|
|
3813
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3814
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
3815
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3816
|
+
controller.setStatus(undefined);
|
|
3817
|
+
}
|
|
3818
|
+
return templateService.apiHandler({
|
|
3819
|
+
methodName: 'getAllDepartments',
|
|
3820
|
+
controller,
|
|
3821
|
+
context,
|
|
3822
|
+
validatedArgs,
|
|
3823
|
+
successStatus: undefined,
|
|
3824
|
+
});
|
|
3825
|
+
});
|
|
3826
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3827
|
+
const argsDepartmentController_getDepartmentTree = {};
|
|
3828
|
+
router.get('/api/system/department/tree', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.getDepartmentTree)), async function DepartmentController_getDepartmentTree(context, next) {
|
|
3829
|
+
let validatedArgs = [];
|
|
3830
|
+
try {
|
|
3831
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_getDepartmentTree, context, next });
|
|
3832
|
+
}
|
|
3833
|
+
catch (err) {
|
|
3834
|
+
const error = err;
|
|
3835
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3836
|
+
context.status = error.status;
|
|
3837
|
+
context.throw(context.status, error.message, error);
|
|
3838
|
+
}
|
|
3839
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3840
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
3841
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3842
|
+
controller.setStatus(undefined);
|
|
3843
|
+
}
|
|
3844
|
+
return templateService.apiHandler({
|
|
3845
|
+
methodName: 'getDepartmentTree',
|
|
3846
|
+
controller,
|
|
3847
|
+
context,
|
|
3848
|
+
validatedArgs,
|
|
3849
|
+
successStatus: undefined,
|
|
3850
|
+
});
|
|
3851
|
+
});
|
|
3852
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3853
|
+
const argsDepartmentController_getDepartmentsByLeader = {
|
|
3854
|
+
leaderId: { "in": "path", "name": "leaderId", "required": true, "dataType": "string" },
|
|
3855
|
+
};
|
|
3856
|
+
router.get('/api/system/department/leader/:leaderId', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.getDepartmentsByLeader)), async function DepartmentController_getDepartmentsByLeader(context, next) {
|
|
3857
|
+
let validatedArgs = [];
|
|
3858
|
+
try {
|
|
3859
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_getDepartmentsByLeader, context, next });
|
|
3860
|
+
}
|
|
3861
|
+
catch (err) {
|
|
3862
|
+
const error = err;
|
|
3863
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3864
|
+
context.status = error.status;
|
|
3865
|
+
context.throw(context.status, error.message, error);
|
|
3866
|
+
}
|
|
3867
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3868
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
3869
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3870
|
+
controller.setStatus(undefined);
|
|
3871
|
+
}
|
|
3872
|
+
return templateService.apiHandler({
|
|
3873
|
+
methodName: 'getDepartmentsByLeader',
|
|
3874
|
+
controller,
|
|
3875
|
+
context,
|
|
3876
|
+
validatedArgs,
|
|
3877
|
+
successStatus: undefined,
|
|
3878
|
+
});
|
|
3879
|
+
});
|
|
3880
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3881
|
+
const argsDepartmentController_getDepartmentsByParent = {
|
|
3882
|
+
parentId: { "in": "path", "name": "parentId", "required": true, "dataType": "string" },
|
|
3883
|
+
};
|
|
3884
|
+
router.get('/api/system/department/parent/:parentId', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.getDepartmentsByParent)), async function DepartmentController_getDepartmentsByParent(context, next) {
|
|
3885
|
+
let validatedArgs = [];
|
|
3886
|
+
try {
|
|
3887
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_getDepartmentsByParent, context, next });
|
|
3888
|
+
}
|
|
3889
|
+
catch (err) {
|
|
3890
|
+
const error = err;
|
|
3891
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3892
|
+
context.status = error.status;
|
|
3893
|
+
context.throw(context.status, error.message, error);
|
|
3894
|
+
}
|
|
3895
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3896
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
3897
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3898
|
+
controller.setStatus(undefined);
|
|
3899
|
+
}
|
|
3900
|
+
return templateService.apiHandler({
|
|
3901
|
+
methodName: 'getDepartmentsByParent',
|
|
3902
|
+
controller,
|
|
3903
|
+
context,
|
|
3904
|
+
validatedArgs,
|
|
3905
|
+
successStatus: undefined,
|
|
3906
|
+
});
|
|
3907
|
+
});
|
|
3908
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3909
|
+
const argsDepartmentController_getDepartmentById = {
|
|
3910
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3911
|
+
};
|
|
3912
|
+
router.get('/api/system/department/:id', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.getDepartmentById)), async function DepartmentController_getDepartmentById(context, next) {
|
|
3913
|
+
let validatedArgs = [];
|
|
3914
|
+
try {
|
|
3915
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_getDepartmentById, context, next });
|
|
3916
|
+
}
|
|
3917
|
+
catch (err) {
|
|
3918
|
+
const error = err;
|
|
3919
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3920
|
+
context.status = error.status;
|
|
3921
|
+
context.throw(context.status, error.message, error);
|
|
3922
|
+
}
|
|
3923
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3924
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
3925
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3926
|
+
controller.setStatus(undefined);
|
|
3927
|
+
}
|
|
3928
|
+
return templateService.apiHandler({
|
|
3929
|
+
methodName: 'getDepartmentById',
|
|
3930
|
+
controller,
|
|
3931
|
+
context,
|
|
3932
|
+
validatedArgs,
|
|
3933
|
+
successStatus: undefined,
|
|
3934
|
+
});
|
|
3935
|
+
});
|
|
3936
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3937
|
+
const argsDepartmentController_searchDepartmentsByPage = {
|
|
3938
|
+
page: { "in": "query", "name": "page", "dataType": "double" },
|
|
3939
|
+
pageSize: { "in": "query", "name": "pageSize", "dataType": "double" },
|
|
3940
|
+
keyword: { "in": "query", "name": "keyword", "dataType": "string" },
|
|
3941
|
+
};
|
|
3942
|
+
router.get('/api/system/department/search/page', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.searchDepartmentsByPage)), async function DepartmentController_searchDepartmentsByPage(context, next) {
|
|
3943
|
+
let validatedArgs = [];
|
|
3944
|
+
try {
|
|
3945
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_searchDepartmentsByPage, context, next });
|
|
3946
|
+
}
|
|
3947
|
+
catch (err) {
|
|
3948
|
+
const error = err;
|
|
3949
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3950
|
+
context.status = error.status;
|
|
3951
|
+
context.throw(context.status, error.message, error);
|
|
3952
|
+
}
|
|
3953
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3954
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
3955
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3956
|
+
controller.setStatus(undefined);
|
|
3957
|
+
}
|
|
3958
|
+
return templateService.apiHandler({
|
|
3959
|
+
methodName: 'searchDepartmentsByPage',
|
|
3960
|
+
controller,
|
|
3961
|
+
context,
|
|
3962
|
+
validatedArgs,
|
|
3963
|
+
successStatus: undefined,
|
|
3964
|
+
});
|
|
3965
|
+
});
|
|
3966
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3967
|
+
const argsDepartmentController_createDepartment = {
|
|
3968
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "CreateDepartmentDto" },
|
|
3969
|
+
};
|
|
3970
|
+
router.post('/api/system/department', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.createDepartment)), async function DepartmentController_createDepartment(context, next) {
|
|
3971
|
+
let validatedArgs = [];
|
|
3972
|
+
try {
|
|
3973
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_createDepartment, context, next });
|
|
3974
|
+
}
|
|
3975
|
+
catch (err) {
|
|
3976
|
+
const error = err;
|
|
3977
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
3978
|
+
context.status = error.status;
|
|
3979
|
+
context.throw(context.status, error.message, error);
|
|
3980
|
+
}
|
|
3981
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
3982
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
3983
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
3984
|
+
controller.setStatus(undefined);
|
|
3985
|
+
}
|
|
3986
|
+
return templateService.apiHandler({
|
|
3987
|
+
methodName: 'createDepartment',
|
|
3988
|
+
controller,
|
|
3989
|
+
context,
|
|
3990
|
+
validatedArgs,
|
|
3991
|
+
successStatus: 201,
|
|
3992
|
+
});
|
|
3993
|
+
});
|
|
3994
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
3995
|
+
const argsDepartmentController_updateDepartment = {
|
|
3996
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
3997
|
+
body: { "in": "body", "name": "body", "required": true, "ref": "UpdateDepartmentDto" },
|
|
3998
|
+
};
|
|
3999
|
+
router.put('/api/system/department/:id', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.updateDepartment)), async function DepartmentController_updateDepartment(context, next) {
|
|
4000
|
+
let validatedArgs = [];
|
|
4001
|
+
try {
|
|
4002
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_updateDepartment, context, next });
|
|
4003
|
+
}
|
|
4004
|
+
catch (err) {
|
|
4005
|
+
const error = err;
|
|
4006
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
4007
|
+
context.status = error.status;
|
|
4008
|
+
context.throw(context.status, error.message, error);
|
|
4009
|
+
}
|
|
4010
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
4011
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
4012
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4013
|
+
controller.setStatus(undefined);
|
|
4014
|
+
}
|
|
4015
|
+
return templateService.apiHandler({
|
|
4016
|
+
methodName: 'updateDepartment',
|
|
4017
|
+
controller,
|
|
4018
|
+
context,
|
|
4019
|
+
validatedArgs,
|
|
4020
|
+
successStatus: undefined,
|
|
4021
|
+
});
|
|
4022
|
+
});
|
|
4023
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4024
|
+
const argsDepartmentController_deleteDepartment = {
|
|
4025
|
+
id: { "in": "path", "name": "id", "required": true, "dataType": "string" },
|
|
4026
|
+
};
|
|
4027
|
+
router.delete('/api/system/department/:id', ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController)), ...((0, runtime_1.fetchMiddlewares)(department_controller_1.DepartmentController.prototype.deleteDepartment)), async function DepartmentController_deleteDepartment(context, next) {
|
|
4028
|
+
let validatedArgs = [];
|
|
4029
|
+
try {
|
|
4030
|
+
validatedArgs = templateService.getValidatedArgs({ args: argsDepartmentController_deleteDepartment, context, next });
|
|
4031
|
+
}
|
|
4032
|
+
catch (err) {
|
|
4033
|
+
const error = err;
|
|
4034
|
+
error.message ||= JSON.stringify({ fields: error.fields });
|
|
4035
|
+
context.status = error.status;
|
|
4036
|
+
context.throw(context.status, error.message, error);
|
|
4037
|
+
}
|
|
4038
|
+
const container = typeof ioc_1.iocContainer === 'function' ? ioc_1.iocContainer(context.request) : ioc_1.iocContainer;
|
|
4039
|
+
const controller = await container.get(department_controller_1.DepartmentController);
|
|
4040
|
+
if (typeof controller['setStatus'] === 'function') {
|
|
4041
|
+
controller.setStatus(undefined);
|
|
4042
|
+
}
|
|
4043
|
+
return templateService.apiHandler({
|
|
4044
|
+
methodName: 'deleteDepartment',
|
|
4045
|
+
controller,
|
|
4046
|
+
context,
|
|
4047
|
+
validatedArgs,
|
|
4048
|
+
successStatus: undefined,
|
|
4049
|
+
});
|
|
4050
|
+
});
|
|
4051
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4052
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4053
|
+
}
|
|
4054
|
+
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
|
|
4055
|
+
//# sourceMappingURL=routes.js.map
|