Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], MediaController.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)
], MediaController.prototype, "search", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [media_dto_1.CreateMediaDto]),
__metadata("design:returntype", Promise)
], MediaController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [media_dto_1.EditMediaDto]),
__metadata("design:returntype", Promise)
], MediaController.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('isMedia')),
__param(2, typescript_rest_1.QueryParam('page')),
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], DictController.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')),
__param(2, typescript_rest_1.QueryParam('category')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String, String]),
__metadata("design:returntype", Promise)
], DictController.prototype, "search", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [dict_dto_1.CreateDictDto]),
__metadata("design:returntype", Promise)
], DictController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [dict_dto_1.EditDictDto]),
__metadata("design:returntype", Promise)
], DictController.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')),
typescript_rest_1.Path('config'),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], DictController.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)
], DictController.prototype, "getDictByCategory", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], DictController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], DictController.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')),
typescript_rest_1.Path('config'),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], CustomerController.prototype, "getConfig", null);
__decorate([
typescript_rest_1.Path('search'),
typescript_rest_1.GET,
__param(0, typescript_rest_1.QueryParam('keyword')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", Promise)
], CustomerController.prototype, "getCustomerByKeyword", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], CustomerController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", Promise)
], CustomerController.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('primary_adviser')),
__param(2, typescript_rest_1.QueryParam('secondary_advisers')),
__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,
__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,
typescript_rest_1.Path('config'),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], MenuController.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)
], MenuController.prototype, "getMenuByCategory", null);
__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('status')),
__param(2, typescript_rest_1.QueryParam('page')),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], WidgetController.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)
], WidgetController.prototype, "search", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [widget_dto_1.CreateWidgetDto]),
__metadata("design:returntype", Promise)
], WidgetController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [widget_dto_1.EditWidgetDto]),
__metadata("design:returntype", Promise)
], WidgetController.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('isWidget')),
__param(2, typescript_rest_1.QueryParam('page')),
__param(1, typescript_rest_1.QueryParam('value')),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String, String]),
__metadata("design:returntype", Promise)
], GroupController.prototype, "search", null);
__decorate([
typescript_rest_1.Path('tree'),
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)
], GroupController.prototype, "searchTree", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [group_dto_1.CreateGroupDto]),
__metadata("design:returntype", Promise)
], GroupController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [group_dto_1.EditGroupDto]),
__metadata("design:returntype", Promise)
], GroupController.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('isRegion')),
__param(2, typescript_rest_1.QueryParam('page')),
}
/**
* 文件上传配置
*/
uploadConfig(action) {
return __awaiter(this, void 0, void 0, function* () {
return this.service.getUploadConfig(action);
});
}
};
__decorate([
typescript_rest_1.Context,
__metadata("design:type", typescript_rest_1.ServiceContext)
], UserController.prototype, "context", void 0);
__decorate([
typescript_rest_1.POST,
typescript_rest_1.Path('login'),
__metadata("design:type", Function),
__metadata("design:paramtypes", [login_dto_1.LoginDto]),
__metadata("design:returntype", Promise)
], UserController.prototype, "login", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [profile_dto_1.EditProfileDto]),
__metadata("design:returntype", Promise)
], UserController.prototype, "update", null);
__decorate([
typescript_rest_1.Path('logout'),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
typescript_rest_1.GET,
__metadata("design:type", Function),
__metadata("design:paramtypes", []),
__metadata("design:returntype", Promise)
], RoleController.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)
], RoleController.prototype, "search", null);
__decorate([
typescript_rest_1.POST,
__metadata("design:type", Function),
__metadata("design:paramtypes", [role_dto_1.CreateRoleDto]),
__metadata("design:returntype", Promise)
], RoleController.prototype, "create", null);
__decorate([
typescript_rest_1.PUT,
__metadata("design:type", Function),
__metadata("design:paramtypes", [role_dto_1.EditRoleDto]),
__metadata("design:returntype", Promise)
], 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')),