%APP_DEUILOGIC%-ui-logic.ts.ftl 1.5 KB
Newer Older
Mosher's avatar
Mosher committed
1 2 3 4 5 6 7 8
<#ibiztemplate>
TARGET=PSAPPDEUILOGIC
</#ibiztemplate>
import { Http,Util } from '@/utils';
import ${srfclassname('${item.getCodeName()}')}UILogicBase from './${srffilepath2(item.getCodeName())}-ui-logic-base';

/**
 * ${item.name}
9
 * 基于 APP/src/uiservice/%DE_PKGPATH%/%APP_DEUILOGIC%-ui-logic.ts.ftl 生成
Mosher's avatar
Mosher committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
 * @export
 * @class ${srfclassname('${item.getCodeName()}')}UILogic
 */
export default class ${srfclassname('${item.getCodeName()}')}UILogic extends ${srfclassname('${item.getCodeName()}')}UILogicBase {

    /**
     * ${item.name} 逻辑实例对象
     *
     * @private
     * @static
     * @type {${srfclassname('${item.getCodeName()}')}UILogic}
     * @memberof ${srfclassname('${item.getCodeName()}')}UILogic
     */
    private static instance: ${srfclassname('${item.getCodeName()}')}UILogic;

    /**
     * 获取 ${item.name} 逻辑实例对象
     *
     * @static
     * @return {*}  {${srfclassname('${item.getCodeName()}')}UILogic}
     * @memberof ${srfclassname('${item.getCodeName()}')}UILogic
     */
    static getInstance(): ${srfclassname('${item.getCodeName()}')}UILogic {
        if (!this.instance) {
            this.instance = new ${srfclassname('${item.getCodeName()}')}UILogic();
        }
        return this.instance;
    }

    /**
     * Creates an instance of  ${srfclassname('${item.getCodeName()}')}UILogic
     * 
     * @param {*} [opts={}]
     * @memberof  ${srfclassname('${item.getCodeName()}')}UILogic
     */
    constructor(opts: any = {}) {
        super(opts);
    }

49
}