Skip to content

Commit eb053d0

Browse files
committed
FIx the dict plugin sql
1 parent 4aad578 commit eb053d0

File tree

5 files changed

+151
-120
lines changed

5 files changed

+151
-120
lines changed

backend/plugin/dict/schema/dict_type.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from pydantic import ConfigDict, Field
66

7-
from backend.common.enums import StatusType
87
from backend.common.schema import SchemaBase
98

109

backend/plugin/dict/sql/mysql/init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ values
3535
(18, 'sys_data_rule_expression', '小于(<)', '4', 'gold', 5, 1, '小于比较表达式', 6, now(), null),
3636
(19, 'sys_data_rule_expression', '小于等于(<=)', '5', 'orange', 6, 1, '小于等于比较表达式', 6, now(), null),
3737
(20, 'sys_data_rule_expression', '包含(in)', '6', 'purple', 7, 1, '包含表达式', 6, now(), null),
38-
(21, 'sys_data_rule_expression', '不包含(not in)', '7', 'magenta', 8, 1, '不包含表达式', 6, now(), null),
38+
(21, 'sys_data_rule_expression', '不包含(not in)', '7', 'error', 8, 1, '不包含表达式', 6, now(), null),
3939
(22, 'sys_frontend_config', '', '0', 'red', 1, 1, '不是前端参数配置', 7, now(), null),
4040
(23, 'sys_frontend_config', '', '1', 'green', 2, 1, '是前端参数配置', 7, now(), null),
4141
(24, 'task_strategy_type', 'Interval(间隔)', '0', 'cyan', 1, 1, '时间间隔策略', 8, now(), null),
Lines changed: 50 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,53 @@
1-
insert into sys_dict_type (id, name, code, status, remark, created_time, updated_time)
1+
insert into sys_dict_type (id, name, code, remark, created_time, updated_time)
22
values
3-
(2048602512340156416, '通用状态', 'sys_status', 1, '系统通用状态:启用/停用', now(), null),
4-
(2048602512369516544, '菜单类型', 'sys_menu_type', 1, '系统菜单类型', now(), null),
5-
(2048602512432431104, '登录日志状态', 'sys_login_status', 1, '用户登录日志状态', now(), null),
6-
(2048602512495345664, '数据规则运算符', 'sys_data_rule_operator', 1, '数据权限规则运算符', now(), null),
7-
(2048602512549871616, '数据规则表达式', 'sys_data_rule_expression', 1, '数据权限规则表达式', now(), null),
8-
(2048602512616980480, '前端参数配置', 'sys_frontend_config', 1, '前端参数配置类型', now(), null),
9-
(2048602512692477952, '过滤数据权限', 'sys_data_permission', 1, '数据权限过滤类型', now(), null),
10-
(2048602512755392512, '菜单显示', 'sys_menu_display', 1, '菜单是否显示', now(), null),
11-
(2048602512818307072, '菜单缓存', 'sys_menu_cache', 1, '菜单是否缓存', now(), null);
3+
(2048602512340156416, '通用状态', 'sys_status', '系统通用状态:1/0', now(), null),
4+
(2048602512369516544, '通用开关', 'sys_choose', '系统通用开关:true/false', now(), null),
5+
(2048602512432431104, '菜单类型', 'sys_menu_type', '系统菜单类型', now(), null),
6+
(2048602512495345664, '登录状态', 'sys_login_status', '用户登录状态', now(), null),
7+
(2048602512549871616, '数据规则运算符', 'sys_data_rule_operator', '数据权限规则运算符', now(), null),
8+
(2048602512616980480, '数据规则表达式', 'sys_data_rule_expression', '数据权限规则表达式', now(), null),
9+
(2048602512692477952, '前端参数配置', 'sys_frontend_config', '前端参数配置类型', now(), null),
10+
(2048602512755392512, '任务策略类型', 'task_strategy_type', '定时任务策略类型', now(), null),
11+
(2048602512818307072, '任务周期类型', 'task_period_type', '定时任务周期类型', now(), null),
12+
(2048602512881221632, '通知公告', 'notice', '通知类型', now(), null),
13+
(2048602512948330496, '在线状态', 'user_online_status', '用户在线状态', now(), null),
14+
(2048602513015439360, '插件类型', 'sys_plugin_type', '插件类型', now(), null);
1215

