1 Star 0 Fork 0

BinaryBard/rbac

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
MyBatisCodeHelperDatasource.xml 10.51 KB
一键复制 编辑 原始数据 按行查看 历史
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="MyBatisCodeHelperDatasource">
<option name="projectProfile">
<ProjectProfile>
<option name="controllerTemplateString" value="&#10;#* @vtlvariable name=&quot;tableName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;entityPackageName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;entityClassName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;servicePackageName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;serviceInterfacePackage&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;serviceClassName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;serviceInterfaceClassName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;mapperPackageName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;mapperClassName&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;controllerPackage&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;tableRemark&quot; type=&quot;java.lang.String&quot; *#&#10;#* @vtlvariable name=&quot;myDate&quot; type=&quot;java.util.Date&quot; *#&#10;#* @vtlvariable name=&quot;simpleDateFormat&quot; type=&quot;java.text.SimpleDateFormat&quot; *#&#10;package $!{controllerPackage};&#10;import $!{entityPackageName}.$!{entityClassName};&#10;###set($realServiceName = $!{serviceClassName}+'Impl')&#10;import $!{servicePackageName}.$!{serviceClassName};&#10;import org.springframework.web.bind.annotation.*;&#10;&#10;#set($serviceFirstLower = $!{serviceClassName.substring(0,1).toLowerCase()}+$!{serviceClassName.substring(1,$!{serviceClassName.length()})})&#10;import org.springframework.beans.factory.annotation.Autowired;&#10;&#10;/**&#10;* $!{tableRemark}($!{tableName})表控制层&#10;*&#10;* @author xxxxx&#10;*/&#10;@RestController&#10;@RequestMapping(&quot;/$!{tableName}&quot;)&#10;public class $!{entityClassName}Controller {&#10;/**&#10;* 服务对象&#10;*/&#10; @Autowired&#10; private $!{serviceClassName} $!{serviceFirstLower};&#10;&#10; /**&#10; * 通过主键查询单条数据&#10; *&#10; * @param id 主键&#10; * @return 单条数据&#10; */&#10; @GetMapping(&quot;selectOne&quot;)&#10; public $!{entityClassName} selectOne(Integer id) {&#10; return $!{serviceFirstLower}.selectByPrimaryKey(id);&#10; }&#10;&#10;}" />
<option name="javaMapperPackage" value="com.powernode.mapper" />
<option name="javaMapperPath" value="$PROJECT_DIR$/rbac-admin/src/main/java" />
<option name="javaModelPackage" value="com.powernode.vo" />
<option name="javaModelPath" value="$PROJECT_DIR$/rbac-admin/src/main/java" />
<option name="lastDatabaseCrudChooseModuleName" value="rbac-admin" />
<option name="lombokAllArgConstructor" value="true" />
<option name="lombokDataAnnotation" value="true" />
<option name="lombokNoArgsConstructor" value="true" />
<option name="moduleNameToPackageAndPathMap">
<map>
<entry key="rbac-admin">
<value>
<UserPackageAndPathInfoByModule>
<option name="javaMapperPackage" value="com.powernode.mapper" />
<option name="javaMapperPath" value="$PROJECT_DIR$/rbac-admin/src/main/java" />
<option name="javaModelPacakge" value="com.powernode.vo" />
<option name="javaModelPath" value="$PROJECT_DIR$/rbac-admin/src/main/java" />
<option name="javaServiceInterfacePath" value="$PROJECT_DIR$/rbac-admin/src/main/java" />
<option name="javaServicePath" value="$PROJECT_DIR$/rbac-admin/src/main/java" />
<option name="xmlPackage" value="mapper" />
<option name="xmlPath" value="$PROJECT_DIR$/rbac-admin/src/main/resources" />
</UserPackageAndPathInfoByModule>
</value>
</entry>
</map>
</option>
<option name="tableGenerateConfigs">
<map>
<entry key="db_rbac:sys_dept">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="dept_id" />
<option name="javaModelName" value="SysDeptVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_dict_data">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="dict_code" />
<option name="javaModelName" value="SysDictDataVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_dict_type">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="dict_id" />
<option name="javaModelName" value="SysDictType" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_login_info">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="info_id" />
<option name="javaModelName" value="LoginInfoVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_menu">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="" />
<option name="javaModelName" value="SysMenuVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_notice">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="notice_id" />
<option name="javaModelName" value="NoticeVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_oper_log">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="oper_id" />
<option name="javaModelName" value="OperLogVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_role">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="role_id" />
<option name="javaModelName" value="SysRoleVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_role_menu">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="" />
<option name="javaModelName" value="SysRoleMenuVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_user">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="user_id" />
<option name="javaModelName" value="SysUserVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
<entry key="db_rbac:sys_user_role">
<value>
<TableGenerateConfig>
<option name="generatedKey" value="" />
<option name="javaModelName" value="SysUserRoleVo" />
<option name="moduleName" value="rbac-admin" />
<option name="sequenceColumn" value="" />
<option name="sequenceId" value="" />
<option name="useActualColumnName" value="false" />
</TableGenerateConfig>
</value>
</entry>
</map>
</option>
<option name="xmlMapperPackage" value="mapper" />
<option name="xmlMapperPath" value="$PROJECT_DIR$/rbac-admin/src/main/resources" />
</ProjectProfile>
</option>
</component>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/binarybard/rbac.git
git@gitee.com:binarybard/rbac.git
binarybard
rbac
rbac
master

搜索帮助