Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
__decorate([
typescript_rest_1.Path('role'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.QueryParam('role')), __param(1, typescript_rest_1.QueryParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String]),
__metadata("design:returntype", Promise)
], AccountController.prototype, "removeAccountFromRole", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('group')),
__param(2, typescript_rest_1.QueryParam('role')),
__param(3, typescript_rest_1.QueryParam('page')),
__param(4, typescript_rest_1.QueryParam('size')),
__param(5, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String, String, Number, Number, String]),
__metadata("design:returntype", Promise)
], AccountController.prototype, "query", null);
__decorate([
typescript_rest_1.GET,
typescript_rest_1.Path('profile'),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], AccountController.prototype, "profile", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.PathParam('id')),
], LogController.prototype, "getConfig", null);
__decorate([
typescript_rest_1.Path('search'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('value')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String]),
__metadata("design:returntype", Promise)
], LogController.prototype, "search", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('page')),
__param(2, typescript_rest_1.QueryParam('size')),
__param(3, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Number, Number, String]),
__metadata("design:returntype", Promise)
], LogController.prototype, "query", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.PathParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], LogController.prototype, "get", null);
LogController = __decorate([
typescript_rest_swagger_1.Tags('core'),
typescript_rest_1.Path('/api/log'),
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('status')),
__param(2, typescript_rest_1.QueryParam('page')),
__param(3, typescript_rest_1.QueryParam('size')),
__param(4, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Number, Number, Number, String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "getPaged", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.PathParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "remove", null);
__decorate([
__metadata("design:returntype", Promise)
], MenuController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('status')),
__param(2, typescript_rest_1.QueryParam('page')),
__param(3, typescript_rest_1.QueryParam('size')),
__param(4, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Number, Number, Number, String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "getPaged", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.PathParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "remove", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.PathParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [custom_dto_1.CreateCustomDto]),
__metadata("design:returntype", Promise)
], CustomController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [custom_dto_1.EditCustomDto]),
__metadata("design:returntype", Promise)
], CustomController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('category')),
__param(2, typescript_rest_1.QueryParam('type')),
__param(3, typescript_rest_1.QueryParam('page')),
__param(4, typescript_rest_1.QueryParam('size')),
__param(5, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String, String, Number, Number, String]),
__metadata("design:returntype", Promise)
], CustomController.prototype, "query", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.PathParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], CustomController.prototype, "remove", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [article_dto_1.CreateArticleDto]),
__metadata("design:returntype", Promise)
], ArticleController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [article_dto_1.EditArticleDto]),
__metadata("design:returntype", Promise)
], ArticleController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('category')),
__param(2, typescript_rest_1.QueryParam('page')),
__param(3, typescript_rest_1.QueryParam('size')),
__param(4, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String, Number, Number, String]),
__metadata("design:returntype", Promise)
], ArticleController.prototype, "query", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.PathParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], ArticleController.prototype, "remove", null);
__decorate([
__metadata("design:type", Function),
__metadata("design:paramtypes", [account_dto_1.EditAccountDto]),
__metadata("design:returntype", Promise)
], AccountController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('config'),
typescript_rest_1.GET,
typescript_rest_1.Preprocessor(interceptor_1.interceptor),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], AccountController.prototype, "getConfig", null);
__decorate([
typescript_rest_1.Path('search'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('value')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String]),
__metadata("design:returntype", Promise)
], AccountController.prototype, "getAccountsByKeyword", null);
__decorate([
typescript_rest_1.Path('role'),
typescript_rest_1.POST,
__param(0, typescript_rest_1.FormParam('role')), __param(1, typescript_rest_1.FormParam('accountIds')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Array]),
__metadata("design:returntype", Promise)
], AccountController.prototype, "addAccountsToRole", null);
__decorate([
typescript_rest_1.Path('role'),
typescript_rest_1.DELETE,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('status')),
__param(2, typescript_rest_1.QueryParam('page')),
__param(3, typescript_rest_1.QueryParam('size')),
__param(4, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Number, Number, Number, String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "getPaged", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.PathParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "remove", null);
__decorate([
typescript_rest_1.Path(':id'),
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('isMenu')),
__param(2, typescript_rest_1.QueryParam('page')),
__param(3, typescript_rest_1.QueryParam('size')),
__param(4, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Boolean, Number, Number, String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "query", null);
__decorate([
typescript_rest_1.Path(':id'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.PathParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "remove", null);
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String, Number, Number, String]),
__metadata("design:returntype", Promise)
], ApiController.prototype, "query", null);
__decorate([
typescript_rest_1.Path('permission'),
typescript_rest_1.POST,
__param(0, typescript_rest_1.FormParam('permission')), __param(1, typescript_rest_1.FormParam('ids')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Array]),
__metadata("design:returntype", Promise)
], ApiController.prototype, "addApisToPermission", null);
__decorate([
typescript_rest_1.Path('permission'),
typescript_rest_1.DELETE,
__param(0, typescript_rest_1.QueryParam('permission')), __param(1, typescript_rest_1.QueryParam('id')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String]),
__metadata("design:returntype", Promise)
], ApiController.prototype, "removeApisToPermission", null);
ApiController = __decorate([
typescript_rest_swagger_1.Tags('core'),
typescript_rest_1.Path('/api/api'),
__metadata("design:paramtypes", [Object])
], ApiController);
exports.ApiController = ApiController;
//# sourceMappingURL=api.controller.js.map