Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, Number, Number, String]),
__metadata("design:returntype", Promise)
], SettingController.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)
], SettingController.prototype, "get", 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)
], SettingController.prototype, "remove", null);
SettingController = __decorate([
typescript_rest_swagger_1.Tags('core'),
typescript_rest_1.Path('/api/setting'),
typescript_rest_1.Preprocessor(interceptor_1.interceptor),
__metadata("design:paramtypes", [Object])
], SettingController);
exports.SettingController = SettingController;
//# sourceMappingURL=setting.controller.js.map
__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('auth'),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], MenuController.prototype, "getUserMenus", 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", [String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "get", null);
MenuController = __decorate([
typescript_rest_swagger_1.Tags('core'),
typescript_rest_1.Path('api/menu'),
typescript_rest_1.Preprocessor(interceptor_1.interceptor),
{
field: 'name',
header: '名字',
}
]
}),
typescript_rest_1.Path('config'),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], DomainController.prototype, "getConfig", null);
__decorate([
typescript_rest_1.Path('category/:category'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.PathParam('category')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], DomainController.prototype, "getDomainByCategory", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], DomainController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], DomainController.prototype, "update", null);
__param(8, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String, String, Number, String, Number, Number, Number, String]),
__metadata("design:returntype", Promise)
], CustomerController.prototype, "getPaged", null);
__decorate([
typescript_rest_1.Path('test'),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], CustomerController.prototype, "getCollections", 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)
], CustomerController.prototype, "get", 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)
], CustomerController.prototype, "remove", null);
CustomerController = __decorate([
typescript_rest_swagger_1.Tags('crm'),
typescript_rest_1.Path('/api/customer')
], CustomerController);
], RoleController.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('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)
], RoleController.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)
], RoleController.prototype, "get", 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)
], RoleController.prototype, "remove", null);
RoleController = __decorate([
typescript_rest_swagger_1.Tags('core'),
typescript_rest_1.Path('/api/role'),
typescript_rest_1.Preprocessor(interceptor_1.interceptor),
__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", [String]),
__metadata("design:returntype", Promise)
], MenuController.prototype, "get", null);
MenuController = __decorate([
typescript_rest_swagger_1.Tags('base'),
typescript_rest_1.Path('/api/menu')
], MenuController);
__metadata("design:type", Function),
__metadata("design:paramtypes", [Number, Number, String]),
__metadata("design:returntype", Promise)
], DictController.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)
], DictController.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", [String]),
__metadata("design:returntype", Promise)
], DictController.prototype, "get", null);
DictController = __decorate([
typescript_rest_swagger_1.Tags('base'),
typescript_rest_1.Path('/api/dict')
], DictController);
exports.DictController = DictController;
//# sourceMappingURL=dict-controller.js.map
__metadata("design:returntype", Promise)
], DomainController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('page')),
__param(1, typescript_rest_1.QueryParam('size')),
__param(2, typescript_rest_1.QueryParam('sort')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Number, Number, String]),
__metadata("design:returntype", Promise)
], DomainController.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)
], DomainController.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", [String]),
__metadata("design:returntype", Promise)
], DomainController.prototype, "get", null);
DomainController = __decorate([
typescript_rest_swagger_1.Tags('base'),
typescript_rest_1.Path('/api/domain')
], DomainController);
__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([
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)
], ArticleController.prototype, "get", null);
ArticleController = __decorate([
typescript_rest_swagger_1.Tags('cms'),
typescript_rest_1.Path('/api/article'),
typescript_rest_1.Preprocessor(interceptor_1.interceptor),
__decorate([
typescript_rest_1.Path('query'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__param(1, typescript_rest_1.QueryParam('isRegion')),
__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)
], GroupController.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)
], GroupController.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", [String]),
__metadata("design:returntype", Promise)
], GroupController.prototype, "get", null);
GroupController = __decorate([
typescript_rest_swagger_1.Tags('core'),
typescript_rest_1.Path('api/group'),
typescript_rest_1.Preprocessor(interceptor_1.interceptor),