Sfoglia il codice sorgente

逻辑删除测试ok

NorthLan 7 anni fa
parent
commit
e483a63328
66 ha cambiato i file con 1338 aggiunte e 0 eliminazioni
  1. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysDeptUserMapper.kt
  2. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysDicMapper.kt
  3. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysEventLoginMapper.kt
  4. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysEventOperMapper.kt
  5. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysMenuMapper.kt
  6. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysNoticeMapper.kt
  7. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysParamMapper.kt
  8. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysPermissionMapper.kt
  9. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysRoleMapper.kt
  10. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysRolePermissionMapper.kt
  11. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysUserMapper.kt
  12. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysUserRoleMapper.kt
  13. 23 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysDeptUser.kt
  14. 27 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysDic.kt
  15. 43 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysEventLogin.kt
  16. 43 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysEventOper.kt
  17. 43 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysMenu.kt
  18. 40 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysNotice.kt
  19. 27 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysParam.kt
  20. 35 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysPermission.kt
  21. 19 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysRole.kt
  22. 23 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysRolePermission.kt
  23. 71 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysUser.kt
  24. 23 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysUserRole.kt
  25. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysDeptUserService.kt
  26. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysDicService.kt
  27. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysEventLoginService.kt
  28. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysEventOperService.kt
  29. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysMenuService.kt
  30. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysNoticeService.kt
  31. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysParamService.kt
  32. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysPermissionService.kt
  33. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysRolePermissionService.kt
  34. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysRoleService.kt
  35. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysUserRoleService.kt
  36. 13 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysUserService.kt
  37. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysDeptUserServiceImpl.kt
  38. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysDicServiceImpl.kt
  39. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysEventLoginServiceImpl.kt
  40. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysEventOperServiceImpl.kt
  41. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysMenuServiceImpl.kt
  42. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysNoticeServiceImpl.kt
  43. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysParamServiceImpl.kt
  44. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysPermissionServiceImpl.kt
  45. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysRolePermissionServiceImpl.kt
  46. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysRoleServiceImpl.kt
  47. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysUserRoleServiceImpl.kt
  48. 20 0
      zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysUserServiceImpl.kt
  49. 18 0
      zen-api/src/main/resources/mapping/sys/SysDeptUserMapper.xml
  50. 19 0
      zen-api/src/main/resources/mapping/sys/SysDicMapper.xml
  51. 23 0
      zen-api/src/main/resources/mapping/sys/SysEventLoginMapper.xml
  52. 23 0
      zen-api/src/main/resources/mapping/sys/SysEventOperMapper.xml
  53. 23 0
      zen-api/src/main/resources/mapping/sys/SysMenuMapper.xml
  54. 22 0
      zen-api/src/main/resources/mapping/sys/SysNoticeMapper.xml
  55. 19 0
      zen-api/src/main/resources/mapping/sys/SysParamMapper.xml
  56. 21 0
      zen-api/src/main/resources/mapping/sys/SysPermissionMapper.xml
  57. 17 0
      zen-api/src/main/resources/mapping/sys/SysRoleMapper.xml
  58. 18 0
      zen-api/src/main/resources/mapping/sys/SysRolePermissionMapper.xml
  59. 30 0
      zen-api/src/main/resources/mapping/sys/SysUserMapper.xml
  60. 18 0
      zen-api/src/main/resources/mapping/sys/SysUserRoleMapper.xml
  61. 7 0
      zen-web/build.gradle
  62. 18 0
      zen-web/src/main/kotlin/com/gxzc/zen/MainApplication.kt
  63. 14 0
      zen-web/src/main/kotlin/com/gxzc/zen/controller/ExampleController.kt
  64. 24 0
      zen-web/src/main/resources/application.yml
  65. 16 0
      zen-web/src/main/webapp/index.jsp
  66. 39 0
      zen-web/src/test/kotlin/com/gxzc/zen/base/BaseTestKt.kt

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysDeptUserMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysDeptUser
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 部门用户表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysDeptUserMapper : BaseMapper<SysDeptUser>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysDicMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysDic
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 字典表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysDicMapper : BaseMapper<SysDic>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysEventLoginMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysEventLogin
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 登录日志表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysEventLoginMapper : BaseMapper<SysEventLogin>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysEventOperMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysEventOper
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 操作日志表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysEventOperMapper : BaseMapper<SysEventOper>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysMenuMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysMenu
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 菜单表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysMenuMapper : BaseMapper<SysMenu>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysNoticeMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysNotice
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 通知公告表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysNoticeMapper : BaseMapper<SysNotice>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysParamMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysParam
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 系统参数表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysParamMapper : BaseMapper<SysParam>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysPermissionMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysPermission
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 权限表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysPermissionMapper : BaseMapper<SysPermission>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysRoleMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysRole
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 角色表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysRoleMapper : BaseMapper<SysRole>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysRolePermissionMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysRolePermission
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 角色授权表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysRolePermissionMapper : BaseMapper<SysRolePermission>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysUserMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysUser
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 用户管理 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysUserMapper : BaseMapper<SysUser>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/mapper/SysUserRoleMapper.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.mapper
+
+import com.gxzc.zen.api.sys.model.SysUserRole
+import com.gxzc.zen.common.base.BaseMapper
+/**
+ * <p>
+ * 用户角色表 Mapper 接口
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface SysUserRoleMapper : BaseMapper<SysUserRole>

+ 23 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysDeptUser.kt

@@ -0,0 +1,23 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 部门用户表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysDeptUser(
+        /**
+         * 部门ID
+         */
+        var deptId: String? = null,
+        /**
+         * 用户ID
+         */
+        var userId: String? = null
+) : BaseModel() {
+}

