Commit b6959dd1 by 兰国旗

pic manage

parent d4f5496b
const system = require("../../../system");
const ServiceBase = require("../../sve.base");
const settings = require("../../../../config/settings");
class ImginfoService extends ServiceBase {
constructor() {
super("common", ServiceBase.getDaoName(ImginfoService));
}
async create(pobj){
var code = await this.getBusUid("img");
pobj.code = code;
return this.dao.create(pobj);
}
}
module.exports = ImginfoService;
\ No newline at end of file
const system = require("../../../system");
const ServiceBase = require("../../sve.base");
const settings = require("../../../../config/settings");
class TemplateinfoService extends ServiceBase {
constructor() {
super("common", ServiceBase.getDaoName(TemplateinfoService));
}
async createTemplate(pobj){
var ab = pobj.actionBody;
var code = await this.getBusUid("tp");
var name = "营销模板";
ab.code = code;
ab.name = name;
return this.create(ab);
}
}
module.exports = TemplateinfoService;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment