youzanyun-devtool-worker
Version:
- web - ws - proxy
37 lines (36 loc) • 1.49 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const spring4js_nodejs_1 = require("spring4js-nodejs");
let PcAppCustomController = class PcAppCustomController {
async getAppCustomInfo(ctx) {
let { projectId, appName } = ctx.query;
let customInfo = await this.pcCustomService.getAppCustomInfo({
projectId, appName
});
return customInfo;
}
async getCategoryCustomDetail(ctx) {
let { projectId, appName, categoryName } = ctx.query;
let customDetail = await this.pcCustomService.getCategoryCustomDetail({
projectId, appName, categoryName
});
return customDetail;
}
};
tslib_1.__decorate([
spring4js_nodejs_1.Resource()
], PcAppCustomController.prototype, "pcCustomService", void 0);
tslib_1.__decorate([
spring4js_nodejs_1.Resource()
], PcAppCustomController.prototype, "projectService", void 0);
tslib_1.__decorate([
spring4js_nodejs_1.Path('getAppCustomInfo', spring4js_nodejs_1.HttpMethod.GET)
], PcAppCustomController.prototype, "getAppCustomInfo", null);
tslib_1.__decorate([
spring4js_nodejs_1.Path('getCategoryCustomDetail', spring4js_nodejs_1.HttpMethod.GET)
], PcAppCustomController.prototype, "getCategoryCustomDetail", null);
PcAppCustomController = tslib_1.__decorate([
spring4js_nodejs_1.Controller('/api/pc-app-custom')
], PcAppCustomController);
exports.default = PcAppCustomController;