+ 27 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysDic.kt

@@ -0,0 +1,27 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 字典表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysDic(
+        /**
+         * 字典代码
+         */
+        var key: String? = null,
+        /**
+         * 字典值
+         */
+        var value: String? = null,
+        /**
+         * 排序号
+         */
+        var sort: Integer? = null
+) : BaseModel() {
+}

+ 43 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysEventLogin.kt

@@ -0,0 +1,43 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 登录日志表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysEventLogin(
+        /**
+         * 日志标题
+         */
+        var title: String? = null,
+        /**
+         * 请求地址
+         */
+        var requestUri: String? = null,
+        /**
+         * 排序号
+         */
+        var sort: Integer? = null,
+        /**
+         * 账户名
+         */
+        var account: String? = null,
+        /**
+         * 登录IP地址
+         */
+        var clientHost: String? = null,
+        /**
+         * 用户代理
+         */
+        var userAgent: String? = null,
+        /**
+         * 请求状态
+         */
+        var status: Integer? = null
+) : BaseModel() {
+}

+ 43 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysEventOper.kt

@@ -0,0 +1,43 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 操作日志表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysEventOper(
+        /**
+         * 日志标题
+         */
+        var title: String? = null,
+        /**
+         * 请求地址
+         */
+        var requestUri: String? = null,
+        /**
+         * 排序号
+         */
+        var sort: Integer? = null,
+        /**
+         * 账户名
+         */
+        var account: String? = null,
+        /**
+         * 登录IP地址
+         */
+        var clientHost: String? = null,
+        /**
+         * 请求参数
+         */
+        var parameter: String? = null,
+        /**
+         * 请求方法
+         */
+        var method: String? = null
+) : BaseModel() {
+}

+ 43 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysMenu.kt

@@ -0,0 +1,43 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 菜单表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysMenu(
+        /**
+         * 菜单名称
+         */
+        var menuName: String? = null,
+        /**
+         * 菜单类型(0:CURD;1:系统菜单;2:业务菜单)
+         */
+        var menuType: Integer? = null,
+        /**
+         * 上级菜单ID
+         */
+        var parentId: Long? = null,
+        /**
+         * 请求地址
+         */
+        var request: String? = null,
+        /**
+         * 展开状态(1:展开;0:收缩)
+         */
+        var expand: Integer? = null,
+        /**
+         * 排序号
+         */
+        var sort: Integer? = null,
+        /**
+         * 叶子节点(0:树枝节点;1:叶子节点)
+         */
+        var isShow: Integer? = null
+) : BaseModel() {
+}

+ 40 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysNotice.kt

@@ -0,0 +1,40 @@
+package com.gxzc.zen.api.sys.model
+
+import java.util.Date
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 通知公告表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysNotice(
+        /**
+         * 公告标题
+         */
+        var noticeTitle: String? = null,
+        /**
+         * 公告类型
+         */
+        var noticeType: String? = null,
+        /**
+         * 发布时间
+         */
+        var sendTime: Date? = null,
+        /**
+         * 来源地址
+         */
+        var sourcesUrl: String? = null,
+        /**
+         * 内容
+         */
+        var content: String? = null,
+        /**
+         * 发布状态
+         */
+        var status: String? = null
+) : BaseModel() {
+}

