style: 优化部分字段名称

This commit is contained in:
Charles7c 2024-01-06 18:45:56 +08:00
parent 16ee2b4b6f
commit e3e958b419
30 changed files with 175 additions and 175 deletions

View File

@ -39,7 +39,7 @@ public class DeptDO extends BaseDO {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 部门名称 * 名称
*/ */
private String name; private String name;
@ -59,7 +59,7 @@ public class DeptDO extends BaseDO {
private String description; private String description;
/** /**
* 部门排序 * 排序
*/ */
private Integer sort; private Integer sort;

View File

@ -38,12 +38,12 @@ public class DictDO extends BaseDO {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典名称 * 名称
*/ */
private String name; private String name;
/** /**
* 字典编码 * 编码
*/ */
private String code; private String code;

View File

@ -38,17 +38,17 @@ public class DictItemDO extends BaseDO {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典标签 * 标签
*/ */
private String label; private String label;
/** /**
* 字典 *
*/ */
private String value; private String value;
/** /**
* 背景颜色 * 标签颜色
*/ */
private String color; private String color;

View File

@ -40,7 +40,7 @@ public class MenuDO extends BaseDO {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 菜单标题 * 标题
*/ */
private String title; private String title;
@ -50,7 +50,7 @@ public class MenuDO extends BaseDO {
private Long parentId; private Long parentId;
/** /**
* 菜单类型 * 类型
*/ */
private MenuTypeEnum type; private MenuTypeEnum type;
@ -70,7 +70,7 @@ public class MenuDO extends BaseDO {
private String component; private String component;
/** /**
* 菜单图标 * 图标
*/ */
private String icon; private String icon;
@ -95,7 +95,7 @@ public class MenuDO extends BaseDO {
private String permission; private String permission;
/** /**
* 菜单排序 * 排序
*/ */
private Integer sort; private Integer sort;

View File

@ -41,23 +41,23 @@ public class OptionDO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 参数名称 * 名称
*/ */
private String name; private String name;
/** /**
* 参数 *
*/ */
@TableId @TableId
private String code; private String code;
/** /**
* 参数 *
*/ */
private String value; private String value;
/** /**
* 参数默认值 * 默认值
*/ */
private String defaultValue; private String defaultValue;

View File

@ -40,12 +40,12 @@ public class RoleDO extends BaseDO {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 角色名称 * 名称
*/ */
private String name; private String name;
/** /**
* 角色编码 * 编码
*/ */
private String code; private String code;
@ -60,7 +60,7 @@ public class RoleDO extends BaseDO {
private String description; private String description;
/** /**
* 角色排序 * 排序
*/ */
private Integer sort; private Integer sort;

View File

@ -40,9 +40,9 @@ public class DeptQuery implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 部门名称 * 名称
*/ */
@Schema(description = "部门名称", example = "测试部") @Schema(description = "名称", example = "测试部")
@Query(type = QueryType.INNER_LIKE) @Query(type = QueryType.INNER_LIKE)
private String name; private String name;

View File

@ -39,9 +39,9 @@ public class DictQuery implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典名称 * 名称
*/ */
@Schema(description = "字典名称") @Schema(description = "名称")
@Query(blurry = {"code", "name", "description"}) @Query(blurry = {"code", "name", "description"})
private String name; private String name;

View File

@ -40,9 +40,9 @@ public class MenuQuery implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 菜单标题 * 标题
*/ */
@Schema(description = "菜单标题", example = "用户管理") @Schema(description = "标题", example = "用户管理")
@Query(type = QueryType.INNER_LIKE) @Query(type = QueryType.INNER_LIKE)
private String title; private String title;

View File

@ -43,10 +43,10 @@ public class OptionQuery implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 参数键列表 * 键列表
*/ */
@Schema(description = "参数键列表", example = "site_title,site_copyright") @Schema(description = "键列表", example = "site_title,site_copyright")
@NotEmpty(message = "参数键不能为空") @NotEmpty(message = "键不能为空")
@Query(type = QueryType.IN) @Query(type = QueryType.IN)
private List<String> code; private List<String> code;
} }

View File

@ -39,9 +39,9 @@ public class RoleQuery implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 角色名称 * 名称
*/ */
@Schema(description = "角色名称", example = "测试人员") @Schema(description = "名称", example = "测试人员")
@Query(blurry = {"name", "code"}) @Query(blurry = {"name", "code"})
private String name; private String name;

View File

@ -55,18 +55,18 @@ public class DeptReq extends BaseReq {
private Long parentId; private Long parentId;
/** /**
* 部门名称 * 名称
*/ */
@Schema(description = "部门名称", example = "测试部") @Schema(description = "名称", example = "测试部")
@NotBlank(message = "部门名称不能为空") @NotBlank(message = "名称不能为空")
@Pattern(regexp = RegexConstants.GENERAL_NAME, message = "部门名称长度为 2 到 30 位,可以包含中文、字母、数字、下划线,短横线") @Pattern(regexp = RegexConstants.GENERAL_NAME, message = "名称长度为 2 到 30 位,可以包含中文、字母、数字、下划线,短横线")
private String name; private String name;
/** /**
* 部门排序 * 排序
*/ */
@Schema(description = "部门排序", example = "1") @Schema(description = "排序", example = "1")
@Min(value = 1, message = "部门排序最小值为 {value}") @Min(value = 1, message = "排序最小值为 {value}")
private Integer sort; private Integer sort;
/** /**

View File

@ -42,26 +42,26 @@ public class DictItemReq extends BaseReq {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典标签 * 标签
*/ */
@Schema(description = "字典标签", example = "通知") @Schema(description = "标签", example = "通知")
@NotBlank(message = "字典标签不能为空") @NotBlank(message = "标签不能为空")
@Length(max = 30, message = "字典标签长度不能超过 {max} 个字符") @Length(max = 30, message = "标签长度不能超过 {max} 个字符")
private String label; private String label;
/** /**
* 字典 *
*/ */
@Schema(description = "字典", example = "1") @Schema(description = "", example = "1")
@NotBlank(message = "字典值不能为空") @NotBlank(message = "值不能为空")
@Length(max = 30, message = "字典值长度不能超过 {max} 个字符") @Length(max = 30, message = "值长度不能超过 {max} 个字符")
private String value; private String value;
/** /**
* 背景颜色 * 标签颜色
*/ */
@Schema(description = "背景颜色", example = "blue") @Schema(description = "标签颜色", example = "blue")
@Length(max = 30, message = "背景颜色长度不能超过 {max} 个字符") @Length(max = 30, message = "标签颜色长度不能超过 {max} 个字符")
private String color; private String color;
/** /**

View File

@ -43,19 +43,19 @@ public class DictReq extends BaseReq {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典名称 * 名称
*/ */
@Schema(description = "字典名称", example = "公告类型") @Schema(description = "名称", example = "公告类型")
@NotBlank(message = "字典名称不能为空") @NotBlank(message = "名称不能为空")
@Pattern(regexp = RegexConstants.GENERAL_NAME, message = "字典名称长度为 2 到 30 位,可以包含中文、字母、数字、下划线,短横线") @Pattern(regexp = RegexConstants.GENERAL_NAME, message = "名称长度为 2 到 30 位,可以包含中文、字母、数字、下划线,短横线")
private String name; private String name;
/** /**
* 字典编码 * 编码
*/ */
@Schema(description = "字典编码", example = "announcement_type") @Schema(description = "编码", example = "announcement_type")
@NotBlank(message = "字典编码不能为空") @NotBlank(message = "编码不能为空")
@Pattern(regexp = RegexConstants.GENERAL_CODE, message = "字典编码长度为 2 到 30 位,可以包含字母、数字,下划线,以字母开头") @Pattern(regexp = RegexConstants.GENERAL_CODE, message = "编码长度为 2 到 30 位,可以包含字母、数字,下划线,以字母开头")
private String code; private String code;
/** /**

View File

@ -46,33 +46,33 @@ public class MenuReq extends BaseReq {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 菜单类型 * 类型
*/ */
@Schema(description = "菜单类型1目录2菜单3按钮", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2") @Schema(description = "类型1目录2菜单3按钮", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2")
@NotNull(message = "菜单类型非法") @NotNull(message = "类型非法")
private MenuTypeEnum type; private MenuTypeEnum type;
/** /**
* 菜单图标 * 图标
*/ */
@Schema(description = "菜单图标", example = "user") @Schema(description = "图标", example = "user")
@Length(max = 50, message = "菜单图标长度不能超过 {max} 个字符") @Length(max = 50, message = "图标长度不能超过 {max} 个字符")
private String icon; private String icon;
/** /**
* 菜单标题 * 标题
*/ */
@Schema(description = "菜单标题", example = "用户管理") @Schema(description = "标题", example = "用户管理")
@NotBlank(message = "菜单标题不能为空") @NotBlank(message = "标题不能为空")
@Length(max = 30, message = "菜单标题长度不能超过 {max} 个字符") @Length(max = 30, message = "标题长度不能超过 {max} 个字符")
private String title; private String title;
/** /**
* 菜单排序 * 排序
*/ */
@Schema(description = "菜单排序", example = "1") @Schema(description = "排序", example = "1")
@NotNull(message = "菜单排序不能为空") @NotNull(message = "排序不能为空")
@Min(value = 1, message = "菜单排序最小值为 {value}") @Min(value = 1, message = "排序最小值为 {value}")
private Integer sort; private Integer sort;
/** /**

View File

@ -42,17 +42,17 @@ public class OptionReq extends BaseReq {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 参数 *
*/ */
@Schema(description = "参数", example = "site_title") @Schema(description = "", example = "site_title")
@NotBlank(message = "参数键不能为空") @NotBlank(message = "键不能为空")
@Length(max = 100, message = "参数键长度不能超过 {max} 个字符") @Length(max = 100, message = "键长度不能超过 {max} 个字符")
private String code; private String code;
/** /**
* 参数 *
*/ */
@Schema(description = "参数", example = "ContiNew Admin") @Schema(description = "", example = "ContiNew Admin")
@NotBlank(message = "参数值不能为空") @NotBlank(message = "值不能为空")
private String value; private String value;
} }

View File

@ -40,9 +40,9 @@ public class OptionResetValueReq implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 参数键列表 * 键列表
*/ */
@Schema(description = "参数键列表", example = "site_title,site_copyright") @Schema(description = "键列表", example = "site_title,site_copyright")
@NotEmpty(message = "参数键不能为空") @NotEmpty(message = "键不能为空")
private List<String> code; private List<String> code;
} }

View File

@ -49,26 +49,26 @@ public class RoleReq extends BaseReq {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 角色名称 * 名称
*/ */
@Schema(description = "角色名称", example = "测试人员") @Schema(description = "名称", example = "测试人员")
@NotBlank(message = "角色名称不能为空") @NotBlank(message = "名称不能为空")
@Pattern(regexp = RegexConstants.GENERAL_NAME, message = "角色名称长度为 2 到 30 位,可以包含中文、字母、数字、下划线,短横线") @Pattern(regexp = RegexConstants.GENERAL_NAME, message = "名称长度为 2 到 30 位,可以包含中文、字母、数字、下划线,短横线")
private String name; private String name;
/** /**
* 角色编码 * 编码
*/ */
@Schema(description = "角色编码", example = "test") @Schema(description = "编码", example = "test")
@NotBlank(message = "角色编码不能为空") @NotBlank(message = "编码不能为空")
@Pattern(regexp = RegexConstants.GENERAL_CODE, message = "角色编码长度为 2 到 30 位,可以包含字母、数字,下划线,以字母开头") @Pattern(regexp = RegexConstants.GENERAL_CODE, message = "编码长度为 2 到 30 位,可以包含字母、数字,下划线,以字母开头")
private String code; private String code;
/** /**
* 角色排序 * 排序
*/ */
@Schema(description = "角色排序", example = "1") @Schema(description = "排序", example = "1")
@Min(value = 1, message = "角色排序最小值为 {value}") @Min(value = 1, message = "排序最小值为 {value}")
private Integer sort; private Integer sort;
/** /**

View File

@ -45,10 +45,10 @@ public class DeptDetailResp extends BaseDetailResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 部门名称 * 名称
*/ */
@Schema(description = "部门名称", example = "测试部") @Schema(description = "名称", example = "测试部")
@ExcelProperty(value = "部门名称") @ExcelProperty(value = "名称")
private String name; private String name;
/** /**
@ -66,9 +66,9 @@ public class DeptDetailResp extends BaseDetailResp {
private String parentName; private String parentName;
/** /**
* 部门排序 * 排序
*/ */
@Schema(description = "部门排序", example = "1") @Schema(description = "排序", example = "1")
private Integer sort; private Integer sort;
/** /**

View File

@ -41,9 +41,9 @@ public class DeptResp extends BaseResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 部门名称 * 名称
*/ */
@Schema(description = "部门名称", example = "测试部") @Schema(description = "名称", example = "测试部")
private String name; private String name;
/** /**
@ -53,9 +53,9 @@ public class DeptResp extends BaseResp {
private Long parentId; private Long parentId;
/** /**
* 部门排序 * 排序
*/ */
@Schema(description = "部门排序", example = "3") @Schema(description = "排序", example = "3")
private Integer sort; private Integer sort;
/** /**

View File

@ -38,15 +38,15 @@ public class DictDetailResp extends BaseDetailResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典名称 * 名称
*/ */
@Schema(description = "字典名称", example = "公告类型") @Schema(description = "名称", example = "公告类型")
private String name; private String name;
/** /**
* 字典编码 * 编码
*/ */
@Schema(description = "字典编码", example = "announcement_type") @Schema(description = "编码", example = "announcement_type")
private String code; private String code;
/** /**

View File

@ -42,24 +42,24 @@ public class DictItemDetailResp extends BaseDetailResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典标签 * 标签
*/ */
@Schema(description = "字典标签", example = "通知") @Schema(description = "标签", example = "通知")
@ExcelProperty(value = "字典标签", order = 2) @ExcelProperty(value = "标签", order = 2)
private String label; private String label;
/** /**
* 字典 *
*/ */
@Schema(description = "字典", example = "1") @Schema(description = "", example = "1")
@ExcelProperty(value = "字典", order = 3) @ExcelProperty(value = "", order = 3)
private String value; private String value;
/** /**
* 背景颜色 * 标签颜色
*/ */
@Schema(description = "背景颜色", example = "blue") @Schema(description = "标签颜色", example = "blue")
@ExcelProperty(value = "背景颜色", order = 4) @ExcelProperty(value = "标签颜色", order = 4)
private String color; private String color;
/** /**

View File

@ -38,21 +38,21 @@ public class DictItemResp extends BaseResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典标签 * 标签
*/ */
@Schema(description = "字典标签", example = "通知") @Schema(description = "标签", example = "通知")
private String label; private String label;
/** /**
* 字典 *
*/ */
@Schema(description = "字典", example = "1") @Schema(description = "", example = "1")
private String value; private String value;
/** /**
* 背景颜色 * 标签颜色
*/ */
@Schema(description = "背景颜色", example = "blue") @Schema(description = "标签颜色", example = "blue")
private String color; private String color;
/** /**

View File

@ -38,15 +38,15 @@ public class DictResp extends BaseResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 字典名称 * 名称
*/ */
@Schema(description = "字典名称", example = "公告类型") @Schema(description = "名称", example = "公告类型")
private String name; private String name;
/** /**
* 字典编码 * 编码
*/ */
@Schema(description = "字典编码", example = "announcement_type") @Schema(description = "编码", example = "announcement_type")
private String code; private String code;
/** /**

View File

@ -47,24 +47,24 @@ public class MenuResp extends BaseResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 菜单标题 * 标题
*/ */
@Schema(description = "菜单标题", example = "用户管理") @Schema(description = "标题", example = "用户管理")
@ExcelProperty(value = "菜单标题") @ExcelProperty(value = "标题")
private String title; private String title;
/** /**
* 菜单图标 * 图标
*/ */
@Schema(description = "菜单图标", example = "user") @Schema(description = "图标", example = "user")
@ExcelProperty(value = "菜单图标") @ExcelProperty(value = "图标")
private String icon; private String icon;
/** /**
* 菜单排序 * 排序
*/ */
@Schema(description = "菜单排序", example = "1") @Schema(description = "排序", example = "1")
@ExcelProperty(value = "菜单排序") @ExcelProperty(value = "排序")
private Integer sort; private Integer sort;
/** /**
@ -124,10 +124,10 @@ public class MenuResp extends BaseResp {
private String name; private String name;
/** /**
* 菜单类型 * 类型
*/ */
@Schema(description = "菜单类型1目录2菜单3按钮", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2") @Schema(description = "类型1目录2菜单3按钮", type = "Integer", allowableValues = {"1", "2", "3"}, example = "2")
@ExcelProperty(value = "菜单类型", converter = ExcelBaseEnumConverter.class) @ExcelProperty(value = "类型", converter = ExcelBaseEnumConverter.class)
private MenuTypeEnum type; private MenuTypeEnum type;
/** /**

View File

@ -41,25 +41,25 @@ public class OptionResp implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 参数名称 * 名称
*/ */
@Schema(description = "参数名称", example = "系统标题") @Schema(description = "名称", example = "系统标题")
private String name; private String name;
/** /**
* 参数 *
*/ */
@Schema(description = "参数", example = "site_title") @Schema(description = "", example = "site_title")
private String code; private String code;
/** /**
* 参数 *
*/ */
@Schema(description = "参数", example = "ContiNew Admin") @Schema(description = "", example = "ContiNew Admin")
private String value; private String value;
/** /**
* 参数默认值 * 默认值
*/ */
@JsonIgnore @JsonIgnore
private String defaultValue; private String defaultValue;

View File

@ -46,17 +46,17 @@ public class RoleDetailResp extends BaseDetailResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 角色名称 * 名称
*/ */
@Schema(description = "角色名称", example = "测试人员") @Schema(description = "名称", example = "测试人员")
@ExcelProperty(value = "角色名称") @ExcelProperty(value = "名称")
private String name; private String name;
/** /**
* 角色编码 * 编码
*/ */
@Schema(description = "角色编码", example = "test") @Schema(description = "编码", example = "test")
@ExcelProperty(value = "角色编码") @ExcelProperty(value = "编码")
private String code; private String code;
/** /**
@ -68,10 +68,10 @@ public class RoleDetailResp extends BaseDetailResp {
private DataScopeEnum dataScope; private DataScopeEnum dataScope;
/** /**
* 角色排序 * 排序
*/ */
@Schema(description = "角色排序", example = "1") @Schema(description = "排序", example = "1")
@ExcelProperty(value = "角色排序") @ExcelProperty(value = "排序")
private Integer sort; private Integer sort;
/** /**

View File

@ -40,15 +40,15 @@ public class RoleResp extends BaseResp {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 角色名称 * 名称
*/ */
@Schema(description = "角色名称", example = "测试人员") @Schema(description = "名称", example = "测试人员")
private String name; private String name;
/** /**
* 角色编码 * 编码
*/ */
@Schema(description = "角色编码", example = "test") @Schema(description = "编码", example = "test")
private String code; private String code;
/** /**
@ -59,9 +59,9 @@ public class RoleResp extends BaseResp {
private DataScopeEnum dataScope; private DataScopeEnum dataScope;
/** /**
* 角色排序 * 排序
*/ */
@Schema(description = "角色排序", example = "1") @Schema(description = "排序", example = "1")
private Integer sort; private Integer sort;
/** /**

View File

@ -3,18 +3,18 @@
-- changeset Charles7c:1 -- changeset Charles7c:1
CREATE TABLE IF NOT EXISTS `sys_menu` ( CREATE TABLE IF NOT EXISTS `sys_menu` (
`id` bigint(20) AUTO_INCREMENT COMMENT 'ID', `id` bigint(20) AUTO_INCREMENT COMMENT 'ID',
`title` varchar(30) NOT NULL COMMENT '菜单标题', `title` varchar(30) NOT NULL COMMENT '标题',
`parent_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '上级菜单ID', `parent_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '上级菜单ID',
`type` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '菜单类型1目录2菜单3按钮', `type` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '类型1目录2菜单3按钮',
`path` varchar(255) DEFAULT NULL COMMENT '路由地址', `path` varchar(255) DEFAULT NULL COMMENT '路由地址',
`name` varchar(50) DEFAULT NULL COMMENT '组件名称', `name` varchar(50) DEFAULT NULL COMMENT '组件名称',
`component` varchar(255) DEFAULT NULL COMMENT '组件路径', `component` varchar(255) DEFAULT NULL COMMENT '组件路径',
`icon` varchar(50) DEFAULT NULL COMMENT '菜单图标', `icon` varchar(50) DEFAULT NULL COMMENT '图标',
`is_external` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否外链', `is_external` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否外链',
`is_cache` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否缓存', `is_cache` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否缓存',
`is_hidden` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否隐藏', `is_hidden` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否隐藏',
`permission` varchar(100) DEFAULT NULL COMMENT '权限标识', `permission` varchar(100) DEFAULT NULL COMMENT '权限标识',
`sort` int NOT NULL DEFAULT 999 COMMENT '菜单排序', `sort` int NOT NULL DEFAULT 999 COMMENT '排序',
`status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态1启用2禁用', `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态1启用2禁用',
`create_user` bigint(20) NOT NULL COMMENT '创建人', `create_user` bigint(20) NOT NULL COMMENT '创建人',
`create_time` datetime NOT NULL COMMENT '创建时间', `create_time` datetime NOT NULL COMMENT '创建时间',
@ -29,11 +29,11 @@ CREATE TABLE IF NOT EXISTS `sys_menu` (
CREATE TABLE IF NOT EXISTS `sys_dept` ( CREATE TABLE IF NOT EXISTS `sys_dept` (
`id` bigint(20) AUTO_INCREMENT COMMENT 'ID', `id` bigint(20) AUTO_INCREMENT COMMENT 'ID',
`name` varchar(30) NOT NULL COMMENT '部门名称', `name` varchar(30) NOT NULL COMMENT '名称',
`parent_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '上级部门ID', `parent_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '上级部门ID',
`ancestors` varchar(512) NOT NULL DEFAULT '' COMMENT '祖级列表', `ancestors` varchar(512) NOT NULL DEFAULT '' COMMENT '祖级列表',
`description` varchar(200) DEFAULT NULL COMMENT '描述', `description` varchar(200) DEFAULT NULL COMMENT '描述',
`sort` int NOT NULL DEFAULT 999 COMMENT '部门排序', `sort` int NOT NULL DEFAULT 999 COMMENT '排序',
`status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态1启用2禁用', `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态1启用2禁用',
`is_system` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否为系统内置数据', `is_system` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否为系统内置数据',
`create_user` bigint(20) NOT NULL COMMENT '创建人', `create_user` bigint(20) NOT NULL COMMENT '创建人',
@ -49,11 +49,11 @@ CREATE TABLE IF NOT EXISTS `sys_dept` (
CREATE TABLE IF NOT EXISTS `sys_role` ( CREATE TABLE IF NOT EXISTS `sys_role` (
`id` bigint(20) AUTO_INCREMENT COMMENT 'ID', `id` bigint(20) AUTO_INCREMENT COMMENT 'ID',
`name` varchar(30) NOT NULL COMMENT '角色名称', `name` varchar(30) NOT NULL COMMENT '名称',
`code` varchar(30) NOT NULL COMMENT '角色编码', `code` varchar(30) NOT NULL COMMENT '编码',
`data_scope` tinyint(1) NOT NULL DEFAULT 4 COMMENT '数据权限1全部数据权限2本部门及以下数据权限3本部门数据权限4仅本人数据权限5自定义数据权限', `data_scope` tinyint(1) NOT NULL DEFAULT 4 COMMENT '数据权限1全部数据权限2本部门及以下数据权限3本部门数据权限4仅本人数据权限5自定义数据权限',
`description` varchar(200) DEFAULT NULL COMMENT '描述', `description` varchar(200) DEFAULT NULL COMMENT '描述',
`sort` int NOT NULL DEFAULT 999 COMMENT '角色排序', `sort` int NOT NULL DEFAULT 999 COMMENT '排序',
`status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态1启用2禁用', `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态1启用2禁用',
`is_system` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否为系统内置数据', `is_system` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否为系统内置数据',
`create_user` bigint(20) NOT NULL COMMENT '创建人', `create_user` bigint(20) NOT NULL COMMENT '创建人',

View File

@ -3,8 +3,8 @@
-- changeset Charles7c:1 -- changeset Charles7c:1
CREATE TABLE IF NOT EXISTS `sys_dict` ( CREATE TABLE IF NOT EXISTS `sys_dict` (
`id` bigint(20) AUTO_INCREMENT COMMENT 'ID', `id` bigint(20) AUTO_INCREMENT COMMENT 'ID',
`name` varchar(30) NOT NULL COMMENT '字典名称', `name` varchar(30) NOT NULL COMMENT '名称',
`code` varchar(30) NOT NULL COMMENT '字典编码', `code` varchar(30) NOT NULL COMMENT '编码',
`description` varchar(200) DEFAULT NULL COMMENT '描述', `description` varchar(200) DEFAULT NULL COMMENT '描述',
`is_system` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否为系统内置数据', `is_system` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否为系统内置数据',
`create_user` bigint(20) NOT NULL COMMENT '创建人', `create_user` bigint(20) NOT NULL COMMENT '创建人',
@ -18,10 +18,10 @@ CREATE TABLE IF NOT EXISTS `sys_dict` (
CREATE TABLE IF NOT EXISTS `sys_dict_item` ( CREATE TABLE IF NOT EXISTS `sys_dict_item` (
`id` bigint(20) AUTO_INCREMENT COMMENT 'ID', `id` bigint(20) AUTO_INCREMENT COMMENT 'ID',
`label` varchar(30) NOT NULL COMMENT '字典标签', `label` varchar(30) NOT NULL COMMENT '标签',
`value` varchar(30) NOT NULL COMMENT '字典', `value` varchar(30) NOT NULL COMMENT '',
`color` varchar(30) DEFAULT NULL COMMENT '背景颜色', `color` varchar(30) DEFAULT NULL COMMENT '标签颜色',
`sort` int NOT NULL DEFAULT 999 COMMENT '字典项排序', `sort` int NOT NULL DEFAULT 999 COMMENT '排序',
`description` varchar(200) DEFAULT NULL COMMENT '描述', `description` varchar(200) DEFAULT NULL COMMENT '描述',
`dict_id` bigint(20) NOT NULL COMMENT '字典ID', `dict_id` bigint(20) NOT NULL COMMENT '字典ID',
`create_user` bigint(20) NOT NULL COMMENT '创建人', `create_user` bigint(20) NOT NULL COMMENT '创建人',
@ -36,10 +36,10 @@ CREATE TABLE IF NOT EXISTS `sys_dict_item` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='字典项表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='字典项表';
CREATE TABLE IF NOT EXISTS `sys_option` ( CREATE TABLE IF NOT EXISTS `sys_option` (
`name` varchar(50) NOT NULL COMMENT '参数名称', `name` varchar(50) NOT NULL COMMENT '名称',
`code` varchar(100) NOT NULL COMMENT '参数', `code` varchar(100) NOT NULL COMMENT '',
`value` text DEFAULT NULL COMMENT '参数', `value` text DEFAULT NULL COMMENT '',
`default_value` text DEFAULT NULL COMMENT '参数默认值', `default_value` text DEFAULT NULL COMMENT '默认值',
`description` varchar(200) DEFAULT NULL COMMENT '描述', `description` varchar(200) DEFAULT NULL COMMENT '描述',
`update_user` bigint(20) DEFAULT NULL COMMENT '修改人', `update_user` bigint(20) DEFAULT NULL COMMENT '修改人',
`update_time` datetime DEFAULT NULL COMMENT '修改时间', `update_time` datetime DEFAULT NULL COMMENT '修改时间',