|
|
@ -244,32 +244,32 @@ public class DataInit {
|
|
|
|
<#assign index = "0"+index/>
|
|
|
|
<#assign index = "0"+index/>
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if module.getNeedGenerate()>
|
|
|
|
<#if module.getNeedGenerate()>
|
|
|
|
forMgr.add(createRes("${index}", "${module.note}菜单", "WEB", "${module.name?upper_case}"));
|
|
|
|
forMgr.add(createRes("00${index}", "${module.note}菜单", "WEB", "${module.name?upper_case}"));
|
|
|
|
<#list module.tables as table>
|
|
|
|
<#list module.tables as table>
|
|
|
|
<#if table.isPage()>
|
|
|
|
<#if table.isPage()>
|
|
|
|
forMgr.add(createRes("${index}01", "${table.tableComment}管理菜单", "WEB", "${module.name?upper_case}_${table.tableName?upper_case}"));
|
|
|
|
forMgr.add(createRes("00${index}01", "${table.tableComment}管理菜单", "WEB", "${module.name?upper_case}_${table.tableName?upper_case}"));
|
|
|
|
forMgr.add(createRes("${index}0101", "${table.tableComment}管理页", "WEB", "/${module.name}/${table.getFName()}.htm"));
|
|
|
|
forMgr.add(createRes("00${index}0101", "${table.tableComment}管理页", "WEB", "/${module.name}/${table.getFName()}.htm"));
|
|
|
|
forMgr.add(createRes("${index}010101", "${table.tableComment}模板", "WEB", "/ajax/${module.name}/${table.getFName()}/template"));
|
|
|
|
forMgr.add(createRes("00${index}010101", "${table.tableComment}模板", "WEB", "/ajax/${module.name}/${table.getFName()}/template"));
|
|
|
|
forMgr.add(createRes("${index}010102", "${table.tableComment}导入", "WEB", "/ajax/${module.name}/${table.getFName()}/imports"));
|
|
|
|
forMgr.add(createRes("00${index}010102", "${table.tableComment}导入", "WEB", "/ajax/${module.name}/${table.getFName()}/imports"));
|
|
|
|
forMgr.add(createRes("${index}010103", "${table.tableComment}导出", "WEB", "/ajax/${module.name}/${table.getFName()}/exports"));
|
|
|
|
forMgr.add(createRes("00${index}010103", "${table.tableComment}导出", "WEB", "/ajax/${module.name}/${table.getFName()}/exports"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.create>
|
|
|
|
<#if table.create>
|
|
|
|
forMgr.add(createRes("${index}010104", "${table.tableComment}新增", "WEB", "/ajax/${module.name}/${table.getFName()}/create"));
|
|
|
|
forMgr.add(createRes("00${index}010104", "${table.tableComment}新增", "WEB", "/ajax/${module.name}/${table.getFName()}/create"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.delete>
|
|
|
|
<#if table.delete>
|
|
|
|
forMgr.add(createRes("${index}010105", "${table.tableComment}删除", "WEB", "/ajax/${module.name}/${table.getFName()}/delete"));
|
|
|
|
forMgr.add(createRes("00${index}010105", "${table.tableComment}删除", "WEB", "/ajax/${module.name}/${table.getFName()}/delete"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.update>
|
|
|
|
<#if table.update>
|
|
|
|
forMgr.add(createRes("${index}010106", "${table.tableComment}更新", "WEB", "/ajax/${module.name}/${table.getFName()}/update"));
|
|
|
|
forMgr.add(createRes("00${index}010106", "${table.tableComment}更新", "WEB", "/ajax/${module.name}/${table.getFName()}/update"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.find>
|
|
|
|
<#if table.find>
|
|
|
|
forMgr.add(createRes("${index}010107", "${table.tableComment}查询", "WEB", "/ajax/${module.name}/${table.getFName()}/find"));
|
|
|
|
forMgr.add(createRes("00${index}010107", "${table.tableComment}查询", "WEB", "/ajax/${module.name}/${table.getFName()}/find"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.get>
|
|
|
|
<#if table.get>
|
|
|
|
forMgr.add(createRes("${index}010108", "${table.tableComment}获取", "WEB", "/ajax/${module.name}/${table.getFName()}/get"));
|
|
|
|
forMgr.add(createRes("00${index}010108", "${table.tableComment}获取", "WEB", "/ajax/${module.name}/${table.getFName()}/get"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.search>
|
|
|
|
<#if table.search>
|
|
|
|
forMgr.add(createRes("${index}010109", "${table.tableComment}搜索", "WEB", "/ajax/${module.name}/${table.getFName()}/search"));
|
|
|
|
forMgr.add(createRes("00${index}010109", "${table.tableComment}搜索", "WEB", "/ajax/${module.name}/${table.getFName()}/search"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
</#list>
|
|
|
|
</#list>
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
@ -278,38 +278,38 @@ public class DataInit {
|
|
|
|
<#if project.isNeedApi()>
|
|
|
|
<#if project.isNeedApi()>
|
|
|
|
|
|
|
|
|
|
|
|
{// API资源
|
|
|
|
{// API资源
|
|
|
|
forMgr.add(createRes("A", "接口资源", "API", "A"));
|
|
|
|
forMgr.add(createRes("01", "接口资源", "API", "A"));
|
|
|
|
forMgr.add(createRes("A01", "基础资源", "API", "A01"));
|
|
|
|
forMgr.add(createRes("0101", "基础资源", "API", "A01"));
|
|
|
|
forMgr.add(createRes("A0101", "用户登录", "API", "/api/wsys/User/login"));
|
|
|
|
forMgr.add(createRes("010101", "用户登录", "API", "/api/wsys/User/login"));
|
|
|
|
forMgr.add(createRes("A0102", "字典查询", "API", "/api/wsys/Dict/find"));
|
|
|
|
forMgr.add(createRes("010102", "字典查询", "API", "/api/wsys/Dict/find"));
|
|
|
|
forMgr.add(createRes("A0103", "加载字典", "API", "/api/wsys/Dict/load"));
|
|
|
|
forMgr.add(createRes("010103", "加载字典", "API", "/api/wsys/Dict/load"));
|
|
|
|
forMgr.add(createRes("A0104", "文件上传", "API", "/api/wsys/File/upload"));
|
|
|
|
forMgr.add(createRes("010104", "文件上传", "API", "/api/wsys/File/upload"));
|
|
|
|
forMgr.add(createRes("A0105", "文件下载", "API", "/api/wsys/File/download"));
|
|
|
|
forMgr.add(createRes("010105", "文件下载", "API", "/api/wsys/File/download"));
|
|
|
|
<#list project.modules as module>
|
|
|
|
<#list project.modules as module>
|
|
|
|
<#assign index = module_index + 2/>
|
|
|
|
<#assign index = module_index + 2/>
|
|
|
|
<#if index<10>
|
|
|
|
<#if index<10>
|
|
|
|
<#assign index = "0"+index/>
|
|
|
|
<#assign index = "0"+index/>
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
forMgr.add(createRes("A${index}", "${module.note}", "API", "A${module.name?upper_case}"));
|
|
|
|
forMgr.add(createRes("01${index}", "${module.note}", "API", "A${module.name?upper_case}"));
|
|
|
|
<#list module.tables as table>
|
|
|
|
<#list module.tables as table>
|
|
|
|
forMgr.add(createRes("A${index}01", "${table.tableComment}", "API", "A${module.name?upper_case}_${table.tableName?upper_case}"));
|
|
|
|
forMgr.add(createRes("01${index}01", "${table.tableComment}", "API", "A${module.name?upper_case}_${table.tableName?upper_case}"));
|
|
|
|
<#if table.create>
|
|
|
|
<#if table.create>
|
|
|
|
forMgr.add(createRes("A${index}0101", "${table.tableComment}新增", "API", "/api/${module.name}/${table.getFName()}/create"));
|
|
|
|
forMgr.add(createRes("01${index}0101", "${table.tableComment}新增", "API", "/api/${module.name}/${table.getFName()}/create"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.delete>
|
|
|
|
<#if table.delete>
|
|
|
|
forMgr.add(createRes("A${index}0102", "${table.tableComment}删除", "API", "/api/${module.name}/${table.getFName()}/delete"));
|
|
|
|
forMgr.add(createRes("01${index}0102", "${table.tableComment}删除", "API", "/api/${module.name}/${table.getFName()}/delete"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.update>
|
|
|
|
<#if table.update>
|
|
|
|
forMgr.add(createRes("A${index}0103", "${table.tableComment}更新", "API", "/api/${module.name}/${table.getFName()}/update"));
|
|
|
|
forMgr.add(createRes("01${index}0103", "${table.tableComment}更新", "API", "/api/${module.name}/${table.getFName()}/update"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.find>
|
|
|
|
<#if table.find>
|
|
|
|
forMgr.add(createRes("A${index}0104", "${table.tableComment}查询", "API", "/api/${module.name}/${table.getFName()}/find"));
|
|
|
|
forMgr.add(createRes("01${index}0104", "${table.tableComment}查询", "API", "/api/${module.name}/${table.getFName()}/find"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.get>
|
|
|
|
<#if table.get>
|
|
|
|
forMgr.add(createRes("A${index}0105", "${table.tableComment}获取", "API", "/api/${module.name}/${table.getFName()}/get"));
|
|
|
|
forMgr.add(createRes("01${index}0105", "${table.tableComment}获取", "API", "/api/${module.name}/${table.getFName()}/get"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.search>
|
|
|
|
<#if table.search>
|
|
|
|
forMgr.add(createRes("A${index}0107", "${table.tableComment}搜索", "API", "/api/${module.name}/${table.getFName()}/search"));
|
|
|
|
forMgr.add(createRes("01${index}0107", "${table.tableComment}搜索", "API", "/api/${module.name}/${table.getFName()}/search"));
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
</#list>
|
|
|
|
</#list>
|
|
|
|
</#list>
|
|
|
|
</#list>
|
|
|
|