Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.remove('Domain', id);
});
}
/**
* 查询领域
* @param id 编号
*/
get(id) {
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.get('Domain', id);
});
}
};
__decorate([
typescript_rest_swagger_1.Example({
entry: {
name: {
title: '名字',
description: '名字描述',
widget: 'input',
type: 'string'
},
birthday: {
title: '生日',
description: '生日描述',
widget: 'date',
type: 'string'
},
},
columns: [
{
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.remove('Employee', id);
});
}
/**
* 查询员工表
* @param id 编号
*/
get(id) {
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.get('Employee', id);
});
}
};
__decorate([
typescript_rest_swagger_1.Example({
entry: {
name: {
title: '名字',
description: '名字描述',
widget: 'input',
type: 'string'
},
birthday: {
title: '生日',
description: '生日描述',
widget: 'date',
type: 'string'
},
},
columns: [
{
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.remove('Menu', id);
});
}
/**
* 查询菜单
* @param id 编号
*/
get(id) {
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.get('Menu', id);
});
}
};
__decorate([
typescript_rest_swagger_1.Example({
entry: {
name: {
title: '名字',
description: '名字描述',
widget: 'input',
type: 'string'
},
birthday: {
title: '生日',
description: '生日描述',
widget: 'date',
type: 'string'
},
},
columns: [
{
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.remove('Dict', id);
});
}
/**
* 查询字典表
* @param id 编号
*/
get(id) {
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.get('Dict', id);
});
}
};
__decorate([
typescript_rest_swagger_1.Example({
columns: [
{
field: 'name',
header: '名字',
}
],
entry: {
birthday: {
description: '生日描述',
title: '生日',
type: 'string',
widget: 'date',
},
name: {
description: '名字描述',
title: '名字',
* @param {string} id 客户编号
* @returns {Promise}
* @memberof CustomerController
*/
remove(id) {
return __awaiter(this, void 0, void 0, function* () {
return modex_1.Helper.remove('Customer', id);
});
}
};
__decorate([
typescript_rest_1.Context,
__metadata("design:type", typescript_rest_1.ServiceContext)
], CustomerController.prototype, "context", void 0);
__decorate([
typescript_rest_swagger_1.Example({
entry: {
name: {
title: '名字',
description: '名字描述',
widget: 'input',
type: 'string'
},
birthday: {
title: '生日',
description: '生日描述',
widget: 'date',
type: 'string'
},
},
columns: [
{