提交 b1d9377a 编写于 作者: tony001's avatar tony001

添加动态模式为实体数据集合模型数据

上级 e027634c
......@@ -10,6 +10,98 @@ import ViewMessageService from '../view-message-service';
*/
export default class ${srfclassname('${item.getCodeName()}')}MessageServiceBase extends ViewMessageService {
<#-- 动态模式为实体数据集合start -->
<#if item.getDynamicMode() == 1>
/**
* 支持缓存
*
* @type {boolean}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public isEnableCache:boolean = ${item.isEnableCache()?c};
/**
* 缓存范围
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public cacheScope:string = "${item.getCacheScope()}";
/**
* 缓存超时
*
* @type {number}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public cacheTimeout:number = ${item.getCacheTimeout()?c};
/**
* 消息内容属性名
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public contentField:string = "<#if item.getContentPSDEField()??>${item.getContentPSDEField().getCodeName()}</#if>";
/**
* 消息位置属性名
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public msgPosField:string = "<#if item.getMsgPosPSDEField()??>${item.getMsgPosPSDEField().getCodeName()}</#if>";
/**
* 消息类型属性名
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public msgTypeField:string = "<#if item.getMsgTypePSDEField()??>${item.getMsgTypePSDEField().getCodeName()}</#if>";
/**
* 消息排序值属性名
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public orderValueField:string = "<#if item.getOrderValuePSDEField()??>${item.getOrderValuePSDEField().getCodeName()}</#if>";
/**
* 消息移除标识属性名
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public removeFlagField:string = "<#if item.getRemoveFlagPSDEField()??>${item.getRemoveFlagPSDEField().getCodeName()}</#if>";
/**
* 消息抬头属性名
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public getTitlePSDEField:string = "<#if item.getTitlePSDEField()??>${item.getTitlePSDEField().getCodeName()}</#if>";
/**
* 应用实体对象名
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public appDataEntityName:string = "<#if item.getPSAppDataEntity()??>${item.getPSAppDataEntity().getCodeName()}</#if>";
/**
* 实体数据集合接口名
*
* @type {string}
* @memberof ${srfclassname('${item.getCodeName()}')}MessageServiceBase
*/
public appDataSetName:string = "<#if item.getPSAppDEDataSet()??>${item.getPSAppDEDataSet().getCodeName()}</#if>";
</#if>
<#-- 动态模式为实体数据集合end -->
/**
* Creates an instance of ${srfclassname('${item.getCodeName()}')}MessageServiceBase.
*
......@@ -36,7 +128,7 @@ export default class ${srfclassname('${item.getCodeName()}')}MessageServiceBase
this.type = "<#if item.getMessageType() !="">${item.getMessageType()}<#else>INFO</#if>";
this.isdefault = true;
this.isEnableRemove = ${item.isEnableRemove()?c};
this.dynamicMode = "STATIC";
this.dynamicMode = "${item.getDynamicMode()?c}";
}
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册