+ 27 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysParam.kt

@@ -0,0 +1,27 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 系统参数表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysParam(
+        /**
+         * 参数key
+         */
+        var key: String? = null,
+        /**
+         * 参数值
+         */
+        var value: String? = null,
+        /**
+         * 排序号
+         */
+        var sort: Integer? = null
+) : BaseModel() {
+}

+ 35 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysPermission.kt

@@ -0,0 +1,35 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 权限表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysPermission(
+        /**
+         * 权限名称
+         */
+        var name: String? = null,
+        /**
+         * 权限代码
+         */
+        var code: Integer? = null,
+        /**
+         * 上级菜单ID
+         */
+        var parentId: Long? = null,
+        /**
+         * 权限描述
+         */
+        var description: String? = null,
+        /**
+         * 所属菜单ID
+         */
+        var menuId: String? = null
+) : BaseModel() {
+}

+ 19 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysRole.kt

@@ -0,0 +1,19 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 角色表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysRole(
+        /**
+         * 角色名称
+         */
+        var roleName: String? = null
+) : BaseModel() {
+}

+ 23 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysRolePermission.kt

@@ -0,0 +1,23 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 角色授权表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysRolePermission(
+        /**
+         * 角色ID
+         */
+        var roleId: String? = null,
+        /**
+         * 权限ID
+         */
+        var permissionId: String? = null
+) : BaseModel() {
+}

+ 71 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysUser.kt

@@ -0,0 +1,71 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 用户管理
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysUser(
+        /**
+         * 登陆帐户
+         */
+        var account: String? = null,
+        /**
+         * 密码
+         */
+        var password: String? = null,
+        /**
+         * 用户类型(1普通用户2管理员3系统用户)
+         */
+        var userType: String? = null,
+        /**
+         * 姓名
+         */
+        var userName: String? = null,
+        /**
+         * 电话
+         */
+        var phone: String? = null,
+        /**
+         * 邮箱
+         */
+        var email: String? = null,
+        /**
+         * 部门编号
+         */
+        var deptId: Long? = null,
+        /**
+         * 职位
+         */
+        var position: String? = null,
+        /**
+         * 详细地址
+         */
+        var address: String? = null,
+        /**
+         * 工号
+         */
+        var staffNo: String? = null,
+        /**
+         * 备用字段
+         */
+        var ext01: String? = null,
+        /**
+         * 备用字段
+         */
+        var ext02: String? = null,
+        /**
+         * 备用字段
+         */
+        var ext03: String? = null,
+        /**
+         * 备用字段
+         */
+        var ext04: String? = null
+) : BaseModel() {
+}

+ 23 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/model/SysUserRole.kt

@@ -0,0 +1,23 @@
+package com.gxzc.zen.api.sys.model
+
+import com.gxzc.zen.common.base.BaseModel
+
+/**
+ * <p>
+ * 用户角色表
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+data class SysUserRole(
+        /**
+         * 角色ID
+         */
+        var roleId: String? = null,
+        /**
+         * 用户ID
+         */
+        var userId: String? = null
+) : BaseModel() {
+}

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysDeptUserService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysDeptUser
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 部门用户表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysDeptUserService : BaseService<SysDeptUser>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysDicService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysDic
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 字典表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysDicService : BaseService<SysDic>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysEventLoginService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysEventLogin
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 登录日志表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysEventLoginService : BaseService<SysEventLogin>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysEventOperService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysEventOper
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 操作日志表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysEventOperService : BaseService<SysEventOper>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysMenuService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysMenu
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 菜单表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysMenuService : BaseService<SysMenu>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysNoticeService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysNotice
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 通知公告表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysNoticeService : BaseService<SysNotice>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysParamService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysParam
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 系统参数表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysParamService : BaseService<SysParam>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysPermissionService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysPermission
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 权限表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysPermissionService : BaseService<SysPermission>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysRolePermissionService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysRolePermission
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 角色授权表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysRolePermissionService : BaseService<SysRolePermission>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysRoleService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysRole
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 角色表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysRoleService : BaseService<SysRole>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysUserRoleService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysUserRole
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 用户角色表 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysUserRoleService : BaseService<SysUserRole>

+ 13 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/ISysUserService.kt

