|
|
@ -127,25 +127,25 @@ public class RoleInit {
|
|
|
|
<#list project.modules as module>
|
|
|
|
<#list project.modules as module>
|
|
|
|
<#list module.tables as table>
|
|
|
|
<#list module.tables as table>
|
|
|
|
<#if table.html>
|
|
|
|
<#if table.html>
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}", "${table.tableComment}新增", "网页地址", "/system/${table.getCName()}.htm");
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}", "${table.tableComment}新增", "网页地址", "/${module.moduleName}/${table.getCName()}.htm");
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.create>
|
|
|
|
<#if table.create>
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_CREATE", "${table.tableComment}新增", "异步请求", "/ajax/system/${table.getCName()}/create");
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_CREATE", "${table.tableComment}新增", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/create");
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.delete>
|
|
|
|
<#if table.delete>
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_DELETE", "${table.tableComment}删除", "异步请求", "/ajax/system/${table.getCName()}/delete");
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_DELETE", "${table.tableComment}删除", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/delete");
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.update>
|
|
|
|
<#if table.update>
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_UPDATE", "${table.tableComment}更新", "异步请求", "/ajax/system/${table.getCName()}/update");
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_UPDATE", "${table.tableComment}更新", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/update");
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.find>
|
|
|
|
<#if table.find>
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_FIND", "${table.tableComment}查询", "异步请求", "/ajax/system/${table.getCName()}/find");
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_FIND", "${table.tableComment}查询", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/find");
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.get>
|
|
|
|
<#if table.get>
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_GET", "${table.tableComment}获取", "异步请求", "/ajax/system/${table.getCName()}/get");
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_GET", "${table.tableComment}获取", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/get");
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
<#if table.search>
|
|
|
|
<#if table.search>
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_SEARCH", "${table.tableComment}搜索", "异步请求", "/ajax/system/${table.getCName()}/search");
|
|
|
|
createRes(roleId, roleCode, "WEB_${table.tableName}_SEARCH", "${table.tableComment}搜索", "异步请求", "/ajax/${module.moduleName}/${table.getCName()}/search");
|
|
|
|
</#if>
|
|
|
|
</#if>
|
|
|
|
|
|
|
|
|
|
|
|
</#list>
|
|
|
|
</#list>
|
|
|
|