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

增加获取视图消息分组信息mock接口

上级 b736e592
...@@ -25,3 +25,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -25,3 +25,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
</#list> </#list>
}]; }];
}); });
// 获取视图消息分组信息
mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status,{
<#if app.getAllPSAppViewMsgGroups()??>
<#list app.getAllPSAppViewMsgGroups() as viewMsgGroup>
"<#if viewMsgGroup.getCodeName()??>${viewMsgGroup.getCodeName()}<#else>${viewMsgGroup.getName()}</#if>":[
<#if viewMsgGroup.getPSAppViewMsgGroupDetails()??>
<#list viewMsgGroup.getPSAppViewMsgGroupDetails() as viewMsgGroupDetail>
<#assign viewMessage = viewMsgGroupDetail.getPSAppViewMsg() />
{"tag":"${viewMessage.getCodeName()}","position":"<#if viewMessage.getPosition() != "">${viewMessage.getPosition()}<#else>TOP</#if>","type":"<#if viewMessage.getMessageType() !="">${viewMessage.getMessageType()}<#else>INFO</#if>"}<#if viewMsgGroupDetail_has_next>,</#if>
</#list>
</#if>
]<#if viewMsgGroup_has_next>,</#if>
</#list>
</#if>
}];
});
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册