@@ -0,0 +1,13 @@
+package com.gxzc.zen.api.sys.service
+
+import com.gxzc.zen.api.sys.model.SysUser
+import com.gxzc.zen.common.base.BaseService
+/**
+ * <p>
+ * 用户管理 服务类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+interface ISysUserService : BaseService<SysUser>

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysDeptUserServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysDeptUser
+import com.gxzc.zen.api.sys.mapper.SysDeptUserMapper
+import com.gxzc.zen.api.sys.service.ISysDeptUserService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 部门用户表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysDeptUserServiceImpl : ServiceImpl<SysDeptUserMapper, SysDeptUser>(), ISysDeptUserService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysDicServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysDic
+import com.gxzc.zen.api.sys.mapper.SysDicMapper
+import com.gxzc.zen.api.sys.service.ISysDicService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 字典表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysDicServiceImpl : ServiceImpl<SysDicMapper, SysDic>(), ISysDicService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysEventLoginServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysEventLogin
+import com.gxzc.zen.api.sys.mapper.SysEventLoginMapper
+import com.gxzc.zen.api.sys.service.ISysEventLoginService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 登录日志表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysEventLoginServiceImpl : ServiceImpl<SysEventLoginMapper, SysEventLogin>(), ISysEventLoginService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysEventOperServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysEventOper
+import com.gxzc.zen.api.sys.mapper.SysEventOperMapper
+import com.gxzc.zen.api.sys.service.ISysEventOperService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 操作日志表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysEventOperServiceImpl : ServiceImpl<SysEventOperMapper, SysEventOper>(), ISysEventOperService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysMenuServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysMenu
+import com.gxzc.zen.api.sys.mapper.SysMenuMapper
+import com.gxzc.zen.api.sys.service.ISysMenuService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 菜单表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysMenuServiceImpl : ServiceImpl<SysMenuMapper, SysMenu>(), ISysMenuService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysNoticeServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysNotice
+import com.gxzc.zen.api.sys.mapper.SysNoticeMapper
+import com.gxzc.zen.api.sys.service.ISysNoticeService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 通知公告表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysNoticeServiceImpl : ServiceImpl<SysNoticeMapper, SysNotice>(), ISysNoticeService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysParamServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysParam
+import com.gxzc.zen.api.sys.mapper.SysParamMapper
+import com.gxzc.zen.api.sys.service.ISysParamService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 系统参数表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysParamServiceImpl : ServiceImpl<SysParamMapper, SysParam>(), ISysParamService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysPermissionServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysPermission
+import com.gxzc.zen.api.sys.mapper.SysPermissionMapper
+import com.gxzc.zen.api.sys.service.ISysPermissionService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 权限表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysPermissionServiceImpl : ServiceImpl<SysPermissionMapper, SysPermission>(), ISysPermissionService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysRolePermissionServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysRolePermission
+import com.gxzc.zen.api.sys.mapper.SysRolePermissionMapper
+import com.gxzc.zen.api.sys.service.ISysRolePermissionService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 角色授权表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysRolePermissionServiceImpl : ServiceImpl<SysRolePermissionMapper, SysRolePermission>(), ISysRolePermissionService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysRoleServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysRole
+import com.gxzc.zen.api.sys.mapper.SysRoleMapper
+import com.gxzc.zen.api.sys.service.ISysRoleService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 角色表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysRoleServiceImpl : ServiceImpl<SysRoleMapper, SysRole>(), ISysRoleService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysUserRoleServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysUserRole
+import com.gxzc.zen.api.sys.mapper.SysUserRoleMapper
+import com.gxzc.zen.api.sys.service.ISysUserRoleService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 用户角色表 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysUserRoleServiceImpl : ServiceImpl<SysUserRoleMapper, SysUserRole>(), ISysUserRoleService {
+
+}

+ 20 - 0
zen-api/src/main/kotlin/com/gxzc/zen/api/sys/service/impl/SysUserServiceImpl.kt

@@ -0,0 +1,20 @@
+package com.gxzc.zen.api.sys.service.impl
+
+import com.gxzc.zen.api.sys.model.SysUser
+import com.gxzc.zen.api.sys.mapper.SysUserMapper
+import com.gxzc.zen.api.sys.service.ISysUserService
+import com.baomidou.mybatisplus.service.impl.ServiceImpl
+import org.springframework.stereotype.Service
+
+/**
+ * <p>
+ * 用户管理 服务实现类
+ * </p>
+ *
+ * @author NorthLan123
+ * @since 2018-01-30
+ */
+@Service
+open class SysUserServiceImpl : ServiceImpl<SysUserMapper, SysUser>(), ISysUserService {
+
+}

