var system = require("../../../system")
var settings = require("../../../../config/settings");
const CtlBase = require("../../ctl.base");
var cacheBaseComp = null;

class FormInfoCtl extends CtlBase {
    constructor() {
        super("configmag", CtlBase.getServiceName(FormInfoCtl));
    }

    /**
     * 重写保存方法
     * @param pobj
     * @returns {Promise<void>}
     */
    async create(pobj){
        let result =  await this.service.createForm(pobj);
        return result;
    }

    /**
     * 重写添加方法
     * @param pobj
     * @returns {Promise<void>}
     */
    async update(pobj) {
        let result = await this.service.updateForm(pobj);
        return result;
    }

}

module.exports = FormInfoCtl;
