youzanyun-devtool-worker
Version:
50 lines (49 loc) • 2.18 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const spring4js_nodejs_1 = require("spring4js-nodejs");
let BeautyH5CustomController = class BeautyH5CustomController {
async saveComponentReplace(ctx) {
const params = ctx.request.body;
const pageHanlder = await this.beautyH5Service.getPageHandler(params);
await pageHanlder.saveComponentReplace(params);
return true;
}
async removeComponentReplace(ctx) {
const params = ctx.request.body;
const pageHanlder = await this.beautyH5Service.getPageHandler(params);
await pageHanlder.removeComponentReplace(params);
return true;
}
async savePageAdd(ctx) {
const params = ctx.request.body;
const appHanlder = await this.beautyH5Service.getAppHandler(params);
await appHanlder.savePageAdd(params);
return true;
}
async removePageAdd(ctx) {
const params = ctx.request.body;
const appHanlder = await this.beautyH5Service.getAppHandler(params);
await appHanlder.removePageAdd(params);
return true;
}
};
tslib_1.__decorate([
(0, spring4js_nodejs_1.Resource)()
], BeautyH5CustomController.prototype, "beautyH5Service", void 0);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Path)('saveComponentReplace', spring4js_nodejs_1.HttpMethod.POST)
], BeautyH5CustomController.prototype, "saveComponentReplace", null);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Path)('removeComponentReplace', spring4js_nodejs_1.HttpMethod.POST)
], BeautyH5CustomController.prototype, "removeComponentReplace", null);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Path)('savePageAdd', spring4js_nodejs_1.HttpMethod.POST)
], BeautyH5CustomController.prototype, "savePageAdd", null);
tslib_1.__decorate([
(0, spring4js_nodejs_1.Path)('removePageAdd', spring4js_nodejs_1.HttpMethod.POST)
], BeautyH5CustomController.prototype, "removePageAdd", null);
BeautyH5CustomController = tslib_1.__decorate([
(0, spring4js_nodejs_1.Controller)('/api/mei-h5-custom/')
], BeautyH5CustomController);
exports.default = BeautyH5CustomController;