+ 18 - 0
zen-api/src/main/resources/mapping/sys/SysDeptUserMapper.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysDeptUserMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysDeptUser">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="dept_id" property="deptId" />
+        <result column="user_id" property="userId" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
zen-api/src/main/resources/mapping/sys/SysDicMapper.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysDicMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysDic">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="key" property="key" />
+        <result column="value" property="value" />
+        <result column="sort" property="sort" />
+    </resultMap>
+
+</mapper>

+ 23 - 0
zen-api/src/main/resources/mapping/sys/SysEventLoginMapper.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysEventLoginMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysEventLogin">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="title" property="title" />
+        <result column="request_uri" property="requestUri" />
+        <result column="sort" property="sort" />
+        <result column="account" property="account" />
+        <result column="client_host" property="clientHost" />
+        <result column="user_agent" property="userAgent" />
+        <result column="status" property="status" />
+    </resultMap>
+
+</mapper>

+ 23 - 0
zen-api/src/main/resources/mapping/sys/SysEventOperMapper.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysEventOperMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysEventOper">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="title" property="title" />
+        <result column="request_uri" property="requestUri" />
+        <result column="sort" property="sort" />
+        <result column="account" property="account" />
+        <result column="client_host" property="clientHost" />
+        <result column="parameter" property="parameter" />
+        <result column="method" property="method" />
+    </resultMap>
+
+</mapper>

+ 23 - 0
zen-api/src/main/resources/mapping/sys/SysMenuMapper.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysMenuMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysMenu">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="menu_name" property="menuName" />
+        <result column="menu_type" property="menuType" />
+        <result column="parent_id" property="parentId" />
+        <result column="request" property="request" />
+        <result column="expand" property="expand" />
+        <result column="sort" property="sort" />
+        <result column="is_show" property="isShow" />
+    </resultMap>
+
+</mapper>

+ 22 - 0
zen-api/src/main/resources/mapping/sys/SysNoticeMapper.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysNoticeMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysNotice">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="notice_title" property="noticeTitle" />
+        <result column="notice_type" property="noticeType" />
+        <result column="send_time" property="sendTime" />
+        <result column="sources_url" property="sourcesUrl" />
+        <result column="content" property="content" />
+        <result column="status" property="status" />
+    </resultMap>
+
+</mapper>

+ 19 - 0
zen-api/src/main/resources/mapping/sys/SysParamMapper.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysParamMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysParam">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="key" property="key" />
+        <result column="value" property="value" />
+        <result column="sort" property="sort" />
+    </resultMap>
+
+</mapper>

+ 21 - 0
zen-api/src/main/resources/mapping/sys/SysPermissionMapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysPermissionMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysPermission">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="name" property="name" />
+        <result column="code" property="code" />
+        <result column="parent_id" property="parentId" />
+        <result column="description" property="description" />
+        <result column="menu_id" property="menuId" />
+    </resultMap>
+
+</mapper>

+ 17 - 0
zen-api/src/main/resources/mapping/sys/SysRoleMapper.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysRoleMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysRole">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="role_name" property="roleName" />
+    </resultMap>
+
+</mapper>

+ 18 - 0
zen-api/src/main/resources/mapping/sys/SysRolePermissionMapper.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysRolePermissionMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysRolePermission">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="role_id" property="roleId" />
+        <result column="permission_id" property="permissionId" />
+    </resultMap>
+
+</mapper>

+ 30 - 0
zen-api/src/main/resources/mapping/sys/SysUserMapper.xml

@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysUserMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysUser">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="account" property="account" />
+        <result column="password" property="password" />
+        <result column="user_type" property="userType" />
+        <result column="user_name" property="userName" />
+        <result column="phone" property="phone" />
+        <result column="email" property="email" />
+        <result column="dept_id" property="deptId" />
+        <result column="position" property="position" />
+        <result column="address" property="address" />
+        <result column="staff_no" property="staffNo" />
+        <result column="ext_01" property="ext01" />
+        <result column="ext_02" property="ext02" />
+        <result column="ext_03" property="ext03" />
+        <result column="ext_04" property="ext04" />
+    </resultMap>
+
+</mapper>