13-
insert into sys_dict_data (id, type_code, label, value, sort, status, remark, type_id, created_time, updated_time)
16+
insert into sys_dict_data (id, type_code, label, value, color, sort, status, remark, type_id, created_time, updated_time)
1417
values
15-
(2048602512881221632, 'sys_status', '停用', '0', 1, 1, '系统停用状态', 2048602512340156416, now(), null),
16-
(2048602512948330496, 'sys_status', '正常', '1', 2, 1, '系统正常状态', 2048602512340156416, now(), null),
17-
(2048602513015439360, 'sys_menu_type', '目录', '0', 1, 1, '菜单目录类型', 2048602512369516544, now(), null),
18-
(2048602513078353920, 'sys_menu_type', '菜单', '1', 2, 1, '普通菜单类型', 2048602512369516544, now(), null),
19-
(2048602513128685568, 'sys_menu_type', '按钮', '2', 3, 1, '按钮权限类型', 2048602512369516544, now(), null),
20-
(2048602513174822912, 'sys_menu_type', '内嵌', '3', 4, 1, '内嵌页面类型', 2048602512369516544, now(), null),
21-
(2048602513241931776, 'sys_menu_type', '外链', '4', 5, 1, '外部链接类型', 2048602512369516544, now(), null),
22-
(2048602513292263424, 'sys_login_status', '失败', '0', 1, 1, '登录失败状态', 2048602512432431104, now(), null),
23-
(2048602513359372288, 'sys_login_status', '成功', '1', 2, 1, '登录成功状态', 2048602512432431104, now(), null),
24-
(2048602513422286848, 'sys_data_rule_operator', 'AND', '0', 1, 1, '逻辑与运算符', 2048602512495345664, now(), null),
25-
(2048602513476812800, 'sys_data_rule_operator', 'OR', '1', 2, 1, '逻辑或运算符', 2048602512495345664, now(), null),
26-
(2048602513543921664, 'sys_data_rule_expression', '等于(==)', '0', 1, 1, '等于比较表达式', 2048602512549871616, now(), null),
27-
(2048602513590059008, 'sys_data_rule_expression', '不等于(!=)', '1', 2, 1, '不等于比较表达式', 2048602512549871616, now(), null),
28-
(2048602513657167872, 'sys_data_rule_expression', '大于(>)', '2', 3, 1, '大于比较表达式', 2048602512549871616, now(), null),
29-
(2048602513720082432, 'sys_data_rule_expression', '大于等于(>=)', '3', 4, 1, '大于等于比较表达式', 2048602512549871616, now(), null),
30-
(2048602513782996992, 'sys_data_rule_expression', '小于(<)', '4', 5, 1, '小于比较表达式', 2048602512549871616, now(), null),
31-
(2048602513850105856, 'sys_data_rule_expression', '小于等于(<=)', '5', 6, 1, '小于等于比较表达式', 2048602512549871616, now(), null),
32-
(2048602513917214720, 'sys_data_rule_expression', '包含(in)', '6', 7, 1, '包含表达式', 2048602512549871616, now(), null),
33-
(2048602513984323584, 'sys_data_rule_expression', '不包含(not in)', '7', 8, 1, '不包含表达式', 2048602512549871616, now(), null),
34-
(2048602514051432448, 'sys_frontend_config', '', '0', 1, 1, '不是前端参数配置', 2048602512616980480, now(), null),
35-
(2048602514118541312, 'sys_frontend_config', '', '1', 2, 1, '是前端参数配置', 2048602512616980480, now(), null),
36-
(2048602514168872960, 'sys_data_permission', '', '0', 1, 1, '不进行数据权限过滤', 2048602512692477952, now(), null),
37-
(2048602514231787520, 'sys_data_permission', '', '1', 2, 1, '进行数据权限过滤', 2048602512692477952, now(), null),
38-
(2048602514303090688, 'sys_menu_display', '隐藏', '0', 1, 1, '菜单隐藏', 2048602512755392512, now(), null),
39-
(2048602514366005248, 'sys_menu_display', '显示', '1', 2, 1, '菜单显示', 2048602512755392512, now(), null),
40-
(2048602514433114112, 'sys_menu_cache', '不缓存', '0', 1, 1, '菜单不缓存', 2048602512818307072, now(), null),
41-
(2048602514500222976, 'sys_menu_cache', '缓存', '1', 2, 1, '菜单缓存', 2048602512818307072, now(), null);
18+
(2048602513078353920, 'sys_status', '停用', '0', 'red', 1, 1, '停用状态', 2048602512340156416, now(), null),
19+
(2048602513128685568, 'sys_status', '正常', '1', 'green', 2, 1, '正常状态', 2048602512340156416, now(), null),
20+
(2048602513174822912, 'sys_choose', '关闭', 'false', 'error', 1, 1, '关闭状态', 2048602512369516544, now(), null),
21+
(2048602513241931776, 'sys_choose', '开启', 'true', 'success', 2, 1, '开启状态', 2048602512369516544, now(), null),
22+
(2048602513292263424, 'sys_menu_type', '目录', '0', 'orange', 1, 1, '菜单目录', 2048602512432431104, now(), null),
23+
(2048602513359372288, 'sys_menu_type', '菜单', '1', 'default', 2, 1, '普通菜单', 2048602512432431104, now(), null),
24+
(2048602513422286848, 'sys_menu_type', '按钮', '2', 'processing', 3, 1, '菜单按钮', 2048602512432431104, now(), null),
25+
(2048602513476812800, 'sys_menu_type', '内嵌', '3', 'cyan', 4, 1, '内嵌页面', 2048602512432431104, now(), null),
26+
(2048602513543921664, 'sys_menu_type', '外链', '4', 'purple', 5, 1, '外部链接', 2048602512432431104, now(), null),
27+
(2048602513590059008, 'sys_login_status', '失败', '0', 'error', 1, 1, '登录失败状态', 2048602512495345664, now(), null),
28+
(2048602513657167872, 'sys_login_status', '成功', '1', 'success', 2, 1, '登录成功状态', 2048602512495345664, now(), null),
29+
(2048602513720082432, 'sys_data_rule_operator', 'AND', '0', 'green', 1, 1, '逻辑 AND 运算符', 2048602512549871616, now(), null),
30+
(2048602513782996992, 'sys_data_rule_operator', 'OR', '1', 'gold', 2, 1, '逻辑 OR 运算符', 2048602512549871616, now(), null),
31+
(2048602513850105856, 'sys_data_rule_expression', '等于(==)', '0', 'success', 1, 1, '等于比较表达式', 2048602512616980480, now(), null),
32+
(2048602513917214720, 'sys_data_rule_expression', '不等于(!=)', '1', 'error', 2, 1, '不等于比较表达式', 2048602512616980480, now(), null),
33+
(2048602513984323584, 'sys_data_rule_expression', '大于(>)', '2', 'magenta', 3, 1, '大于比较表达式', 2048602512616980480, now(), null),
34+
(2048602514051432448, 'sys_data_rule_expression', '大于等于(>=)', '3', 'volcano', 4, 1, '大于等于比较表达式', 2048602512616980480, now(), null),
35+
(2048602514118541312, 'sys_data_rule_expression', '小于(<)', '4', 'gold', 5, 1, '小于比较表达式', 2048602512616980480, now(), null),
36+
(2048602514168872960, 'sys_data_rule_expression', '小于等于(<=)', '5', 'orange', 6, 1, '小于等于比较表达式', 2048602512616980480, now(), null),
37+
(2048602514231787520, 'sys_data_rule_expression', '包含(in)', '6', 'purple', 7, 1, '包含表达式', 2048602512616980480, now(), null),
38+
(2048602514303090688, 'sys_data_rule_expression', '不包含(not in)', '7', 'error', 8, 1, '不包含表达式', 2048602512616980480, now(), null),
39+
(2048602514366005248, 'sys_frontend_config', '', '0', 'red', 1, 1, '不是前端参数配置', 2048602512692477952, now(), null),
40+
(2048602514433114112, 'sys_frontend_config', '', '1', 'green', 2, 1, '是前端参数配置', 2048602512692477952, now(), null),
41+
(2048602514500222976, 'task_strategy_type', 'Interval(间隔)', '0', 'cyan', 1, 1, '时间间隔策略', 2048602512755392512, now(), null),
42+
(2048602514567331840, 'task_strategy_type', 'Crontab(计划)', '1', 'purple', 2, 1, '时间表达式策略', 2048602512755392512, now(), null),
43+
(2048602514634440704, 'task_period_type', '', 'days', 'processing', 1, 1, '定时任务周期类型-天', 2048602512818307072, now(), null),
44+
(2048602514701549568, 'task_period_type', '小时', 'hours', 'magenta', 2, 1, '定时任务周期类型-小时', 2048602512818307072, now(), null),
45+
(2048602514768658432, 'task_period_type', '分钟', 'minutes', 'volcano', 3, 1, '定时任务周期类型-分钟', 2048602512818307072, now(), null),
46+
(2048602514835767296, 'task_period_type', '', 'seconds', 'gold', 4, 1, '定时任务周期类型-秒', 2048602512818307072, now(), null),
47+
(2048602514902876160, 'task_period_type', '微妙', 'microseconds', 'warning', 5, 1, '定时任务周期类型-微妙', 2048602512818307072, now(), null),
48+
(2048602514969985024, 'notice', '通知', '0', 'magenta', 1, 1, '通知类型', 2048602512881221632, now(), null),
49+
(2048602515037093888, 'notice', '公告', '1', 'purple', 2, 1, '公告类型', 2048602512881221632, now(), null),
50+
(2048602515104202752, 'user_online_status', '离线', '0', 'warning', 1, 1, '用户离线状态', 2048602512948330496, now(), null),
51+
(2048602515171311616, 'user_online_status', '在线', '1', 'success', 2, 1, '用户在线状态', 2048602512948330496, now(), null),
52+
(2048602515238420480, 'sys_plugin_type', '压缩包', '0', 'gold', 1, 1, '插件类型-压缩包', 2048602513015439360, now(), null),
53+
(2048602515305529344, 'sys_plugin_type', 'GIT', '1', 'processing', 2, 1, '插件类型-GIT', 2048602513015439360, now(), null);

0 commit comments

Comments
 (0)