+ 18 - 0
zen-api/src/main/resources/mapping/sys/SysUserRoleMapper.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.gxzc.zen.api.sys.mapper.SysUserRoleMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.gxzc.zen.api.sys.model.SysUserRole">
+    <result column="id" property="id" />
+    <result column="enable" property="enable" />
+    <result column="remark" property="remark" />
+    <result column="create_time" property="createTime" />
+    <result column="create_by" property="createBy" />
+    <result column="update_time" property="updateTime" />
+    <result column="update_by" property="updateBy" />
+        <result column="role_id" property="roleId" />
+        <result column="user_id" property="userId" />
+    </resultMap>
+
+</mapper>

+ 7 - 0
zen-web/build.gradle

@@ -0,0 +1,7 @@
+apply plugin: 'war'
+
+dependencies {
+    compile project(":zen-ui")
+    compile project(":zen-orm")
+    compile project(":zen-api")
+}

+ 18 - 0
zen-web/src/main/kotlin/com/gxzc/zen/MainApplication.kt

@@ -0,0 +1,18 @@
+package com.gxzc.zen
+
+import org.springframework.boot.SpringApplication
+import org.springframework.boot.autoconfigure.SpringBootApplication
+import org.springframework.boot.builder.SpringApplicationBuilder
+import org.springframework.boot.web.support.SpringBootServletInitializer
+
+
+@SpringBootApplication//(exclude = [DataSourceAutoConfiguration::class])
+class MainApplication : SpringBootServletInitializer() {
+    override fun configure(builder: SpringApplicationBuilder?): SpringApplicationBuilder? {
+        return builder?.sources(MainApplication::class.java)
+    }
+}
+
+fun main(args: Array<String>) {
+    SpringApplication.run(MainApplication::class.java, *args)
+}

+ 14 - 0
zen-web/src/main/kotlin/com/gxzc/zen/controller/ExampleController.kt

@@ -0,0 +1,14 @@
+package com.gxzc.zen.controller
+
+import org.slf4j.LoggerFactory
+import org.springframework.stereotype.Controller
+import org.springframework.web.bind.annotation.RequestMapping
+
+
+@Controller
+@RequestMapping("example")
+class ExampleController {
+    companion object {
+        private val logger = LoggerFactory.getLogger(ExampleController::class.java)
+    }
+}

+ 24 - 0
zen-web/src/main/resources/application.yml

@@ -0,0 +1,24 @@
+server:
+  port: 8082
+
+
+###################  spring配置  ###################
+spring:
+  profiles:
+    active: dev
+    include: orm
+#  redis:
+#    host: localhost
+#    port: 6379
+#    password:
+  http:
+    converters:
+      preferred-json-mapper: fastjson
+    multipart:
+      max-request-size: 100MB #最大请求大小
+      max-file-size: 100MB #最大文件大小
+  aop:
+    proxy-target-class: true #false为启用jdk默认动态代理,true为cglib动态代理
+    auto: true
+logging:
+  level: info

+ 16 - 0
zen-web/src/main/webapp/index.jsp

@@ -0,0 +1,16 @@
+<%--
+  Created by IntelliJ IDEA.
+  User: mgr
+  Date: 18-1-20
+  Time: 上午11:23
+  To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+  <head>
+    <title>$Title$</title>
+  </head>
+  <body>
+  $END$s
+  </body>
+</html>

+ 39 - 0
zen-web/src/test/kotlin/com/gxzc/zen/base/BaseTestKt.kt

@@ -0,0 +1,39 @@
+package com.gxzc.zen.base
+
+import org.junit.Before
+import org.junit.runner.RunWith
+import org.springframework.beans.factory.annotation.Autowired
+import org.springframework.boot.test.context.SpringBootTest
+import org.springframework.test.context.junit4.SpringRunner
+import org.springframework.test.context.web.WebAppConfiguration
+import org.springframework.test.web.servlet.MockMvc
+import org.springframework.test.web.servlet.setup.MockMvcBuilders
+import org.springframework.web.context.WebApplicationContext
+
+/**
+ * Spring单元测试基类
+ * @author NorthLan
+ * @date 2018/1/26
+ * @url https://noahlan.com
+ */
+@RunWith(SpringRunner::class)
+@SpringBootTest
+@WebAppConfiguration
+//@Transactional  // 事物支持
+class BaseTestKt {
+
+    @Autowired
+    lateinit var webApplicationContext: WebApplicationContext
+
+    lateinit var mockMvc: MockMvc
+
+    @Before
+    fun setupMockMvc() {
+        mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build()
+    }
+
+    @Before
+    fun initDataBase() {
+        // Nothing
+    }
+}