Commit fd53bf329642a4322400ad48f07ccc3651545532
1 parent
16c25904
多模块重构 4:system 模块的调整,解决单元测试报错的问题
Showing
177 changed files
with
1447 additions
and
1525 deletions
Too many changes.
To preserve performance only 100 of 177 files are displayed.
yudao-admin-server/src/main/resources/application.yaml
| @@ -75,7 +75,7 @@ yudao: | @@ -75,7 +75,7 @@ yudao: | ||
| 75 | error-code: # 错误码相关配置项 | 75 | error-code: # 错误码相关配置项 |
| 76 | constants-class-list: | 76 | constants-class-list: |
| 77 | - cn.iocoder.yudao.adminserver.modules.infra.enums.InfErrorCodeConstants | 77 | - cn.iocoder.yudao.adminserver.modules.infra.enums.InfErrorCodeConstants |
| 78 | - - cn.iocoder.yudao.module.system.enums.SysErrorCodeConstants | 78 | + - cn.iocoder.yudao.module.system.enums.ErrorCodeConstants |
| 79 | - cn.iocoder.yudao.adminserver.modules.bpm.enums.BpmErrorCodeConstants | 79 | - cn.iocoder.yudao.adminserver.modules.bpm.enums.BpmErrorCodeConstants |
| 80 | tenant: # 多租户相关配置项 | 80 | tenant: # 多租户相关配置项 |
| 81 | tables: # 配置需要开启多租户的表;如果实体已经继承 TenantBaseDO 类,则无需重复配置 | 81 | tables: # 配置需要开启多租户的表;如果实体已经继承 TenantBaseDO 类,则无需重复配置 |
yudao-admin-server/src/test/resources/sql/clean.sql
| @@ -6,26 +6,6 @@ DELETE FROM "inf_job_log"; | @@ -6,26 +6,6 @@ DELETE FROM "inf_job_log"; | ||
| 6 | DELETE FROM "inf_api_access_log"; | 6 | DELETE FROM "inf_api_access_log"; |
| 7 | DELETE FROM "inf_api_error_log"; | 7 | DELETE FROM "inf_api_error_log"; |
| 8 | 8 | ||
| 9 | --- sys 开头的 DB | ||
| 10 | -DELETE FROM "sys_dept"; | ||
| 11 | -DELETE FROM "sys_dict_data"; | ||
| 12 | -DELETE FROM "sys_role"; | ||
| 13 | -DELETE FROM "sys_role_menu"; | ||
| 14 | -DELETE FROM "sys_menu"; | ||
| 15 | -DELETE FROM "sys_user_role"; | ||
| 16 | -DELETE FROM "sys_dict_type"; | ||
| 17 | -DELETE FROM "sys_user_session"; | ||
| 18 | -DELETE FROM "sys_post"; | ||
| 19 | -DELETE FROM "sys_login_log"; | ||
| 20 | -DELETE FROM "sys_operate_log"; | ||
| 21 | -DELETE FROM "sys_user"; | ||
| 22 | -DELETE FROM "sys_sms_channel"; | ||
| 23 | -DELETE FROM "sys_sms_template"; | ||
| 24 | -DELETE FROM "sys_sms_log"; | ||
| 25 | -DELETE FROM "sys_error_code"; | ||
| 26 | -DELETE FROM "sys_social_user"; | ||
| 27 | -DELETE FROM "sys_tenant"; | ||
| 28 | - | ||
| 29 | -- pay 开头的 DB | 9 | -- pay 开头的 DB |
| 30 | DELETE FROM pay_merchant; | 10 | DELETE FROM pay_merchant; |
| 31 | DELETE FROM pay_app; | 11 | DELETE FROM pay_app; |
yudao-admin-server/src/test/resources/sql/create_tables.sql
| @@ -67,413 +67,6 @@ CREATE TABLE IF NOT EXISTS "inf_job_log" ( | @@ -67,413 +67,6 @@ CREATE TABLE IF NOT EXISTS "inf_job_log" ( | ||
| 67 | PRIMARY KEY ("id") | 67 | PRIMARY KEY ("id") |
| 68 | )COMMENT='定时任务日志表'; | 68 | )COMMENT='定时任务日志表'; |
| 69 | 69 | ||
| 70 | --- sys 开头的 DB | ||
| 71 | - | ||
| 72 | -CREATE TABLE IF NOT EXISTS "sys_dept" ( | ||
| 73 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 74 | - "name" varchar(30) NOT NULL DEFAULT '', | ||
| 75 | - "parent_id" bigint NOT NULL DEFAULT '0', | ||
| 76 | - "sort" int NOT NULL DEFAULT '0', | ||
| 77 | - "leader_user_id" bigint DEFAULT NULL, | ||
| 78 | - "phone" varchar(11) DEFAULT NULL, | ||
| 79 | - "email" varchar(50) DEFAULT NULL, | ||
| 80 | - "status" tinyint NOT NULL, | ||
| 81 | - "creator" varchar(64) DEFAULT '', | ||
| 82 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 83 | - "updater" varchar(64) DEFAULT '', | ||
| 84 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 85 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 86 | - "tenant_id" bigint not null default '0', | ||
| 87 | - PRIMARY KEY ("id") | ||
| 88 | -) COMMENT '部门表'; | ||
| 89 | - | ||
| 90 | -CREATE TABLE IF NOT EXISTS "sys_dict_data" ( | ||
| 91 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 92 | - "sort" int NOT NULL DEFAULT '0', | ||
| 93 | - "label" varchar(100) NOT NULL DEFAULT '', | ||
| 94 | - "value" varchar(100) NOT NULL DEFAULT '', | ||
| 95 | - "dict_type" varchar(100) NOT NULL DEFAULT '', | ||
| 96 | - "status" tinyint NOT NULL DEFAULT '0', | ||
| 97 | - "remark" varchar(500) DEFAULT NULL, | ||
| 98 | - "creator" varchar(64) DEFAULT '', | ||
| 99 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 100 | - "updater" varchar(64) DEFAULT '', | ||
| 101 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 102 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 103 | - PRIMARY KEY ("id") | ||
| 104 | -) COMMENT '字典数据表'; | ||
| 105 | - | ||
| 106 | -CREATE TABLE IF NOT EXISTS "sys_role" ( | ||
| 107 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 108 | - "name" varchar(30) NOT NULL, | ||
| 109 | - "code" varchar(100) NOT NULL, | ||
| 110 | - "sort" int NOT NULL, | ||
| 111 | - "data_scope" tinyint NOT NULL DEFAULT '1', | ||
| 112 | - "data_scope_dept_ids" varchar(500) NOT NULL DEFAULT '', | ||
| 113 | - "status" tinyint NOT NULL, | ||
| 114 | - "type" tinyint NOT NULL, | ||
| 115 | - "remark" varchar(500) DEFAULT NULL, | ||
| 116 | - "creator" varchar(64) DEFAULT '', | ||
| 117 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 118 | - "updater" varchar(64) DEFAULT '', | ||
| 119 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 120 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 121 | - PRIMARY KEY ("id") | ||
| 122 | -) COMMENT '角色信息表'; | ||
| 123 | - | ||
| 124 | -CREATE TABLE IF NOT EXISTS "sys_role_menu" ( | ||
| 125 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 126 | - "role_id" bigint NOT NULL, | ||
| 127 | - "menu_id" bigint NOT NULL, | ||
| 128 | - "creator" varchar(64) DEFAULT '', | ||
| 129 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 130 | - "updater" varchar(64) DEFAULT '', | ||
| 131 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 132 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 133 | - PRIMARY KEY ("id") | ||
| 134 | -) COMMENT '角色和菜单关联表'; | ||
| 135 | - | ||
| 136 | -CREATE TABLE IF NOT EXISTS "sys_menu" ( | ||
| 137 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 138 | - "name" varchar(50) NOT NULL, | ||
| 139 | - "permission" varchar(100) NOT NULL DEFAULT '', | ||
| 140 | - "menu_type" tinyint NOT NULL, | ||
| 141 | - "sort" int NOT NULL DEFAULT '0', | ||
| 142 | - "parent_id" bigint NOT NULL DEFAULT '0', | ||
| 143 | - "path" varchar(200) DEFAULT '', | ||
| 144 | - "icon" varchar(100) DEFAULT '#', | ||
| 145 | - "component" varchar(255) DEFAULT NULL, | ||
| 146 | - "status" tinyint NOT NULL DEFAULT '0', | ||
| 147 | - "creator" varchar(64) DEFAULT '', | ||
| 148 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 149 | - "updater" varchar(64) DEFAULT '', | ||
| 150 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 151 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 152 | - PRIMARY KEY ("id") | ||
| 153 | -) COMMENT '菜单权限表'; | ||
| 154 | - | ||
| 155 | -CREATE TABLE IF NOT EXISTS "sys_user_role" ( | ||
| 156 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 157 | - "user_id" bigint NOT NULL, | ||
| 158 | - "role_id" bigint NOT NULL, | ||
| 159 | - "creator" varchar(64) DEFAULT '', | ||
| 160 | - "create_time" timestamp DEFAULT NULL, | ||
| 161 | - "updater" varchar(64) DEFAULT '', | ||
| 162 | - "update_time" timestamp DEFAULT NULL, | ||
| 163 | - "deleted" bit DEFAULT FALSE, | ||
| 164 | - PRIMARY KEY ("id") | ||
| 165 | -) COMMENT '用户和角色关联表'; | ||
| 166 | - | ||
| 167 | -CREATE TABLE IF NOT EXISTS "sys_dict_type" ( | ||
| 168 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 169 | - "name" varchar(100) NOT NULL DEFAULT '', | ||
| 170 | - "type" varchar(100) NOT NULL DEFAULT '', | ||
| 171 | - "status" tinyint NOT NULL DEFAULT '0', | ||
| 172 | - "remark" varchar(500) DEFAULT NULL, | ||
| 173 | - "creator" varchar(64) DEFAULT '', | ||
| 174 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 175 | - "updater" varchar(64) DEFAULT '', | ||
| 176 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 177 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 178 | - PRIMARY KEY ("id") | ||
| 179 | -) COMMENT '字典类型表'; | ||
| 180 | - | ||
| 181 | -CREATE TABLE IF NOT EXISTS `sys_user_session` ( | ||
| 182 | - `id` varchar(32) NOT NULL, | ||
| 183 | - `user_id` bigint DEFAULT NULL, | ||
| 184 | - "user_type" tinyint NOT NULL, | ||
| 185 | - `username` varchar(50) NOT NULL DEFAULT '', | ||
| 186 | - `user_ip` varchar(50) DEFAULT NULL, | ||
| 187 | - `user_agent` varchar(512) DEFAULT NULL, | ||
| 188 | - `session_timeout` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 189 | - "creator" varchar(64) DEFAULT '', | ||
| 190 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 191 | - `updater` varchar(64) DEFAULT '' , | ||
| 192 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 193 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 194 | - "tenant_id" bigint not null default '0', | ||
| 195 | - PRIMARY KEY (`id`) | ||
| 196 | -) COMMENT '用户在线 Session'; | ||
| 197 | - | ||
| 198 | -CREATE TABLE IF NOT EXISTS "sys_post" ( | ||
| 199 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 200 | - "code" varchar(64) NOT NULL, | ||
| 201 | - "name" varchar(50) NOT NULL, | ||
| 202 | - "sort" integer NOT NULL, | ||
| 203 | - "status" tinyint NOT NULL, | ||
| 204 | - "remark" varchar(500) DEFAULT NULL, | ||
| 205 | - "creator" varchar(64) DEFAULT '', | ||
| 206 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 207 | - "updater" varchar(64) DEFAULT '', | ||
| 208 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 209 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 210 | - "tenant_id" bigint not null default '0', | ||
| 211 | - PRIMARY KEY ("id") | ||
| 212 | -) COMMENT '岗位信息表'; | ||
| 213 | - | ||
| 214 | -CREATE TABLE IF NOT EXISTS "sys_notice" ( | ||
| 215 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 216 | - "title" varchar(50) NOT NULL COMMENT '公告标题', | ||
| 217 | - "content" text NOT NULL COMMENT '公告内容', | ||
| 218 | - "notice_type" tinyint NOT NULL COMMENT '公告类型(1通知 2公告)', | ||
| 219 | - "status" tinyint NOT NULL DEFAULT '0' COMMENT '公告状态(0正常 1关闭)', | ||
| 220 | - "creator" varchar(64) DEFAULT '' COMMENT '创建者', | ||
| 221 | - "create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', | ||
| 222 | - "updater" varchar(64) DEFAULT '' COMMENT '更新者', | ||
| 223 | - "update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', | ||
| 224 | - "deleted" bit NOT NULL DEFAULT 0 COMMENT '是否删除', | ||
| 225 | - "tenant_id" bigint not null default '0', | ||
| 226 | - PRIMARY KEY("id") | ||
| 227 | -) COMMENT '通知公告表'; | ||
| 228 | - | ||
| 229 | -CREATE TABLE IF NOT EXISTS `sys_login_log` ( | ||
| 230 | - `id` bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 231 | - `log_type` bigint(4) NOT NULL, | ||
| 232 | - "user_id" bigint not null default '0', | ||
| 233 | - "user_type" tinyint NOT NULL, | ||
| 234 | - `trace_id` varchar(64) NOT NULL DEFAULT '', | ||
| 235 | - `username` varchar(50) NOT NULL DEFAULT '', | ||
| 236 | - `result` tinyint(4) NOT NULL, | ||
| 237 | - `user_ip` varchar(50) NOT NULL, | ||
| 238 | - `user_agent` varchar(512) NOT NULL, | ||
| 239 | - `creator` varchar(64) DEFAULT '', | ||
| 240 | - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 241 | - `updater` varchar(64) DEFAULT '', | ||
| 242 | - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
| 243 | - `deleted` bit(1) NOT NULL DEFAULT '0', | ||
| 244 | - PRIMARY KEY (`id`) | ||
| 245 | -) COMMENT ='系统访问记录'; | ||
| 246 | - | ||
| 247 | -CREATE TABLE IF NOT EXISTS `sys_operate_log` ( | ||
| 248 | - `id` bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 249 | - `trace_id` varchar(64) NOT NULL DEFAULT '', | ||
| 250 | - `user_id` bigint(20) NOT NULL, | ||
| 251 | - `module` varchar(50) NOT NULL, | ||
| 252 | - `name` varchar(50) NOT NULL, | ||
| 253 | - `operate_type` bigint(4) NOT NULL DEFAULT '0', | ||
| 254 | - `content` varchar(2000) NOT NULL DEFAULT '', | ||
| 255 | - `exts` varchar(512) NOT NULL DEFAULT '', | ||
| 256 | - `request_method` varchar(16) DEFAULT '', | ||
| 257 | - `request_url` varchar(255) DEFAULT '', | ||
| 258 | - `user_ip` varchar(50) DEFAULT NULL, | ||
| 259 | - `user_agent` varchar(200) DEFAULT NULL, | ||
| 260 | - `java_method` varchar(512) NOT NULL DEFAULT '', | ||
| 261 | - `java_method_args` varchar(8000) DEFAULT '', | ||
| 262 | - `start_time` datetime NOT NULL, | ||
| 263 | - `duration` int(11) NOT NULL, | ||
| 264 | - `result_code` int(11) NOT NULL DEFAULT '0', | ||
| 265 | - `result_msg` varchar(512) DEFAULT '', | ||
| 266 | - `result_data` varchar(4000) DEFAULT '', | ||
| 267 | - `creator` varchar(64) DEFAULT '', | ||
| 268 | - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 269 | - `updater` varchar(64) DEFAULT '', | ||
| 270 | - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
| 271 | - `deleted` bit(1) NOT NULL DEFAULT '0', | ||
| 272 | - "tenant_id" bigint not null default '0', | ||
| 273 | - PRIMARY KEY (`id`) | ||
| 274 | -) COMMENT ='操作日志记录'; | ||
| 275 | - | ||
| 276 | -CREATE TABLE IF NOT EXISTS "sys_user" ( | ||
| 277 | - "id" bigint not null GENERATED BY DEFAULT AS IDENTITY, | ||
| 278 | - "username" varchar(30) not null, | ||
| 279 | - "password" varchar(100) not null default '', | ||
| 280 | - "nickname" varchar(30) not null, | ||
| 281 | - "remark" varchar(500) default null, | ||
| 282 | - "dept_id" bigint default null, | ||
| 283 | - "post_ids" varchar(255) default null, | ||
| 284 | - "email" varchar(50) default '', | ||
| 285 | - "mobile" varchar(11) default '', | ||
| 286 | - "sex" tinyint default '0', | ||
| 287 | - "avatar" varchar(100) default '', | ||
| 288 | - "status" tinyint not null default '0', | ||
| 289 | - "login_ip" varchar(50) default '', | ||
| 290 | - "login_date" timestamp default null, | ||
| 291 | - "creator" varchar(64) default '', | ||
| 292 | - "create_time" timestamp not null default current_timestamp, | ||
| 293 | - "updater" varchar(64) default '', | ||
| 294 | - "update_time" timestamp not null default current_timestamp, | ||
| 295 | - "deleted" bit not null default false, | ||
| 296 | - "tenant_id" bigint not null default '0', | ||
| 297 | - primary key ("id") | ||
| 298 | -) comment '用户信息表'; | ||
| 299 | - | ||
| 300 | -CREATE TABLE IF NOT EXISTS "inf_api_access_log" ( | ||
| 301 | - "id" bigint not null GENERATED BY DEFAULT AS IDENTITY, | ||
| 302 | - "trace_id" varchar(64) not null default '', | ||
| 303 | - "user_id" bigint not null default '0', | ||
| 304 | - "user_type" tinyint not null default '0', | ||
| 305 | - "application_name" varchar(50) not null, | ||
| 306 | - "request_method" varchar(16) not null default '', | ||
| 307 | - "request_url" varchar(255) not null default '', | ||
| 308 | - "request_params" varchar(8000) not null default '', | ||
| 309 | - "user_ip" varchar(50) not null, | ||
| 310 | - "user_agent" varchar(512) not null, | ||
| 311 | - "begin_time" timestamp not null, | ||
| 312 | - "end_time" timestamp not null, | ||
| 313 | - "duration" integer not null, | ||
| 314 | - "result_code" integer not null default '0', | ||
| 315 | - "result_msg" varchar(512) default '', | ||
| 316 | - "creator" varchar(64) default '', | ||
| 317 | - "create_time" timestamp not null default current_timestamp, | ||
| 318 | - "updater" varchar(64) default '', | ||
| 319 | - "update_time" timestamp not null default current_timestamp, | ||
| 320 | - "deleted" bit not null default false, | ||
| 321 | - "tenant_id" bigint not null default '0', | ||
| 322 | - primary key ("id") | ||
| 323 | -) COMMENT 'API 访问日志表'; | ||
| 324 | - | ||
| 325 | -CREATE TABLE IF NOT EXISTS "inf_api_error_log" ( | ||
| 326 | - "id" bigint not null GENERATED BY DEFAULT AS IDENTITY, | ||
| 327 | - "trace_id" varchar(64) not null, | ||
| 328 | - "user_id" bigint not null default '0', | ||
| 329 | - "user_type" tinyint not null default '0', | ||
| 330 | - "application_name" varchar(50) not null, | ||
| 331 | - "request_method" varchar(16) not null, | ||
| 332 | - "request_url" varchar(255) not null, | ||
| 333 | - "request_params" varchar(8000) not null, | ||
| 334 | - "user_ip" varchar(50) not null, | ||
| 335 | - "user_agent" varchar(512) not null, | ||
| 336 | - "exception_time" timestamp not null, | ||
| 337 | - "exception_name" varchar(128) not null default '', | ||
| 338 | - "exception_message" clob not null, | ||
| 339 | - "exception_root_cause_message" clob not null, | ||
| 340 | - "exception_stack_trace" clob not null, | ||
| 341 | - "exception_class_name" varchar(512) not null, | ||
| 342 | - "exception_file_name" varchar(512) not null, | ||
| 343 | - "exception_method_name" varchar(512) not null, | ||
| 344 | - "exception_line_number" integer not null, | ||
| 345 | - "process_status" tinyint not null, | ||
| 346 | - "process_time" timestamp default null, | ||
| 347 | - "process_user_id" bigint default '0', | ||
| 348 | - "creator" varchar(64) default '', | ||
| 349 | - "create_time" timestamp not null default current_timestamp, | ||
| 350 | - "updater" varchar(64) default '', | ||
| 351 | - "update_time" timestamp not null default current_timestamp, | ||
| 352 | - "deleted" bit not null default false, | ||
| 353 | - "tenant_id" bigint not null default '0', | ||
| 354 | - primary key ("id") | ||
| 355 | -) COMMENT '系统异常日志'; | ||
| 356 | - | ||
| 357 | -CREATE TABLE IF NOT EXISTS "sys_sms_channel" ( | ||
| 358 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 359 | - "signature" varchar(10) NOT NULL, | ||
| 360 | - "code" varchar(63) NOT NULL, | ||
| 361 | - "status" tinyint NOT NULL, | ||
| 362 | - "remark" varchar(255) DEFAULT NULL, | ||
| 363 | - "api_key" varchar(63) NOT NULL, | ||
| 364 | - "api_secret" varchar(63) DEFAULT NULL, | ||
| 365 | - "callback_url" varchar(255) DEFAULT NULL, | ||
| 366 | - "creator" varchar(64) DEFAULT '', | ||
| 367 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 368 | - "updater" varchar(64) DEFAULT '', | ||
| 369 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 370 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 371 | - PRIMARY KEY ("id") | ||
| 372 | -) COMMENT '短信渠道'; | ||
| 373 | - | ||
| 374 | -CREATE TABLE IF NOT EXISTS "sys_sms_template" ( | ||
| 375 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 376 | - "type" tinyint NOT NULL, | ||
| 377 | - "status" tinyint NOT NULL, | ||
| 378 | - "code" varchar(63) NOT NULL, | ||
| 379 | - "name" varchar(63) NOT NULL, | ||
| 380 | - "content" varchar(255) NOT NULL, | ||
| 381 | - "params" varchar(255) NOT NULL, | ||
| 382 | - "remark" varchar(255) DEFAULT NULL, | ||
| 383 | - "api_template_id" varchar(63) NOT NULL, | ||
| 384 | - "channel_id" bigint NOT NULL, | ||
| 385 | - "channel_code" varchar(63) NOT NULL, | ||
| 386 | - "creator" varchar(64) DEFAULT '', | ||
| 387 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 388 | - "updater" varchar(64) DEFAULT '', | ||
| 389 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 390 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 391 | - PRIMARY KEY ("id") | ||
| 392 | -) COMMENT '短信模板'; | ||
| 393 | - | ||
| 394 | -CREATE TABLE IF NOT EXISTS "sys_sms_log" ( | ||
| 395 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 396 | - "channel_id" bigint NOT NULL, | ||
| 397 | - "channel_code" varchar(63) NOT NULL, | ||
| 398 | - "template_id" bigint NOT NULL, | ||
| 399 | - "template_code" varchar(63) NOT NULL, | ||
| 400 | - "template_type" tinyint NOT NULL, | ||
| 401 | - "template_content" varchar(255) NOT NULL, | ||
| 402 | - "template_params" varchar(255) NOT NULL, | ||
| 403 | - "api_template_id" varchar(63) NOT NULL, | ||
| 404 | - "mobile" varchar(11) NOT NULL, | ||
| 405 | - "user_id" bigint DEFAULT '0', | ||
| 406 | - "user_type" tinyint DEFAULT '0', | ||
| 407 | - "send_status" tinyint NOT NULL DEFAULT '0', | ||
| 408 | - "send_time" timestamp DEFAULT NULL, | ||
| 409 | - "send_code" int DEFAULT NULL, | ||
| 410 | - "send_msg" varchar(255) DEFAULT NULL, | ||
| 411 | - "api_send_code" varchar(63) DEFAULT NULL, | ||
| 412 | - "api_send_msg" varchar(255) DEFAULT NULL, | ||
| 413 | - "api_request_id" varchar(255) DEFAULT NULL, | ||
| 414 | - "api_serial_no" varchar(255) DEFAULT NULL, | ||
| 415 | - "receive_status" tinyint NOT NULL DEFAULT '0', | ||
| 416 | - "receive_time" timestamp DEFAULT NULL, | ||
| 417 | - "api_receive_code" varchar(63) DEFAULT NULL, | ||
| 418 | - "api_receive_msg" varchar(255) DEFAULT NULL, | ||
| 419 | - "creator" varchar(64) DEFAULT '', | ||
| 420 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 421 | - "updater" varchar(64) DEFAULT '', | ||
| 422 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 423 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 424 | - PRIMARY KEY ("id") | ||
| 425 | -) COMMENT '短信日志'; | ||
| 426 | - | ||
| 427 | -CREATE TABLE IF NOT EXISTS "sys_error_code" ( | ||
| 428 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 429 | - "type" tinyint NOT NULL DEFAULT '0', | ||
| 430 | - "application_name" varchar(50) NOT NULL, | ||
| 431 | - "code" int NOT NULL DEFAULT '0', | ||
| 432 | - "message" varchar(512) NOT NULL DEFAULT '', | ||
| 433 | - "memo" varchar(512) DEFAULT '', | ||
| 434 | - "creator" varchar(64) DEFAULT '', | ||
| 435 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 436 | - "updater" varchar(64) DEFAULT '', | ||
| 437 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 438 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 439 | - PRIMARY KEY ("id") | ||
| 440 | -) COMMENT '错误码表'; | ||
| 441 | - | ||
| 442 | -CREATE TABLE IF NOT EXISTS "sys_social_user" ( | ||
| 443 | - "id" number NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 444 | - "user_id" bigint NOT NULL, | ||
| 445 | - "user_type" tinyint NOT NULL DEFAULT '0', | ||
| 446 | - "type" tinyint NOT NULL, | ||
| 447 | - "openid" varchar(32) NOT NULL, | ||
| 448 | - "token" varchar(256) DEFAULT NULL, | ||
| 449 | - "union_id" varchar(32) NOT NULL, | ||
| 450 | - "raw_token_info" varchar(1024) NOT NULL, | ||
| 451 | - "nickname" varchar(32) NOT NULL, | ||
| 452 | - "avatar" varchar(255) DEFAULT NULL, | ||
| 453 | - "raw_user_info" varchar(1024) NOT NULL, | ||
| 454 | - "creator" varchar(64) DEFAULT '', | ||
| 455 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 456 | - "updater" varchar(64) DEFAULT '', | ||
| 457 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 458 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 459 | - PRIMARY KEY ("id") | ||
| 460 | -) COMMENT '社交用户'; | ||
| 461 | - | ||
| 462 | -CREATE TABLE IF NOT EXISTS "sys_tenant" ( | ||
| 463 | - "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, | ||
| 464 | - "name" varchar(63) NOT NULL, | ||
| 465 | - "contact_name" varchar(255) NOT NULL, | ||
| 466 | - "contact_mobile" varchar(255), | ||
| 467 | - "status" tinyint NOT NULL, | ||
| 468 | - "creator" varchar(64) DEFAULT '', | ||
| 469 | - "create_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 470 | - "updater" varchar(64) DEFAULT '', | ||
| 471 | - "update_time" timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
| 472 | - "deleted" bit NOT NULL DEFAULT FALSE, | ||
| 473 | - PRIMARY KEY ("id") | ||
| 474 | -) COMMENT '租户'; | ||
| 475 | - | ||
| 476 | - | ||
| 477 | CREATE TABLE IF NOT EXISTS "pay_merchant" | 70 | CREATE TABLE IF NOT EXISTS "pay_merchant" |
| 478 | ( | 71 | ( |
| 479 | "id" number NOT NULL GENERATED BY DEFAULT AS IDENTITY, | 72 | "id" number NOT NULL GENERATED BY DEFAULT AS IDENTITY, |
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthCheckCodeReqVO.java
| @@ -34,7 +34,7 @@ public class AppAuthCheckCodeReqVO { | @@ -34,7 +34,7 @@ public class AppAuthCheckCodeReqVO { | ||
| 34 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") | 34 | @Pattern(regexp = "^[0-9]+$", message = "手机验证码必须都是数字") |
| 35 | private String code; | 35 | private String code; |
| 36 | 36 | ||
| 37 | - @ApiModelProperty(value = "发送场景", example = "1", notes = "对应 MbrSmsSceneEnum 枚举") | 37 | + @ApiModelProperty(value = "发送场景", example = "1", notes = "对应 SmsSceneEnum 枚举") |
| 38 | @NotNull(message = "发送场景不能为空") | 38 | @NotNull(message = "发送场景不能为空") |
| 39 | @InEnum(SmsSceneEnum.class) | 39 | @InEnum(SmsSceneEnum.class) |
| 40 | private Integer scene; | 40 | private Integer scene; |
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/controller/app/auth/vo/AppAuthSendSmsReqVO.java
| @@ -19,7 +19,7 @@ public class AppAuthSendSmsReqVO { | @@ -19,7 +19,7 @@ public class AppAuthSendSmsReqVO { | ||
| 19 | @Mobile | 19 | @Mobile |
| 20 | private String mobile; | 20 | private String mobile; |
| 21 | 21 | ||
| 22 | - @ApiModelProperty(value = "发送场景", example = "1", notes = "对应 MbrSmsSceneEnum 枚举") | 22 | + @ApiModelProperty(value = "发送场景", example = "1", notes = "对应 SmsSceneEnum 枚举") |
| 23 | @NotNull(message = "发送场景不能为空") | 23 | @NotNull(message = "发送场景不能为空") |
| 24 | @InEnum(SmsSceneEnum.class) | 24 | @InEnum(SmsSceneEnum.class) |
| 25 | private Integer scene; | 25 | private Integer scene; |
yudao-module-member/yudao-module-member-impl/src/main/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthServiceImpl.java
| @@ -281,9 +281,8 @@ public class MemberAuthServiceImpl implements MemberAuthService { | @@ -281,9 +281,8 @@ public class MemberAuthServiceImpl implements MemberAuthService { | ||
| 281 | MemberUserDO userDO = checkOldPassword(userId, reqVO.getOldPassword()); | 281 | MemberUserDO userDO = checkOldPassword(userId, reqVO.getOldPassword()); |
| 282 | 282 | ||
| 283 | // 更新用户密码 | 283 | // 更新用户密码 |
| 284 | - MemberUserDO mbrUserDO = MemberUserDO.builder().id(userDO.getId()) | ||
| 285 | - .password(passwordEncoder.encode(reqVO.getPassword())).build(); | ||
| 286 | - userMapper.updateById(mbrUserDO); | 284 | + userMapper.updateById(MemberUserDO.builder().id(userDO.getId()) |
| 285 | + .password(passwordEncoder.encode(reqVO.getPassword())).build()); | ||
| 287 | } | 286 | } |
| 288 | 287 | ||
| 289 | @Override | 288 | @Override |
| @@ -296,10 +295,8 @@ public class MemberAuthServiceImpl implements MemberAuthService { | @@ -296,10 +295,8 @@ public class MemberAuthServiceImpl implements MemberAuthService { | ||
| 296 | getClientIP())); | 295 | getClientIP())); |
| 297 | 296 | ||
| 298 | // 更新密码 | 297 | // 更新密码 |
| 299 | - MemberUserDO mbrUserDO = MemberUserDO.builder().build(); | ||
| 300 | - mbrUserDO.setId(userDO.getId()); | ||
| 301 | - mbrUserDO.setPassword(passwordEncoder.encode(reqVO.getPassword())); | ||
| 302 | - userMapper.updateById(mbrUserDO); | 298 | + userMapper.updateById(MemberUserDO.builder().id(userDO.getId()) |
| 299 | + .password(passwordEncoder.encode(reqVO.getPassword())).build()); | ||
| 303 | } | 300 | } |
| 304 | 301 | ||
| 305 | @Override | 302 | @Override |
yudao-module-member/yudao-module-member-impl/src/test/java/cn/iocoder/yudao/module/member/service/auth/MemberAuthServiceTest.java
| @@ -53,7 +53,7 @@ public class MemberAuthServiceTest extends BaseDbAndRedisUnitTest { | @@ -53,7 +53,7 @@ public class MemberAuthServiceTest extends BaseDbAndRedisUnitTest { | ||
| 53 | @MockBean | 53 | @MockBean |
| 54 | private PasswordEncoder passwordEncoder; | 54 | private PasswordEncoder passwordEncoder; |
| 55 | @Resource | 55 | @Resource |
| 56 | - private MemberUserMapper mbrUserMapper; | 56 | + private MemberUserMapper memberUserMapper; |
| 57 | @Resource | 57 | @Resource |
| 58 | private MemberAuthServiceImpl authService; | 58 | private MemberAuthServiceImpl authService; |
| 59 | 59 | ||
| @@ -61,7 +61,7 @@ public class MemberAuthServiceTest extends BaseDbAndRedisUnitTest { | @@ -61,7 +61,7 @@ public class MemberAuthServiceTest extends BaseDbAndRedisUnitTest { | ||
| 61 | public void testUpdatePassword_success(){ | 61 | public void testUpdatePassword_success(){ |
| 62 | // 准备参数 | 62 | // 准备参数 |
| 63 | MemberUserDO userDO = randomUserDO(); | 63 | MemberUserDO userDO = randomUserDO(); |
| 64 | - mbrUserMapper.insert(userDO); | 64 | + memberUserMapper.insert(userDO); |
| 65 | 65 | ||
| 66 | // 新密码 | 66 | // 新密码 |
| 67 | String newPassword = randomString(); | 67 | String newPassword = randomString(); |
| @@ -79,14 +79,14 @@ public class MemberAuthServiceTest extends BaseDbAndRedisUnitTest { | @@ -79,14 +79,14 @@ public class MemberAuthServiceTest extends BaseDbAndRedisUnitTest { | ||
| 79 | 79 | ||
| 80 | // 更新用户密码 | 80 | // 更新用户密码 |
| 81 | authService.updatePassword(userDO.getId(), reqVO); | 81 | authService.updatePassword(userDO.getId(), reqVO); |
| 82 | - assertEquals(mbrUserMapper.selectById(userDO.getId()).getPassword(),newPassword); | 82 | + assertEquals(memberUserMapper.selectById(userDO.getId()).getPassword(),newPassword); |
| 83 | } | 83 | } |
| 84 | 84 | ||
| 85 | @Test | 85 | @Test |
| 86 | public void testResetPassword_success(){ | 86 | public void testResetPassword_success(){ |
| 87 | // 准备参数 | 87 | // 准备参数 |
| 88 | MemberUserDO userDO = randomUserDO(); | 88 | MemberUserDO userDO = randomUserDO(); |
| 89 | - mbrUserMapper.insert(userDO); | 89 | + memberUserMapper.insert(userDO); |
| 90 | 90 | ||
| 91 | // 随机密码 | 91 | // 随机密码 |
| 92 | String password = randomNumbers(11); | 92 | String password = randomNumbers(11); |
| @@ -103,7 +103,7 @@ public class MemberAuthServiceTest extends BaseDbAndRedisUnitTest { | @@ -103,7 +103,7 @@ public class MemberAuthServiceTest extends BaseDbAndRedisUnitTest { | ||
| 103 | reqVO.setCode(code); | 103 | reqVO.setCode(code); |
| 104 | 104 | ||
| 105 | authService.resetPassword(reqVO); | 105 | authService.resetPassword(reqVO); |
| 106 | - assertEquals(mbrUserMapper.selectById(userDO.getId()).getPassword(),password); | 106 | + assertEquals(memberUserMapper.selectById(userDO.getId()).getPassword(),password); |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | 109 |
yudao-module-member/yudao-module-member-impl/src/test/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImplTest.java
| @@ -37,7 +37,7 @@ import static org.mockito.Mockito.*; | @@ -37,7 +37,7 @@ import static org.mockito.Mockito.*; | ||
| 37 | public class MemberUserServiceImplTest extends BaseDbAndRedisUnitTest { | 37 | public class MemberUserServiceImplTest extends BaseDbAndRedisUnitTest { |
| 38 | 38 | ||
| 39 | @Resource | 39 | @Resource |
| 40 | - private MemberUserServiceImpl mbrUserService; | 40 | + private MemberUserServiceImpl memberUserService; |
| 41 | 41 | ||
| 42 | @Resource | 42 | @Resource |
| 43 | private StringRedisTemplate stringRedisTemplate; | 43 | private StringRedisTemplate stringRedisTemplate; |
| @@ -67,9 +67,9 @@ public class MemberUserServiceImplTest extends BaseDbAndRedisUnitTest { | @@ -67,9 +67,9 @@ public class MemberUserServiceImplTest extends BaseDbAndRedisUnitTest { | ||
| 67 | String newNickName = randomString(); | 67 | String newNickName = randomString(); |
| 68 | 68 | ||
| 69 | // 调用接口修改昵称 | 69 | // 调用接口修改昵称 |
| 70 | - mbrUserService.updateUserNickname(userDO.getId(),newNickName); | 70 | + memberUserService.updateUserNickname(userDO.getId(),newNickName); |
| 71 | // 查询新修改后的昵称 | 71 | // 查询新修改后的昵称 |
| 72 | - String nickname = mbrUserService.getUser(userDO.getId()).getNickname(); | 72 | + String nickname = memberUserService.getUser(userDO.getId()).getNickname(); |
| 73 | // 断言 | 73 | // 断言 |
| 74 | assertEquals(newNickName,nickname); | 74 | assertEquals(newNickName,nickname); |
| 75 | } | 75 | } |
| @@ -88,7 +88,7 @@ public class MemberUserServiceImplTest extends BaseDbAndRedisUnitTest { | @@ -88,7 +88,7 @@ public class MemberUserServiceImplTest extends BaseDbAndRedisUnitTest { | ||
| 88 | String avatar = randomString(); | 88 | String avatar = randomString(); |
| 89 | when(fileCoreService.createFile(anyString(), eq(avatarFileBytes))).thenReturn(avatar); | 89 | when(fileCoreService.createFile(anyString(), eq(avatarFileBytes))).thenReturn(avatar); |
| 90 | // 调用 | 90 | // 调用 |
| 91 | - String str = mbrUserService.updateUserAvatar(userId, avatarFile); | 91 | + String str = memberUserService.updateUserAvatar(userId, avatarFile); |
| 92 | // 断言 | 92 | // 断言 |
| 93 | assertEquals(avatar, str); | 93 | assertEquals(avatar, str); |
| 94 | } | 94 | } |
| @@ -119,9 +119,9 @@ public class MemberUserServiceImplTest extends BaseDbAndRedisUnitTest { | @@ -119,9 +119,9 @@ public class MemberUserServiceImplTest extends BaseDbAndRedisUnitTest { | ||
| 119 | reqVO.setCode(newCode); | 119 | reqVO.setCode(newCode); |
| 120 | reqVO.setOldMobile(oldMobile); | 120 | reqVO.setOldMobile(oldMobile); |
| 121 | reqVO.setOldCode(oldCode); | 121 | reqVO.setOldCode(oldCode); |
| 122 | - mbrUserService.updateUserMobile(userDO.getId(),reqVO); | 122 | + memberUserService.updateUserMobile(userDO.getId(),reqVO); |
| 123 | 123 | ||
| 124 | - assertEquals(mbrUserService.getUser(userDO.getId()).getMobile(),newMobile); | 124 | + assertEquals(memberUserService.getUser(userDO.getId()).getMobile(),newMobile); |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | // ========== 随机对象 ========== | 127 | // ========== 随机对象 ========== |
yudao-module-member/yudao-module-member-impl/src/test/resources/application-unit-test.yaml
| @@ -45,5 +45,7 @@ mybatis: | @@ -45,5 +45,7 @@ mybatis: | ||
| 45 | yudao: | 45 | yudao: |
| 46 | info: | 46 | info: |
| 47 | base-package: cn.iocoder.yudao.module.member.dal.mysql | 47 | base-package: cn.iocoder.yudao.module.member.dal.mysql |
| 48 | + member-package: cn.iocoder.yudao.module.member # TODO 芋艿:要清理掉 | ||
| 49 | + system-package: cn.iocoder.yudao.module.system # TODO 芋艿:要清理掉 | ||
| 48 | core-service: | 50 | core-service: |
| 49 | base-package: cn.iocoder.yudao.module.member.dal.mysql # TODO 芋艿:要清理掉 | 51 | base-package: cn.iocoder.yudao.module.member.dal.mysql # TODO 芋艿:要清理掉 |
yudao-module-member/yudao-module-member-impl/src/test/resources/sql/clean.sql
yudao-module-member/yudao-module-member-impl/src/test/resources/sql/create_tables.sql
| 1 | --- mbr 开头的 DB | ||
| 2 | CREATE TABLE IF NOT EXISTS "member_user" ( | 1 | CREATE TABLE IF NOT EXISTS "member_user" ( |
| 3 | "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY COMMENT '编号', | 2 | "id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY COMMENT '编号', |
| 4 | "nickname" varchar(30) NOT NULL DEFAULT '' COMMENT '用户昵称', | 3 | "nickname" varchar(30) NOT NULL DEFAULT '' COMMENT '用户昵称', |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java
| @@ -50,7 +50,7 @@ public class AuthController { | @@ -50,7 +50,7 @@ public class AuthController { | ||
| 50 | @Resource | 50 | @Resource |
| 51 | private PermissionService permissionService; | 51 | private PermissionService permissionService; |
| 52 | @Resource | 52 | @Resource |
| 53 | - private SocialUserService socialCoreService; | 53 | + private SocialUserService socialUserService; |
| 54 | 54 | ||
| 55 | @PostMapping("/login") | 55 | @PostMapping("/login") |
| 56 | @ApiOperation("使用账号密码登录") | 56 | @ApiOperation("使用账号密码登录") |
| @@ -102,7 +102,7 @@ public class AuthController { | @@ -102,7 +102,7 @@ public class AuthController { | ||
| 102 | }) | 102 | }) |
| 103 | public CommonResult<String> socialAuthRedirect(@RequestParam("type") Integer type, | 103 | public CommonResult<String> socialAuthRedirect(@RequestParam("type") Integer type, |
| 104 | @RequestParam("redirectUri") String redirectUri) { | 104 | @RequestParam("redirectUri") String redirectUri) { |
| 105 | - return CommonResult.success(socialCoreService.getAuthorizeUrl(type, redirectUri)); | 105 | + return CommonResult.success(socialUserService.getAuthorizeUrl(type, redirectUri)); |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | @PostMapping("/social-login") | 108 | @PostMapping("/social-login") |
| @@ -133,7 +133,7 @@ public class AuthController { | @@ -133,7 +133,7 @@ public class AuthController { | ||
| 133 | @DeleteMapping("/social-unbind") | 133 | @DeleteMapping("/social-unbind") |
| 134 | @ApiOperation("取消社交绑定") | 134 | @ApiOperation("取消社交绑定") |
| 135 | public CommonResult<Boolean> socialUnbind(@RequestBody AuthSocialUnbindReqVO reqVO) { | 135 | public CommonResult<Boolean> socialUnbind(@RequestBody AuthSocialUnbindReqVO reqVO) { |
| 136 | - socialCoreService.unbindSocialUser(getLoginUserId(), UserTypeEnum.ADMIN.getValue(), reqVO.getType(), reqVO.getUnionId()); | 136 | + socialUserService.unbindSocialUser(getLoginUserId(), UserTypeEnum.ADMIN.getValue(), reqVO.getType(), reqVO.getUnionId()); |
| 137 | return CommonResult.success(true); | 137 | return CommonResult.success(true); |
| 138 | } | 138 | } |
| 139 | 139 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/UserSessionController.java
| @@ -3,9 +3,9 @@ package cn.iocoder.yudao.module.system.controller.admin.auth; | @@ -3,9 +3,9 @@ package cn.iocoder.yudao.module.system.controller.admin.auth; | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.auth.vo.session.UserSessionPageItemRespVO; | 3 | import cn.iocoder.yudao.module.system.controller.admin.auth.vo.session.UserSessionPageItemRespVO; |
| 4 | import cn.iocoder.yudao.module.system.controller.admin.auth.vo.session.UserSessionPageReqVO; | 4 | import cn.iocoder.yudao.module.system.controller.admin.auth.vo.session.UserSessionPageReqVO; |
| 5 | import cn.iocoder.yudao.module.system.convert.auth.UserSessionConvert; | 5 | import cn.iocoder.yudao.module.system.convert.auth.UserSessionConvert; |
| 6 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysDeptDO; | 6 | +import cn.iocoder.yudao.module.system.dal.dataobject.auth.UserSessionDO; |
| 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; | ||
| 7 | import cn.iocoder.yudao.module.system.service.auth.UserSessionService; | 8 | import cn.iocoder.yudao.module.system.service.auth.UserSessionService; |
| 8 | -import cn.iocoder.yudao.module.system.dal.dataobject.auth.SysUserSessionDO; | ||
| 9 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; | 9 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; |
| 10 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 10 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 11 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 11 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| @@ -45,12 +45,12 @@ public class UserSessionController { | @@ -45,12 +45,12 @@ public class UserSessionController { | ||
| 45 | @PreAuthorize("@ss.hasPermission('system:user-session:page')") | 45 | @PreAuthorize("@ss.hasPermission('system:user-session:page')") |
| 46 | public CommonResult<PageResult<UserSessionPageItemRespVO>> getUserSessionPage(@Validated UserSessionPageReqVO reqVO) { | 46 | public CommonResult<PageResult<UserSessionPageItemRespVO>> getUserSessionPage(@Validated UserSessionPageReqVO reqVO) { |
| 47 | // 获得 Session 分页 | 47 | // 获得 Session 分页 |
| 48 | - PageResult<SysUserSessionDO> pageResult = userSessionService.getUserSessionPage(reqVO); | 48 | + PageResult<UserSessionDO> pageResult = userSessionService.getUserSessionPage(reqVO); |
| 49 | 49 | ||
| 50 | // 获得拼接需要的数据 | 50 | // 获得拼接需要的数据 |
| 51 | Map<Long, AdminUserDO> userMap = userService.getUserMap( | 51 | Map<Long, AdminUserDO> userMap = userService.getUserMap( |
| 52 | - convertList(pageResult.getList(), SysUserSessionDO::getUserId)); | ||
| 53 | - Map<Long, SysDeptDO> deptMap = deptService.getDeptMap( | 52 | + convertList(pageResult.getList(), UserSessionDO::getUserId)); |
| 53 | + Map<Long, DeptDO> deptMap = deptService.getDeptMap( | ||
| 54 | convertList(userMap.values(), AdminUserDO::getDeptId)); | 54 | convertList(userMap.values(), AdminUserDO::getDeptId)); |
| 55 | // 拼接结果返回 | 55 | // 拼接结果返回 |
| 56 | List<UserSessionPageItemRespVO> sessionList = new ArrayList<>(pageResult.getList().size()); | 56 | List<UserSessionPageItemRespVO> sessionList = new ArrayList<>(pageResult.getList().size()); |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/auth/AuthSocialBindReqVO.java
| @@ -19,7 +19,7 @@ import javax.validation.constraints.NotNull; | @@ -19,7 +19,7 @@ import javax.validation.constraints.NotNull; | ||
| 19 | @Builder | 19 | @Builder |
| 20 | public class AuthSocialBindReqVO { | 20 | public class AuthSocialBindReqVO { |
| 21 | 21 | ||
| 22 | - @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 SysUserSocialTypeEnum 枚举值") | 22 | + @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 UserSocialTypeEnum 枚举值") |
| 23 | @InEnum(SocialTypeEnum.class) | 23 | @InEnum(SocialTypeEnum.class) |
| 24 | @NotNull(message = "社交平台的类型不能为空") | 24 | @NotNull(message = "社交平台的类型不能为空") |
| 25 | private Integer type; | 25 | private Integer type; |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/auth/AuthSocialLogin2ReqVO.java
| @@ -21,7 +21,7 @@ import javax.validation.constraints.Pattern; | @@ -21,7 +21,7 @@ import javax.validation.constraints.Pattern; | ||
| 21 | @Builder | 21 | @Builder |
| 22 | public class AuthSocialLogin2ReqVO { | 22 | public class AuthSocialLogin2ReqVO { |
| 23 | 23 | ||
| 24 | - @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 SysUserSocialTypeEnum 枚举值") | 24 | + @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 UserSocialTypeEnum 枚举值") |
| 25 | @InEnum(SocialTypeEnum.class) | 25 | @InEnum(SocialTypeEnum.class) |
| 26 | @NotNull(message = "社交平台的类型不能为空") | 26 | @NotNull(message = "社交平台的类型不能为空") |
| 27 | private Integer type; | 27 | private Integer type; |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/auth/AuthSocialLoginReqVO.java
| @@ -19,7 +19,7 @@ import javax.validation.constraints.NotNull; | @@ -19,7 +19,7 @@ import javax.validation.constraints.NotNull; | ||
| 19 | @Builder | 19 | @Builder |
| 20 | public class AuthSocialLoginReqVO { | 20 | public class AuthSocialLoginReqVO { |
| 21 | 21 | ||
| 22 | - @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 SysUserSocialTypeEnum 枚举值") | 22 | + @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 UserSocialTypeEnum 枚举值") |
| 23 | @InEnum(SocialTypeEnum.class) | 23 | @InEnum(SocialTypeEnum.class) |
| 24 | @NotNull(message = "社交平台的类型不能为空") | 24 | @NotNull(message = "社交平台的类型不能为空") |
| 25 | private Integer type; | 25 | private Integer type; |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/vo/auth/AuthSocialUnbindReqVO.java
| @@ -19,7 +19,7 @@ import javax.validation.constraints.NotNull; | @@ -19,7 +19,7 @@ import javax.validation.constraints.NotNull; | ||
| 19 | @Builder | 19 | @Builder |
| 20 | public class AuthSocialUnbindReqVO { | 20 | public class AuthSocialUnbindReqVO { |
| 21 | 21 | ||
| 22 | - @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 SysUserSocialTypeEnum 枚举值") | 22 | + @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 UserSocialTypeEnum 枚举值") |
| 23 | @InEnum(SocialTypeEnum.class) | 23 | @InEnum(SocialTypeEnum.class) |
| 24 | @NotNull(message = "社交平台的类型不能为空") | 24 | @NotNull(message = "社交平台的类型不能为空") |
| 25 | private Integer type; | 25 | private Integer type; |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/DeptController.java
| @@ -4,7 +4,7 @@ import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | @@ -4,7 +4,7 @@ import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | ||
| 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 5 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.*; | 5 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.*; |
| 6 | import cn.iocoder.yudao.module.system.convert.dept.DeptConvert; | 6 | import cn.iocoder.yudao.module.system.convert.dept.DeptConvert; |
| 7 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysDeptDO; | 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; |
| 8 | import cn.iocoder.yudao.module.system.service.dept.DeptService; | 8 | import cn.iocoder.yudao.module.system.service.dept.DeptService; |
| 9 | import io.swagger.annotations.Api; | 9 | import io.swagger.annotations.Api; |
| 10 | import io.swagger.annotations.ApiImplicitParam; | 10 | import io.swagger.annotations.ApiImplicitParam; |
| @@ -58,8 +58,8 @@ public class DeptController { | @@ -58,8 +58,8 @@ public class DeptController { | ||
| 58 | @ApiOperation("获取部门列表") | 58 | @ApiOperation("获取部门列表") |
| 59 | @PreAuthorize("@ss.hasPermission('system:dept:query')") | 59 | @PreAuthorize("@ss.hasPermission('system:dept:query')") |
| 60 | public CommonResult<List<DeptRespVO>> listDepts(DeptListReqVO reqVO) { | 60 | public CommonResult<List<DeptRespVO>> listDepts(DeptListReqVO reqVO) { |
| 61 | - List<SysDeptDO> list = deptService.getSimpleDepts(reqVO); | ||
| 62 | - list.sort(Comparator.comparing(SysDeptDO::getSort)); | 61 | + List<DeptDO> list = deptService.getSimpleDepts(reqVO); |
| 62 | + list.sort(Comparator.comparing(DeptDO::getSort)); | ||
| 63 | return success(DeptConvert.INSTANCE.convertList(list)); | 63 | return success(DeptConvert.INSTANCE.convertList(list)); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| @@ -69,9 +69,9 @@ public class DeptController { | @@ -69,9 +69,9 @@ public class DeptController { | ||
| 69 | // 获得部门列表,只要开启状态的 | 69 | // 获得部门列表,只要开启状态的 |
| 70 | DeptListReqVO reqVO = new DeptListReqVO(); | 70 | DeptListReqVO reqVO = new DeptListReqVO(); |
| 71 | reqVO.setStatus(CommonStatusEnum.ENABLE.getStatus()); | 71 | reqVO.setStatus(CommonStatusEnum.ENABLE.getStatus()); |
| 72 | - List<SysDeptDO> list = deptService.getSimpleDepts(reqVO); | 72 | + List<DeptDO> list = deptService.getSimpleDepts(reqVO); |
| 73 | // 排序后,返回给前端 | 73 | // 排序后,返回给前端 |
| 74 | - list.sort(Comparator.comparing(SysDeptDO::getSort)); | 74 | + list.sort(Comparator.comparing(DeptDO::getSort)); |
| 75 | return success(DeptConvert.INSTANCE.convertList02(list)); | 75 | return success(DeptConvert.INSTANCE.convertList02(list)); |
| 76 | } | 76 | } |
| 77 | 77 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/PostController.java
| @@ -7,7 +7,7 @@ import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; | @@ -7,7 +7,7 @@ import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; | ||
| 7 | import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog; | 7 | import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog; |
| 8 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.*; | 8 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.*; |
| 9 | import cn.iocoder.yudao.module.system.convert.dept.PostConvert; | 9 | import cn.iocoder.yudao.module.system.convert.dept.PostConvert; |
| 10 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysPostDO; | 10 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.PostDO; |
| 11 | import cn.iocoder.yudao.module.system.service.dept.PostService; | 11 | import cn.iocoder.yudao.module.system.service.dept.PostService; |
| 12 | import io.swagger.annotations.Api; | 12 | import io.swagger.annotations.Api; |
| 13 | import io.swagger.annotations.ApiImplicitParam; | 13 | import io.swagger.annotations.ApiImplicitParam; |
| @@ -72,9 +72,9 @@ public class PostController { | @@ -72,9 +72,9 @@ public class PostController { | ||
| 72 | @ApiOperation(value = "获取岗位精简信息列表", notes = "只包含被开启的岗位,主要用于前端的下拉选项") | 72 | @ApiOperation(value = "获取岗位精简信息列表", notes = "只包含被开启的岗位,主要用于前端的下拉选项") |
| 73 | public CommonResult<List<PostSimpleRespVO>> getSimplePosts() { | 73 | public CommonResult<List<PostSimpleRespVO>> getSimplePosts() { |
| 74 | // 获得岗位列表,只要开启状态的 | 74 | // 获得岗位列表,只要开启状态的 |
| 75 | - List<SysPostDO> list = postService.getPosts(null, Collections.singleton(CommonStatusEnum.ENABLE.getStatus())); | 75 | + List<PostDO> list = postService.getPosts(null, Collections.singleton(CommonStatusEnum.ENABLE.getStatus())); |
| 76 | // 排序后,返回给前端 | 76 | // 排序后,返回给前端 |
| 77 | - list.sort(Comparator.comparing(SysPostDO::getSort)); | 77 | + list.sort(Comparator.comparing(PostDO::getSort)); |
| 78 | return success(PostConvert.INSTANCE.convertList02(list)); | 78 | return success(PostConvert.INSTANCE.convertList02(list)); |
| 79 | } | 79 | } |
| 80 | 80 | ||
| @@ -90,7 +90,7 @@ public class PostController { | @@ -90,7 +90,7 @@ public class PostController { | ||
| 90 | @PreAuthorize("@ss.hasPermission('system:post:export')") | 90 | @PreAuthorize("@ss.hasPermission('system:post:export')") |
| 91 | @OperateLog(type = EXPORT) | 91 | @OperateLog(type = EXPORT) |
| 92 | public void export(HttpServletResponse response, @Validated PostExportReqVO reqVO) throws IOException { | 92 | public void export(HttpServletResponse response, @Validated PostExportReqVO reqVO) throws IOException { |
| 93 | - List<SysPostDO> posts = postService.getPosts(reqVO); | 93 | + List<PostDO> posts = postService.getPosts(reqVO); |
| 94 | List<PostExcelVO> data = PostConvert.INSTANCE.convertList03(posts); | 94 | List<PostExcelVO> data = PostConvert.INSTANCE.convertList03(posts); |
| 95 | // 输出 | 95 | // 输出 |
| 96 | ExcelUtils.write(response, "岗位数据.xls", "岗位列表", PostExcelVO.class, data); | 96 | ExcelUtils.write(response, "岗位数据.xls", "岗位列表", PostExcelVO.class, data); |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/dept/DeptBaseVO.java
| @@ -40,7 +40,7 @@ public class DeptBaseVO { | @@ -40,7 +40,7 @@ public class DeptBaseVO { | ||
| 40 | @Size(max = 50, message = "邮箱长度不能超过50个字符") | 40 | @Size(max = 50, message = "邮箱长度不能超过50个字符") |
| 41 | private String email; | 41 | private String email; |
| 42 | 42 | ||
| 43 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 SysCommonStatusEnum 枚举") | 43 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 CommonStatusEnum 枚举") |
| 44 | @NotNull(message = "状态不能为空") | 44 | @NotNull(message = "状态不能为空") |
| 45 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") | 45 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 46 | private Integer status; | 46 | private Integer status; |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/dept/DeptListReqVO.java
| @@ -11,7 +11,7 @@ public class DeptListReqVO { | @@ -11,7 +11,7 @@ public class DeptListReqVO { | ||
| 11 | @ApiModelProperty(value = "部门名称", example = "芋道", notes = "模糊匹配") | 11 | @ApiModelProperty(value = "部门名称", example = "芋道", notes = "模糊匹配") |
| 12 | private String name; | 12 | private String name; |
| 13 | 13 | ||
| 14 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 14 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 15 | private Integer status; | 15 | private Integer status; |
| 16 | 16 | ||
| 17 | } | 17 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/dept/DeptRespVO.java
| @@ -15,7 +15,7 @@ public class DeptRespVO extends DeptBaseVO { | @@ -15,7 +15,7 @@ public class DeptRespVO extends DeptBaseVO { | ||
| 15 | @ApiModelProperty(value = "部门编号", required = true, example = "1024") | 15 | @ApiModelProperty(value = "部门编号", required = true, example = "1024") |
| 16 | private Long id; | 16 | private Long id; |
| 17 | 17 | ||
| 18 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 18 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 19 | private Integer status; | 19 | private Integer status; |
| 20 | 20 | ||
| 21 | @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式") | 21 | @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/post/PostBaseVO.java
| @@ -28,7 +28,7 @@ public class PostBaseVO { | @@ -28,7 +28,7 @@ public class PostBaseVO { | ||
| 28 | @NotNull(message = "显示顺序不能为空") | 28 | @NotNull(message = "显示顺序不能为空") |
| 29 | private Integer sort; | 29 | private Integer sort; |
| 30 | 30 | ||
| 31 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 31 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 32 | private Integer status; | 32 | private Integer status; |
| 33 | 33 | ||
| 34 | @ApiModelProperty(value = "备注", example = "快乐的备注") | 34 | @ApiModelProperty(value = "备注", example = "快乐的备注") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/post/PostExportReqVO.java
| @@ -4,7 +4,7 @@ import io.swagger.annotations.ApiModel; | @@ -4,7 +4,7 @@ import io.swagger.annotations.ApiModel; | ||
| 4 | import io.swagger.annotations.ApiModelProperty; | 4 | import io.swagger.annotations.ApiModelProperty; |
| 5 | import lombok.Data; | 5 | import lombok.Data; |
| 6 | 6 | ||
| 7 | -@ApiModel(value = "管理后台 - 岗位导出 Request VO", description = "参数和 SysPostExcelVO 是一致的") | 7 | +@ApiModel(value = "管理后台 - 岗位导出 Request VO", description = "参数和 PostExcelVO 是一致的") |
| 8 | @Data | 8 | @Data |
| 9 | public class PostExportReqVO { | 9 | public class PostExportReqVO { |
| 10 | 10 | ||
| @@ -14,7 +14,7 @@ public class PostExportReqVO { | @@ -14,7 +14,7 @@ public class PostExportReqVO { | ||
| 14 | @ApiModelProperty(value = "岗位名称", example = "芋道", notes = "模糊匹配") | 14 | @ApiModelProperty(value = "岗位名称", example = "芋道", notes = "模糊匹配") |
| 15 | private String name; | 15 | private String name; |
| 16 | 16 | ||
| 17 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 17 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 18 | private Integer status; | 18 | private Integer status; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/post/PostListReqVO.java
| @@ -13,7 +13,7 @@ public class PostListReqVO extends PostBaseVO { | @@ -13,7 +13,7 @@ public class PostListReqVO extends PostBaseVO { | ||
| 13 | @ApiModelProperty(value = "岗位名称", example = "芋道", notes = "模糊匹配") | 13 | @ApiModelProperty(value = "岗位名称", example = "芋道", notes = "模糊匹配") |
| 14 | private String name; | 14 | private String name; |
| 15 | 15 | ||
| 16 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 16 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 17 | private Integer status; | 17 | private Integer status; |
| 18 | 18 | ||
| 19 | } | 19 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/vo/post/PostPageReqVO.java
| @@ -17,7 +17,7 @@ public class PostPageReqVO extends PageParam { | @@ -17,7 +17,7 @@ public class PostPageReqVO extends PageParam { | ||
| 17 | @ApiModelProperty(value = "岗位名称", example = "芋道", notes = "模糊匹配") | 17 | @ApiModelProperty(value = "岗位名称", example = "芋道", notes = "模糊匹配") |
| 18 | private String name; | 18 | private String name; |
| 19 | 19 | ||
| 20 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 20 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 21 | private Integer status; | 21 | private Integer status; |
| 22 | 22 | ||
| 23 | } | 23 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/DictDataController.java
| 1 | package cn.iocoder.yudao.module.system.controller.admin.dict; | 1 | package cn.iocoder.yudao.module.system.controller.admin.dict; |
| 2 | 2 | ||
| 3 | -import cn.iocoder.yudao.module.system.dal.dataobject.dict.SysDictDataDO; | 3 | +import cn.iocoder.yudao.module.system.dal.dataobject.dict.DictDataDO; |
| 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 6 | import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; | 6 | import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
| @@ -62,7 +62,7 @@ public class DictDataController { | @@ -62,7 +62,7 @@ public class DictDataController { | ||
| 62 | @ApiOperation(value = "获得全部字典数据列表", notes = "一般用于管理后台缓存字典数据在本地") | 62 | @ApiOperation(value = "获得全部字典数据列表", notes = "一般用于管理后台缓存字典数据在本地") |
| 63 | // 无需添加权限认证,因为前端全局都需要 | 63 | // 无需添加权限认证,因为前端全局都需要 |
| 64 | public CommonResult<List<DictDataSimpleRespVO>> getSimpleDictDatas() { | 64 | public CommonResult<List<DictDataSimpleRespVO>> getSimpleDictDatas() { |
| 65 | - List<SysDictDataDO> list = dictDataService.getDictDatas(); | 65 | + List<DictDataDO> list = dictDataService.getDictDatas(); |
| 66 | return success(DictDataConvert.INSTANCE.convertList(list)); | 66 | return success(DictDataConvert.INSTANCE.convertList(list)); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| @@ -86,7 +86,7 @@ public class DictDataController { | @@ -86,7 +86,7 @@ public class DictDataController { | ||
| 86 | @PreAuthorize("@ss.hasPermission('system:dict:export')") | 86 | @PreAuthorize("@ss.hasPermission('system:dict:export')") |
| 87 | @OperateLog(type = EXPORT) | 87 | @OperateLog(type = EXPORT) |
| 88 | public void export(HttpServletResponse response, @Valid DictDataExportReqVO reqVO) throws IOException { | 88 | public void export(HttpServletResponse response, @Valid DictDataExportReqVO reqVO) throws IOException { |
| 89 | - List<SysDictDataDO> list = dictDataService.getDictDatas(reqVO); | 89 | + List<DictDataDO> list = dictDataService.getDictDatas(reqVO); |
| 90 | List<DictDataExcelVO> data = DictDataConvert.INSTANCE.convertList02(list); | 90 | List<DictDataExcelVO> data = DictDataConvert.INSTANCE.convertList02(list); |
| 91 | // 输出 | 91 | // 输出 |
| 92 | ExcelUtils.write(response, "字典数据.xls", "数据列表", DictDataExcelVO.class, data); | 92 | ExcelUtils.write(response, "字典数据.xls", "数据列表", DictDataExcelVO.class, data); |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataBaseVO.java
| @@ -33,9 +33,9 @@ public class DictDataBaseVO { | @@ -33,9 +33,9 @@ public class DictDataBaseVO { | ||
| 33 | @Size(max = 100, message = "字典类型长度不能超过100个字符") | 33 | @Size(max = 100, message = "字典类型长度不能超过100个字符") |
| 34 | private String dictType; | 34 | private String dictType; |
| 35 | 35 | ||
| 36 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 SysCommonStatusEnum 枚举") | 36 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 CommonStatusEnum 枚举") |
| 37 | @NotNull(message = "状态不能为空") | 37 | @NotNull(message = "状态不能为空") |
| 38 | -// @InEnum(value = SysCommonStatusEnum.class, message = "修改状态必须是 {value}") | 38 | +// @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 39 | private Integer status; | 39 | private Integer status; |
| 40 | 40 | ||
| 41 | @ApiModelProperty(value = "备注", example = "我是一个角色") | 41 | @ApiModelProperty(value = "备注", example = "我是一个角色") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataExportReqVO.java
| @@ -18,7 +18,7 @@ public class DictDataExportReqVO { | @@ -18,7 +18,7 @@ public class DictDataExportReqVO { | ||
| 18 | @Size(max = 100, message = "字典类型类型长度不能超过100个字符") | 18 | @Size(max = 100, message = "字典类型类型长度不能超过100个字符") |
| 19 | private String dictType; | 19 | private String dictType; |
| 20 | 20 | ||
| 21 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 21 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 22 | private Integer status; | 22 | private Integer status; |
| 23 | 23 | ||
| 24 | } | 24 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/data/DictDataPageReqVO.java
| @@ -21,7 +21,7 @@ public class DictDataPageReqVO extends PageParam { | @@ -21,7 +21,7 @@ public class DictDataPageReqVO extends PageParam { | ||
| 21 | @Size(max = 100, message = "字典类型类型长度不能超过100个字符") | 21 | @Size(max = 100, message = "字典类型类型长度不能超过100个字符") |
| 22 | private String dictType; | 22 | private String dictType; |
| 23 | 23 | ||
| 24 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 24 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 25 | private Integer status; | 25 | private Integer status; |
| 26 | 26 | ||
| 27 | } | 27 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/type/DictTypeExportReqVO.java
| @@ -19,7 +19,7 @@ public class DictTypeExportReqVO { | @@ -19,7 +19,7 @@ public class DictTypeExportReqVO { | ||
| 19 | @ApiModelProperty(value = "字典类型", example = "sys_common_sex", notes = "模糊匹配") | 19 | @ApiModelProperty(value = "字典类型", example = "sys_common_sex", notes = "模糊匹配") |
| 20 | private String type; | 20 | private String type; |
| 21 | 21 | ||
| 22 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 22 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 23 | private Integer status; | 23 | private Integer status; |
| 24 | 24 | ||
| 25 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 25 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dict/vo/type/DictTypePageReqVO.java
| @@ -24,7 +24,7 @@ public class DictTypePageReqVO extends PageParam { | @@ -24,7 +24,7 @@ public class DictTypePageReqVO extends PageParam { | ||
| 24 | @Size(max = 100, message = "字典类型类型长度不能超过100个字符") | 24 | @Size(max = 100, message = "字典类型类型长度不能超过100个字符") |
| 25 | private String type; | 25 | private String type; |
| 26 | 26 | ||
| 27 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 27 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 28 | private Integer status; | 28 | private Integer status; |
| 29 | 29 | ||
| 30 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 30 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/errorcode/vo/ErrorCodePageReqVO.java
| @@ -18,7 +18,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | @@ -18,7 +18,7 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ | ||
| 18 | @ToString(callSuper = true) | 18 | @ToString(callSuper = true) |
| 19 | public class ErrorCodePageReqVO extends PageParam { | 19 | public class ErrorCodePageReqVO extends PageParam { |
| 20 | 20 | ||
| 21 | - @ApiModelProperty(value = "错误码类型", example = "1", notes = "参见 SysErrorCodeTypeEnum 枚举类") | 21 | + @ApiModelProperty(value = "错误码类型", example = "1", notes = "参见 ErrorCodeTypeEnum 枚举类") |
| 22 | private Integer type; | 22 | private Integer type; |
| 23 | 23 | ||
| 24 | @ApiModelProperty(value = "应用名", example = "dashboard") | 24 | @ApiModelProperty(value = "应用名", example = "dashboard") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/errorcode/vo/ErrorCodeRespVO.java
| @@ -17,7 +17,7 @@ public class ErrorCodeRespVO extends ErrorCodeBaseVO { | @@ -17,7 +17,7 @@ public class ErrorCodeRespVO extends ErrorCodeBaseVO { | ||
| 17 | @ApiModelProperty(value = "错误码编号", required = true, example = "1024") | 17 | @ApiModelProperty(value = "错误码编号", required = true, example = "1024") |
| 18 | private Long id; | 18 | private Long id; |
| 19 | 19 | ||
| 20 | - @ApiModelProperty(value = "错误码类型", required = true, example = "1", notes = "参见 SysErrorCodeTypeEnum 枚举类") | 20 | + @ApiModelProperty(value = "错误码类型", required = true, example = "1", notes = "参见 ErrorCodeTypeEnum 枚举类") |
| 21 | private Integer type; | 21 | private Integer type; |
| 22 | 22 | ||
| 23 | @ApiModelProperty(value = "创建时间", required = true) | 23 | @ApiModelProperty(value = "创建时间", required = true) |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/LoginLogController.java
| 1 | package cn.iocoder.yudao.module.system.controller.admin.logger; | 1 | package cn.iocoder.yudao.module.system.controller.admin.logger; |
| 2 | 2 | ||
| 3 | -import cn.iocoder.yudao.module.system.dal.dataobject.logger.SysLoginLogDO; | 3 | +import cn.iocoder.yudao.module.system.dal.dataobject.logger.LoginLogDO; |
| 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 4 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 6 | import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; | 6 | import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
| @@ -40,7 +40,7 @@ public class LoginLogController { | @@ -40,7 +40,7 @@ public class LoginLogController { | ||
| 40 | @ApiOperation("获得登录日志分页列表") | 40 | @ApiOperation("获得登录日志分页列表") |
| 41 | @PreAuthorize("@ss.hasPermission('system:login-log:query')") | 41 | @PreAuthorize("@ss.hasPermission('system:login-log:query')") |
| 42 | public CommonResult<PageResult<LoginLogRespVO>> getLoginLogPage(@Valid LoginLogPageReqVO reqVO) { | 42 | public CommonResult<PageResult<LoginLogRespVO>> getLoginLogPage(@Valid LoginLogPageReqVO reqVO) { |
| 43 | - PageResult<SysLoginLogDO> page = loginLogService.getLoginLogPage(reqVO); | 43 | + PageResult<LoginLogDO> page = loginLogService.getLoginLogPage(reqVO); |
| 44 | return CommonResult.success(LoginLogConvert.INSTANCE.convertPage(page)); | 44 | return CommonResult.success(LoginLogConvert.INSTANCE.convertPage(page)); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| @@ -49,7 +49,7 @@ public class LoginLogController { | @@ -49,7 +49,7 @@ public class LoginLogController { | ||
| 49 | @PreAuthorize("@ss.hasPermission('system:login-log:export')") | 49 | @PreAuthorize("@ss.hasPermission('system:login-log:export')") |
| 50 | @OperateLog(type = EXPORT) | 50 | @OperateLog(type = EXPORT) |
| 51 | public void exportLoginLog(HttpServletResponse response, @Valid LoginLogExportReqVO reqVO) throws IOException { | 51 | public void exportLoginLog(HttpServletResponse response, @Valid LoginLogExportReqVO reqVO) throws IOException { |
| 52 | - List<SysLoginLogDO> list = loginLogService.getLoginLogList(reqVO); | 52 | + List<LoginLogDO> list = loginLogService.getLoginLogList(reqVO); |
| 53 | // 拼接数据 | 53 | // 拼接数据 |
| 54 | List<LoginLogExcelVO> data = LoginLogConvert.INSTANCE.convertList(list); | 54 | List<LoginLogExcelVO> data = LoginLogConvert.INSTANCE.convertList(list); |
| 55 | // 输出 | 55 | // 输出 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/loginlog/LoginLogBaseVO.java
| @@ -15,7 +15,7 @@ import javax.validation.constraints.Size; | @@ -15,7 +15,7 @@ import javax.validation.constraints.Size; | ||
| 15 | @Data | 15 | @Data |
| 16 | public class LoginLogBaseVO { | 16 | public class LoginLogBaseVO { |
| 17 | 17 | ||
| 18 | - @ApiModelProperty(value = "日志类型", required = true, example = "1", notes = "参见 SysLoginLogTypeEnum 枚举类") | 18 | + @ApiModelProperty(value = "日志类型", required = true, example = "1", notes = "参见 LoginLogTypeEnum 枚举类") |
| 19 | @NotNull(message = "日志类型不能为空") | 19 | @NotNull(message = "日志类型不能为空") |
| 20 | private Integer logType; | 20 | private Integer logType; |
| 21 | 21 | ||
| @@ -28,7 +28,7 @@ public class LoginLogBaseVO { | @@ -28,7 +28,7 @@ public class LoginLogBaseVO { | ||
| 28 | @Size(max = 30, message = "用户账号长度不能超过30个字符") | 28 | @Size(max = 30, message = "用户账号长度不能超过30个字符") |
| 29 | private String username; | 29 | private String username; |
| 30 | 30 | ||
| 31 | - @ApiModelProperty(value = "登录结果", required = true, example = "1", notes = "参见 SysLoginResultEnum 枚举类") | 31 | + @ApiModelProperty(value = "登录结果", required = true, example = "1", notes = "参见 LoginResultEnum 枚举类") |
| 32 | @NotNull(message = "登录结果不能为空") | 32 | @NotNull(message = "登录结果不能为空") |
| 33 | private Integer result; | 33 | private Integer result; |
| 34 | 34 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/operatelog/OperateLogBaseVO.java
| @@ -31,7 +31,7 @@ public class OperateLogBaseVO { | @@ -31,7 +31,7 @@ public class OperateLogBaseVO { | ||
| 31 | @NotEmpty(message = "操作名") | 31 | @NotEmpty(message = "操作名") |
| 32 | private String name; | 32 | private String name; |
| 33 | 33 | ||
| 34 | - @ApiModelProperty(value = "操作分类", required = true, example = "1", notes = "参见 SysOperateLogTypeEnum 枚举类") | 34 | + @ApiModelProperty(value = "操作分类", required = true, example = "1", notes = "参见 OperateLogTypeEnum 枚举类") |
| 35 | @NotNull(message = "操作分类不能为空") | 35 | @NotNull(message = "操作分类不能为空") |
| 36 | private Integer type; | 36 | private Integer type; |
| 37 | 37 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/operatelog/OperateLogExportReqVO.java
| @@ -19,7 +19,7 @@ public class OperateLogExportReqVO { | @@ -19,7 +19,7 @@ public class OperateLogExportReqVO { | ||
| 19 | @ApiModelProperty(value = "用户昵称", example = "芋道", notes = "模拟匹配") | 19 | @ApiModelProperty(value = "用户昵称", example = "芋道", notes = "模拟匹配") |
| 20 | private String userNickname; | 20 | private String userNickname; |
| 21 | 21 | ||
| 22 | - @ApiModelProperty(value = "操作分类", example = "1", notes = "参见 SysOperateLogTypeEnum 枚举类") | 22 | + @ApiModelProperty(value = "操作分类", example = "1", notes = "参见 OperateLogTypeEnum 枚举类") |
| 23 | private Integer type; | 23 | private Integer type; |
| 24 | 24 | ||
| 25 | @ApiModelProperty(value = "操作状态", example = "true") | 25 | @ApiModelProperty(value = "操作状态", example = "true") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/operatelog/OperateLogPageReqVO.java
| @@ -20,7 +20,7 @@ public class OperateLogPageReqVO extends PageParam { | @@ -20,7 +20,7 @@ public class OperateLogPageReqVO extends PageParam { | ||
| 20 | @ApiModelProperty(value = "用户昵称", example = "芋道", notes = "模拟匹配") | 20 | @ApiModelProperty(value = "用户昵称", example = "芋道", notes = "模拟匹配") |
| 21 | private String userNickname; | 21 | private String userNickname; |
| 22 | 22 | ||
| 23 | - @ApiModelProperty(value = "操作分类", example = "1", notes = "参见 SysOperateLogTypeEnum 枚举类") | 23 | + @ApiModelProperty(value = "操作分类", example = "1", notes = "参见 OperateLogTypeEnum 枚举类") |
| 24 | private Integer type; | 24 | private Integer type; |
| 25 | 25 | ||
| 26 | @ApiModelProperty(value = "操作状态", example = "true") | 26 | @ApiModelProperty(value = "操作状态", example = "true") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notice/vo/NoticeBaseVO.java
| @@ -26,7 +26,7 @@ public class NoticeBaseVO { | @@ -26,7 +26,7 @@ public class NoticeBaseVO { | ||
| 26 | @ApiModelProperty(value = "公告内容", required = true, example = "半生编码") | 26 | @ApiModelProperty(value = "公告内容", required = true, example = "半生编码") |
| 27 | private String content; | 27 | private String content; |
| 28 | 28 | ||
| 29 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 29 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 30 | private Integer status; | 30 | private Integer status; |
| 31 | 31 | ||
| 32 | } | 32 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/notice/vo/NoticePageReqVO.java
| @@ -14,7 +14,7 @@ public class NoticePageReqVO extends PageParam { | @@ -14,7 +14,7 @@ public class NoticePageReqVO extends PageParam { | ||
| 14 | @ApiModelProperty(value = "通知公告名称", example = "芋道", notes = "模糊匹配") | 14 | @ApiModelProperty(value = "通知公告名称", example = "芋道", notes = "模糊匹配") |
| 15 | private String title; | 15 | private String title; |
| 16 | 16 | ||
| 17 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 17 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 18 | private Integer status; | 18 | private Integer status; |
| 19 | 19 | ||
| 20 | } | 20 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/menu/MenuBaseVO.java
| @@ -23,7 +23,7 @@ public class MenuBaseVO { | @@ -23,7 +23,7 @@ public class MenuBaseVO { | ||
| 23 | @Size(max = 100) | 23 | @Size(max = 100) |
| 24 | private String permission; | 24 | private String permission; |
| 25 | 25 | ||
| 26 | - @ApiModelProperty(value = "类型", required = true, example = "1", notes = "参见 SysMenuTypeEnum 枚举类") | 26 | + @ApiModelProperty(value = "类型", required = true, example = "1", notes = "参见 MenuTypeEnum 枚举类") |
| 27 | @NotNull(message = "菜单类型不能为空") | 27 | @NotNull(message = "菜单类型不能为空") |
| 28 | private Integer type; | 28 | private Integer type; |
| 29 | 29 | ||
| @@ -46,7 +46,7 @@ public class MenuBaseVO { | @@ -46,7 +46,7 @@ public class MenuBaseVO { | ||
| 46 | @Size(max = 200, message = "组件路径不能超过255个字符") | 46 | @Size(max = 200, message = "组件路径不能超过255个字符") |
| 47 | private String component; | 47 | private String component; |
| 48 | 48 | ||
| 49 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 SysCommonStatusEnum 枚举") | 49 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 CommonStatusEnum 枚举") |
| 50 | @NotNull(message = "状态不能为空") | 50 | @NotNull(message = "状态不能为空") |
| 51 | private Integer status; | 51 | private Integer status; |
| 52 | 52 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/menu/MenuListReqVO.java
| @@ -11,7 +11,7 @@ public class MenuListReqVO { | @@ -11,7 +11,7 @@ public class MenuListReqVO { | ||
| 11 | @ApiModelProperty(value = "菜单名称", example = "芋道", notes = "模糊匹配") | 11 | @ApiModelProperty(value = "菜单名称", example = "芋道", notes = "模糊匹配") |
| 12 | private String name; | 12 | private String name; |
| 13 | 13 | ||
| 14 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 14 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 15 | private Integer status; | 15 | private Integer status; |
| 16 | 16 | ||
| 17 | } | 17 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/menu/MenuRespVO.java
| @@ -19,7 +19,7 @@ public class MenuRespVO extends MenuBaseVO { | @@ -19,7 +19,7 @@ public class MenuRespVO extends MenuBaseVO { | ||
| 19 | @ApiModelProperty(value = "菜单编号", required = true, example = "1024") | 19 | @ApiModelProperty(value = "菜单编号", required = true, example = "1024") |
| 20 | private Long id; | 20 | private Long id; |
| 21 | 21 | ||
| 22 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 22 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 23 | private Integer status; | 23 | private Integer status; |
| 24 | 24 | ||
| 25 | @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式") | 25 | @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/permission/PermissionAssignRoleDataScopeReqVO.java
| @@ -16,7 +16,7 @@ public class PermissionAssignRoleDataScopeReqVO { | @@ -16,7 +16,7 @@ public class PermissionAssignRoleDataScopeReqVO { | ||
| 16 | @NotNull(message = "角色编号不能为空") | 16 | @NotNull(message = "角色编号不能为空") |
| 17 | private Long roleId; | 17 | private Long roleId; |
| 18 | 18 | ||
| 19 | - @ApiModelProperty(value = "数据范围", required = true, example = "1", notes = "参见 SysDataScopeEnum 枚举类") | 19 | + @ApiModelProperty(value = "数据范围", required = true, example = "1", notes = "参见 DataScopeEnum 枚举类") |
| 20 | @NotNull(message = "数据范围不能为空") | 20 | @NotNull(message = "数据范围不能为空") |
| 21 | // TODO 这里要多一个枚举校验 | 21 | // TODO 这里要多一个枚举校验 |
| 22 | private Integer dataScope; | 22 | private Integer dataScope; |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleBaseVO.java
| @@ -28,7 +28,7 @@ public class RoleBaseVO { | @@ -28,7 +28,7 @@ public class RoleBaseVO { | ||
| 28 | @NotNull(message = "显示顺序不能为空") | 28 | @NotNull(message = "显示顺序不能为空") |
| 29 | private Integer sort; | 29 | private Integer sort; |
| 30 | 30 | ||
| 31 | - @ApiModelProperty(value = "角色类型", required = true, example = "1", notes = "见 SysRoleTypeEnum 枚举") | 31 | + @ApiModelProperty(value = "角色类型", required = true, example = "1", notes = "见 RoleTypeEnum 枚举") |
| 32 | private Integer type; | 32 | private Integer type; |
| 33 | 33 | ||
| 34 | @ApiModelProperty(value = "备注", example = "我是一个角色") | 34 | @ApiModelProperty(value = "备注", example = "我是一个角色") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleExportReqVO.java
| @@ -19,7 +19,7 @@ public class RoleExportReqVO { | @@ -19,7 +19,7 @@ public class RoleExportReqVO { | ||
| 19 | @ApiModelProperty(value = "角色标识", example = "yudao", notes = "模糊匹配") | 19 | @ApiModelProperty(value = "角色标识", example = "yudao", notes = "模糊匹配") |
| 20 | private String code; | 20 | private String code; |
| 21 | 21 | ||
| 22 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 22 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 23 | private Integer status; | 23 | private Integer status; |
| 24 | 24 | ||
| 25 | @ApiModelProperty(value = "开始时间", example = "2020-10-24") | 25 | @ApiModelProperty(value = "开始时间", example = "2020-10-24") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RolePageReqVO.java
| @@ -22,7 +22,7 @@ public class RolePageReqVO extends PageParam { | @@ -22,7 +22,7 @@ public class RolePageReqVO extends PageParam { | ||
| 22 | @ApiModelProperty(value = "角色标识", example = "yudao", notes = "模糊匹配") | 22 | @ApiModelProperty(value = "角色标识", example = "yudao", notes = "模糊匹配") |
| 23 | private String code; | 23 | private String code; |
| 24 | 24 | ||
| 25 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 25 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 26 | private Integer status; | 26 | private Integer status; |
| 27 | 27 | ||
| 28 | @ApiModelProperty(value = "开始时间", example = "2020-10-24") | 28 | @ApiModelProperty(value = "开始时间", example = "2020-10-24") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleRespVO.java
| @@ -26,10 +26,10 @@ public class RoleRespVO extends RoleBaseVO { | @@ -26,10 +26,10 @@ public class RoleRespVO extends RoleBaseVO { | ||
| 26 | @ApiModelProperty(value = "数据范围(指定部门数组)", example = "1") | 26 | @ApiModelProperty(value = "数据范围(指定部门数组)", example = "1") |
| 27 | private Set<Long> dataScopeDeptIds; | 27 | private Set<Long> dataScopeDeptIds; |
| 28 | 28 | ||
| 29 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 29 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 30 | private Integer status; | 30 | private Integer status; |
| 31 | 31 | ||
| 32 | - @ApiModelProperty(value = "角色类型", required = true, example = "1", notes = "参见 SysRoleTypeEnum 枚举类") | 32 | + @ApiModelProperty(value = "角色类型", required = true, example = "1", notes = "参见 RoleTypeEnum 枚举类") |
| 33 | private Integer type; | 33 | private Integer type; |
| 34 | 34 | ||
| 35 | @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式") | 35 | @ApiModelProperty(value = "创建时间", required = true, example = "时间戳格式") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/permission/vo/role/RoleUpdateStatusReqVO.java
| 1 | package cn.iocoder.yudao.module.system.controller.admin.permission.vo.role; | 1 | package cn.iocoder.yudao.module.system.controller.admin.permission.vo.role; |
| 2 | 2 | ||
| 3 | -import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | ||
| 4 | -import cn.iocoder.yudao.framework.common.validation.InEnum; | ||
| 5 | import io.swagger.annotations.ApiModel; | 3 | import io.swagger.annotations.ApiModel; |
| 6 | import io.swagger.annotations.ApiModelProperty; | 4 | import io.swagger.annotations.ApiModelProperty; |
| 7 | import lombok.Data; | 5 | import lombok.Data; |
| @@ -16,7 +14,7 @@ public class RoleUpdateStatusReqVO { | @@ -16,7 +14,7 @@ public class RoleUpdateStatusReqVO { | ||
| 16 | @NotNull(message = "角色编号不能为空") | 14 | @NotNull(message = "角色编号不能为空") |
| 17 | private Long id; | 15 | private Long id; |
| 18 | 16 | ||
| 19 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 SysCommonStatusEnum 枚举") | 17 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 CommonStatusEnum 枚举") |
| 20 | @NotNull(message = "状态不能为空") | 18 | @NotNull(message = "状态不能为空") |
| 21 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") | 19 | // @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 22 | private Integer status; | 20 | private Integer status; |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/SmsCallbackController.java
| @@ -25,7 +25,7 @@ import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; | @@ -25,7 +25,7 @@ import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; | ||
| 25 | public class SmsCallbackController { | 25 | public class SmsCallbackController { |
| 26 | 26 | ||
| 27 | @Resource | 27 | @Resource |
| 28 | - private SmsSendService smsCoreService; | 28 | + private SmsSendService smsSendService; |
| 29 | 29 | ||
| 30 | @PostMapping("/sms/yunpian") | 30 | @PostMapping("/sms/yunpian") |
| 31 | @ApiOperation(value = "云片短信的回调", notes = "参见 https://www.yunpian.com/official/document/sms/zh_cn/domestic_push_report 文档") | 31 | @ApiOperation(value = "云片短信的回调", notes = "参见 https://www.yunpian.com/official/document/sms/zh_cn/domestic_push_report 文档") |
| @@ -33,7 +33,7 @@ public class SmsCallbackController { | @@ -33,7 +33,7 @@ public class SmsCallbackController { | ||
| 33 | @OperateLog(enable = false) | 33 | @OperateLog(enable = false) |
| 34 | public String receiveYunpianSmsStatus(@RequestParam("sms_status") String smsStatus) throws Throwable { | 34 | public String receiveYunpianSmsStatus(@RequestParam("sms_status") String smsStatus) throws Throwable { |
| 35 | String text = URLUtil.decode(smsStatus); // decode 解码参数,因为它被 encode | 35 | String text = URLUtil.decode(smsStatus); // decode 解码参数,因为它被 encode |
| 36 | - smsCoreService.receiveSmsStatus(SmsChannelEnum.YUN_PIAN.getCode(), text); | 36 | + smsSendService.receiveSmsStatus(SmsChannelEnum.YUN_PIAN.getCode(), text); |
| 37 | return "SUCCESS"; // 约定返回 SUCCESS 为成功 | 37 | return "SUCCESS"; // 约定返回 SUCCESS 为成功 |
| 38 | } | 38 | } |
| 39 | 39 | ||
| @@ -42,7 +42,7 @@ public class SmsCallbackController { | @@ -42,7 +42,7 @@ public class SmsCallbackController { | ||
| 42 | @OperateLog(enable = false) | 42 | @OperateLog(enable = false) |
| 43 | public CommonResult<Boolean> receiveAliyunSmsStatus(HttpServletRequest request) throws Throwable { | 43 | public CommonResult<Boolean> receiveAliyunSmsStatus(HttpServletRequest request) throws Throwable { |
| 44 | String text = ServletUtil.getBody(request); | 44 | String text = ServletUtil.getBody(request); |
| 45 | - smsCoreService.receiveSmsStatus(SmsChannelEnum.ALIYUN.getCode(), text); | 45 | + smsSendService.receiveSmsStatus(SmsChannelEnum.ALIYUN.getCode(), text); |
| 46 | return success(true); | 46 | return success(true); |
| 47 | } | 47 | } |
| 48 | 48 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/SmsChannelController.java
| @@ -2,8 +2,8 @@ package cn.iocoder.yudao.module.system.controller.admin.sms; | @@ -2,8 +2,8 @@ package cn.iocoder.yudao.module.system.controller.admin.sms; | ||
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.*; | 3 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.*; |
| 4 | import cn.iocoder.yudao.module.system.convert.sms.SmsChannelConvert; | 4 | import cn.iocoder.yudao.module.system.convert.sms.SmsChannelConvert; |
| 5 | +import cn.iocoder.yudao.module.system.dal.dataobject.sms.SmsChannelDO; | ||
| 5 | import cn.iocoder.yudao.module.system.service.sms.SmsChannelService; | 6 | import cn.iocoder.yudao.module.system.service.sms.SmsChannelService; |
| 6 | -import cn.iocoder.yudao.module.system.dal.dataobject.sms.SysSmsChannelDO; | ||
| 7 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 7 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 9 | import io.swagger.annotations.Api; | 9 | import io.swagger.annotations.Api; |
| @@ -56,7 +56,7 @@ public class SmsChannelController { | @@ -56,7 +56,7 @@ public class SmsChannelController { | ||
| 56 | @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class) | 56 | @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class) |
| 57 | @PreAuthorize("@ss.hasPermission('system:sms-channel:query')") | 57 | @PreAuthorize("@ss.hasPermission('system:sms-channel:query')") |
| 58 | public CommonResult<SmsChannelRespVO> getSmsChannel(@RequestParam("id") Long id) { | 58 | public CommonResult<SmsChannelRespVO> getSmsChannel(@RequestParam("id") Long id) { |
| 59 | - SysSmsChannelDO smsChannel = smsChannelService.getSmsChannel(id); | 59 | + SmsChannelDO smsChannel = smsChannelService.getSmsChannel(id); |
| 60 | return success(SmsChannelConvert.INSTANCE.convert(smsChannel)); | 60 | return success(SmsChannelConvert.INSTANCE.convert(smsChannel)); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| @@ -64,16 +64,16 @@ public class SmsChannelController { | @@ -64,16 +64,16 @@ public class SmsChannelController { | ||
| 64 | @ApiOperation("获得短信渠道分页") | 64 | @ApiOperation("获得短信渠道分页") |
| 65 | @PreAuthorize("@ss.hasPermission('system:sms-channel:query')") | 65 | @PreAuthorize("@ss.hasPermission('system:sms-channel:query')") |
| 66 | public CommonResult<PageResult<SmsChannelRespVO>> getSmsChannelPage(@Valid SmsChannelPageReqVO pageVO) { | 66 | public CommonResult<PageResult<SmsChannelRespVO>> getSmsChannelPage(@Valid SmsChannelPageReqVO pageVO) { |
| 67 | - PageResult<SysSmsChannelDO> pageResult = smsChannelService.getSmsChannelPage(pageVO); | 67 | + PageResult<SmsChannelDO> pageResult = smsChannelService.getSmsChannelPage(pageVO); |
| 68 | return success(SmsChannelConvert.INSTANCE.convertPage(pageResult)); | 68 | return success(SmsChannelConvert.INSTANCE.convertPage(pageResult)); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | @GetMapping("/list-all-simple") | 71 | @GetMapping("/list-all-simple") |
| 72 | @ApiOperation(value = "获得短信渠道精简列表", notes = "包含被禁用的短信渠道") | 72 | @ApiOperation(value = "获得短信渠道精简列表", notes = "包含被禁用的短信渠道") |
| 73 | public CommonResult<List<SmsChannelSimpleRespVO>> getSimpleSmsChannels() { | 73 | public CommonResult<List<SmsChannelSimpleRespVO>> getSimpleSmsChannels() { |
| 74 | - List<SysSmsChannelDO> list = smsChannelService.getSmsChannelList(); | 74 | + List<SmsChannelDO> list = smsChannelService.getSmsChannelList(); |
| 75 | // 排序后,返回给前端 | 75 | // 排序后,返回给前端 |
| 76 | - list.sort(Comparator.comparing(SysSmsChannelDO::getId)); | 76 | + list.sort(Comparator.comparing(SmsChannelDO::getId)); |
| 77 | return success(SmsChannelConvert.INSTANCE.convertList03(list)); | 77 | return success(SmsChannelConvert.INSTANCE.convertList03(list)); |
| 78 | } | 78 | } |
| 79 | 79 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/SmsLogController.java
| @@ -3,10 +3,10 @@ package cn.iocoder.yudao.module.system.controller.admin.sms; | @@ -3,10 +3,10 @@ package cn.iocoder.yudao.module.system.controller.admin.sms; | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogExcelVO; | 3 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogExcelVO; |
| 4 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogExportReqVO; | 4 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogExportReqVO; |
| 5 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogPageReqVO; | 5 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogPageReqVO; |
| 6 | -import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SysSmsLogRespVO; | 6 | +import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogRespVO; |
| 7 | import cn.iocoder.yudao.module.system.convert.sms.SmsLogConvert; | 7 | import cn.iocoder.yudao.module.system.convert.sms.SmsLogConvert; |
| 8 | +import cn.iocoder.yudao.module.system.dal.dataobject.sms.SmsLogDO; | ||
| 8 | import cn.iocoder.yudao.module.system.service.sms.SmsLogService; | 9 | import cn.iocoder.yudao.module.system.service.sms.SmsLogService; |
| 9 | -import cn.iocoder.yudao.module.system.dal.dataobject.sms.SysSmsLogDO; | ||
| 10 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 10 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 11 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 11 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 12 | import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; | 12 | import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
| @@ -40,8 +40,8 @@ public class SmsLogController { | @@ -40,8 +40,8 @@ public class SmsLogController { | ||
| 40 | @GetMapping("/page") | 40 | @GetMapping("/page") |
| 41 | @ApiOperation("获得短信日志分页") | 41 | @ApiOperation("获得短信日志分页") |
| 42 | @PreAuthorize("@ss.hasPermission('system:sms-log:query')") | 42 | @PreAuthorize("@ss.hasPermission('system:sms-log:query')") |
| 43 | - public CommonResult<PageResult<SysSmsLogRespVO>> getSmsLogPage(@Valid SmsLogPageReqVO pageVO) { | ||
| 44 | - PageResult<SysSmsLogDO> pageResult = smsLogService.getSmsLogPage(pageVO); | 43 | + public CommonResult<PageResult<SmsLogRespVO>> getSmsLogPage(@Valid SmsLogPageReqVO pageVO) { |
| 44 | + PageResult<SmsLogDO> pageResult = smsLogService.getSmsLogPage(pageVO); | ||
| 45 | return success(SmsLogConvert.INSTANCE.convertPage(pageResult)); | 45 | return success(SmsLogConvert.INSTANCE.convertPage(pageResult)); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| @@ -51,7 +51,7 @@ public class SmsLogController { | @@ -51,7 +51,7 @@ public class SmsLogController { | ||
| 51 | @OperateLog(type = EXPORT) | 51 | @OperateLog(type = EXPORT) |
| 52 | public void exportSmsLogExcel(@Valid SmsLogExportReqVO exportReqVO, | 52 | public void exportSmsLogExcel(@Valid SmsLogExportReqVO exportReqVO, |
| 53 | HttpServletResponse response) throws IOException { | 53 | HttpServletResponse response) throws IOException { |
| 54 | - List<SysSmsLogDO> list = smsLogService.getSmsLogList(exportReqVO); | 54 | + List<SmsLogDO> list = smsLogService.getSmsLogList(exportReqVO); |
| 55 | // 导出 Excel | 55 | // 导出 Excel |
| 56 | List<SmsLogExcelVO> datas = SmsLogConvert.INSTANCE.convertList02(list); | 56 | List<SmsLogExcelVO> datas = SmsLogConvert.INSTANCE.convertList02(list); |
| 57 | ExcelUtils.write(response, "短信日志.xls", "数据", SmsLogExcelVO.class, datas); | 57 | ExcelUtils.write(response, "短信日志.xls", "数据", SmsLogExcelVO.class, datas); |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/SmsTemplateController.java
| @@ -2,8 +2,8 @@ package cn.iocoder.yudao.module.system.controller.admin.sms; | @@ -2,8 +2,8 @@ package cn.iocoder.yudao.module.system.controller.admin.sms; | ||
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.*; | 3 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.*; |
| 4 | import cn.iocoder.yudao.module.system.convert.sms.SmsTemplateConvert; | 4 | import cn.iocoder.yudao.module.system.convert.sms.SmsTemplateConvert; |
| 5 | +import cn.iocoder.yudao.module.system.dal.dataobject.sms.SmsTemplateDO; | ||
| 5 | import cn.iocoder.yudao.module.system.service.sms.SmsTemplateService; | 6 | import cn.iocoder.yudao.module.system.service.sms.SmsTemplateService; |
| 6 | -import cn.iocoder.yudao.module.system.dal.dataobject.sms.SysSmsTemplateDO; | ||
| 7 | import cn.iocoder.yudao.module.system.service.sms.SmsSendService; | 7 | import cn.iocoder.yudao.module.system.service.sms.SmsSendService; |
| 8 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 8 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 9 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 9 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| @@ -32,7 +32,7 @@ public class SmsTemplateController { | @@ -32,7 +32,7 @@ public class SmsTemplateController { | ||
| 32 | @Resource | 32 | @Resource |
| 33 | private SmsTemplateService smsTemplateService; | 33 | private SmsTemplateService smsTemplateService; |
| 34 | @Resource | 34 | @Resource |
| 35 | - private SmsSendService smsCoreService; | 35 | + private SmsSendService smsSendService; |
| 36 | 36 | ||
| 37 | @PostMapping("/create") | 37 | @PostMapping("/create") |
| 38 | @ApiOperation("创建短信模板") | 38 | @ApiOperation("创建短信模板") |
| @@ -63,7 +63,7 @@ public class SmsTemplateController { | @@ -63,7 +63,7 @@ public class SmsTemplateController { | ||
| 63 | @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class) | 63 | @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class) |
| 64 | @PreAuthorize("@ss.hasPermission('system:sms-template:query')") | 64 | @PreAuthorize("@ss.hasPermission('system:sms-template:query')") |
| 65 | public CommonResult<SmsTemplateRespVO> getSmsTemplate(@RequestParam("id") Long id) { | 65 | public CommonResult<SmsTemplateRespVO> getSmsTemplate(@RequestParam("id") Long id) { |
| 66 | - SysSmsTemplateDO smsTemplate = smsTemplateService.getSmsTemplate(id); | 66 | + SmsTemplateDO smsTemplate = smsTemplateService.getSmsTemplate(id); |
| 67 | return success(SmsTemplateConvert.INSTANCE.convert(smsTemplate)); | 67 | return success(SmsTemplateConvert.INSTANCE.convert(smsTemplate)); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| @@ -71,7 +71,7 @@ public class SmsTemplateController { | @@ -71,7 +71,7 @@ public class SmsTemplateController { | ||
| 71 | @ApiOperation("获得短信模板分页") | 71 | @ApiOperation("获得短信模板分页") |
| 72 | @PreAuthorize("@ss.hasPermission('system:sms-template:query')") | 72 | @PreAuthorize("@ss.hasPermission('system:sms-template:query')") |
| 73 | public CommonResult<PageResult<SmsTemplateRespVO>> getSmsTemplatePage(@Valid SmsTemplatePageReqVO pageVO) { | 73 | public CommonResult<PageResult<SmsTemplateRespVO>> getSmsTemplatePage(@Valid SmsTemplatePageReqVO pageVO) { |
| 74 | - PageResult<SysSmsTemplateDO> pageResult = smsTemplateService.getSmsTemplatePage(pageVO); | 74 | + PageResult<SmsTemplateDO> pageResult = smsTemplateService.getSmsTemplatePage(pageVO); |
| 75 | return success(SmsTemplateConvert.INSTANCE.convertPage(pageResult)); | 75 | return success(SmsTemplateConvert.INSTANCE.convertPage(pageResult)); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| @@ -81,7 +81,7 @@ public class SmsTemplateController { | @@ -81,7 +81,7 @@ public class SmsTemplateController { | ||
| 81 | @OperateLog(type = EXPORT) | 81 | @OperateLog(type = EXPORT) |
| 82 | public void exportSmsTemplateExcel(@Valid SmsTemplateExportReqVO exportReqVO, | 82 | public void exportSmsTemplateExcel(@Valid SmsTemplateExportReqVO exportReqVO, |
| 83 | HttpServletResponse response) throws IOException { | 83 | HttpServletResponse response) throws IOException { |
| 84 | - List<SysSmsTemplateDO> list = smsTemplateService.getSmsTemplateList(exportReqVO); | 84 | + List<SmsTemplateDO> list = smsTemplateService.getSmsTemplateList(exportReqVO); |
| 85 | // 导出 Excel | 85 | // 导出 Excel |
| 86 | List<SmsTemplateExcelVO> datas = SmsTemplateConvert.INSTANCE.convertList02(list); | 86 | List<SmsTemplateExcelVO> datas = SmsTemplateConvert.INSTANCE.convertList02(list); |
| 87 | ExcelUtils.write(response, "短信模板.xls", "数据", SmsTemplateExcelVO.class, datas); | 87 | ExcelUtils.write(response, "短信模板.xls", "数据", SmsTemplateExcelVO.class, datas); |
| @@ -91,7 +91,7 @@ public class SmsTemplateController { | @@ -91,7 +91,7 @@ public class SmsTemplateController { | ||
| 91 | @ApiOperation("发送短信") | 91 | @ApiOperation("发送短信") |
| 92 | @PreAuthorize("@ss.hasPermission('system:sms-template:send-sms')") | 92 | @PreAuthorize("@ss.hasPermission('system:sms-template:send-sms')") |
| 93 | public CommonResult<Long> sendSms(@Valid @RequestBody SmsTemplateSendReqVO sendReqVO) { | 93 | public CommonResult<Long> sendSms(@Valid @RequestBody SmsTemplateSendReqVO sendReqVO) { |
| 94 | - return success(smsCoreService.sendSingleSmsToAdmin(sendReqVO.getMobile(), null, | 94 | + return success(smsSendService.sendSingleSmsToAdmin(sendReqVO.getMobile(), null, |
| 95 | sendReqVO.getTemplateCode(), sendReqVO.getTemplateParams())); | 95 | sendReqVO.getTemplateCode(), sendReqVO.getTemplateParams())); |
| 96 | } | 96 | } |
| 97 | 97 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/log/SmsLogExportReqVO.java
| @@ -9,7 +9,7 @@ import java.util.Date; | @@ -9,7 +9,7 @@ import java.util.Date; | ||
| 9 | 9 | ||
| 10 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; | 10 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
| 11 | 11 | ||
| 12 | -@ApiModel(value = "管理后台 - 短信日志 Excel 导出 Request VO", description = "参数和 SysSmsLogPageReqVO 是一致的") | 12 | +@ApiModel(value = "管理后台 - 短信日志 Excel 导出 Request VO", description = "参数和 SmsLogPageReqVO 是一致的") |
| 13 | @Data | 13 | @Data |
| 14 | public class SmsLogExportReqVO { | 14 | public class SmsLogExportReqVO { |
| 15 | 15 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/log/SmsLogPageReqVO.java
| @@ -27,7 +27,7 @@ public class SmsLogPageReqVO extends PageParam { | @@ -27,7 +27,7 @@ public class SmsLogPageReqVO extends PageParam { | ||
| 27 | @ApiModelProperty(value = "手机号", example = "15601691300") | 27 | @ApiModelProperty(value = "手机号", example = "15601691300") |
| 28 | private String mobile; | 28 | private String mobile; |
| 29 | 29 | ||
| 30 | - @ApiModelProperty(value = "发送状态", example = "1", notes = "参见 SysSmsSendStatusEnum 枚举类") | 30 | + @ApiModelProperty(value = "发送状态", example = "1", notes = "参见 SmsSendStatusEnum 枚举类") |
| 31 | private Integer sendStatus; | 31 | private Integer sendStatus; |
| 32 | 32 | ||
| 33 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 33 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
| @@ -38,7 +38,7 @@ public class SmsLogPageReqVO extends PageParam { | @@ -38,7 +38,7 @@ public class SmsLogPageReqVO extends PageParam { | ||
| 38 | @ApiModelProperty(value = "结束发送时间") | 38 | @ApiModelProperty(value = "结束发送时间") |
| 39 | private Date endSendTime; | 39 | private Date endSendTime; |
| 40 | 40 | ||
| 41 | - @ApiModelProperty(value = "接收状态", example = "0", notes = "参见 SysSmsReceiveStatusEnum 枚举类") | 41 | + @ApiModelProperty(value = "接收状态", example = "0", notes = "参见 SmsReceiveStatusEnum 枚举类") |
| 42 | private Integer receiveStatus; | 42 | private Integer receiveStatus; |
| 43 | 43 | ||
| 44 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | 44 | @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/log/SysSmsLogRespVO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/log/SmsLogRespVO.java
| @@ -9,7 +9,7 @@ import java.util.Map; | @@ -9,7 +9,7 @@ import java.util.Map; | ||
| 9 | 9 | ||
| 10 | @ApiModel("管理后台 - 短信日志 Response VO") | 10 | @ApiModel("管理后台 - 短信日志 Response VO") |
| 11 | @Data | 11 | @Data |
| 12 | -public class SysSmsLogRespVO { | 12 | +public class SmsLogRespVO { |
| 13 | 13 | ||
| 14 | @ApiModelProperty(value = "编号", required = true, example = "1024") | 14 | @ApiModelProperty(value = "编号", required = true, example = "1024") |
| 15 | private Long id; | 15 | private Long id; |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/template/SmsTemplateBaseVO.java
| @@ -12,7 +12,7 @@ import javax.validation.constraints.NotNull; | @@ -12,7 +12,7 @@ import javax.validation.constraints.NotNull; | ||
| 12 | @Data | 12 | @Data |
| 13 | public class SmsTemplateBaseVO { | 13 | public class SmsTemplateBaseVO { |
| 14 | 14 | ||
| 15 | - @ApiModelProperty(value = "短信类型", required = true, example = "1", notes = "参见 SysSmsTemplateTypeEnum 枚举类") | 15 | + @ApiModelProperty(value = "短信类型", required = true, example = "1", notes = "参见 SmsTemplateTypeEnum 枚举类") |
| 16 | @NotNull(message = "短信类型不能为空") | 16 | @NotNull(message = "短信类型不能为空") |
| 17 | private Integer type; | 17 | private Integer type; |
| 18 | 18 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/sms/vo/template/SmsTemplateExportReqVO.java
| @@ -9,7 +9,7 @@ import java.util.Date; | @@ -9,7 +9,7 @@ import java.util.Date; | ||
| 9 | 9 | ||
| 10 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; | 10 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
| 11 | 11 | ||
| 12 | -@ApiModel(value = "管理后台 - 短信模板 Excel 导出 Request VO", description = "参数和 SysSmsTemplatePageReqVO 是一致的") | 12 | +@ApiModel(value = "管理后台 - 短信模板 Excel 导出 Request VO", description = "参数和 SmsTemplatePageReqVO 是一致的") |
| 13 | @Data | 13 | @Data |
| 14 | public class SmsTemplateExportReqVO { | 14 | public class SmsTemplateExportReqVO { |
| 15 | 15 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/TenantController.java
| @@ -2,8 +2,8 @@ package cn.iocoder.yudao.module.system.controller.admin.tenant; | @@ -2,8 +2,8 @@ package cn.iocoder.yudao.module.system.controller.admin.tenant; | ||
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.*; | 3 | import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.*; |
| 4 | import cn.iocoder.yudao.module.system.convert.tenant.TenantConvert; | 4 | import cn.iocoder.yudao.module.system.convert.tenant.TenantConvert; |
| 5 | +import cn.iocoder.yudao.module.system.dal.dataobject.tenant.TenantDO; | ||
| 5 | import cn.iocoder.yudao.module.system.service.tenant.TenantService; | 6 | import cn.iocoder.yudao.module.system.service.tenant.TenantService; |
| 6 | -import cn.iocoder.yudao.module.system.dal.dataobject.tenant.SysTenantDO; | ||
| 7 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 7 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 9 | import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; | 9 | import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils; |
| @@ -36,7 +36,7 @@ public class TenantController { | @@ -36,7 +36,7 @@ public class TenantController { | ||
| 36 | @ApiOperation(value = "使用租户名,获得租户编号", notes = "登录界面,根据用户的租户名,获得租户编号") | 36 | @ApiOperation(value = "使用租户名,获得租户编号", notes = "登录界面,根据用户的租户名,获得租户编号") |
| 37 | @ApiImplicitParam(name = "name", value = "租户名", required = true, example = "芋道源码", dataTypeClass = Long.class) | 37 | @ApiImplicitParam(name = "name", value = "租户名", required = true, example = "芋道源码", dataTypeClass = Long.class) |
| 38 | public CommonResult<Long> getTenantIdByName(@RequestParam("name") String name) { | 38 | public CommonResult<Long> getTenantIdByName(@RequestParam("name") String name) { |
| 39 | - SysTenantDO tenantDO = tenantService.getTenantByName(name); | 39 | + TenantDO tenantDO = tenantService.getTenantByName(name); |
| 40 | return success(tenantDO != null ? tenantDO.getId() : null); | 40 | return success(tenantDO != null ? tenantDO.getId() : null); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| @@ -69,7 +69,7 @@ public class TenantController { | @@ -69,7 +69,7 @@ public class TenantController { | ||
| 69 | @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class) | 69 | @ApiImplicitParam(name = "id", value = "编号", required = true, example = "1024", dataTypeClass = Long.class) |
| 70 | @PreAuthorize("@ss.hasPermission('system:tenant:query')") | 70 | @PreAuthorize("@ss.hasPermission('system:tenant:query')") |
| 71 | public CommonResult<TenantRespVO> getTenant(@RequestParam("id") Long id) { | 71 | public CommonResult<TenantRespVO> getTenant(@RequestParam("id") Long id) { |
| 72 | - SysTenantDO tenant = tenantService.getTenant(id); | 72 | + TenantDO tenant = tenantService.getTenant(id); |
| 73 | return success(TenantConvert.INSTANCE.convert(tenant)); | 73 | return success(TenantConvert.INSTANCE.convert(tenant)); |
| 74 | } | 74 | } |
| 75 | 75 | ||
| @@ -78,7 +78,7 @@ public class TenantController { | @@ -78,7 +78,7 @@ public class TenantController { | ||
| 78 | @ApiImplicitParam(name = "ids", value = "编号列表", required = true, example = "1024,2048", dataTypeClass = List.class) | 78 | @ApiImplicitParam(name = "ids", value = "编号列表", required = true, example = "1024,2048", dataTypeClass = List.class) |
| 79 | @PreAuthorize("@ss.hasPermission('system:tenant:query')") | 79 | @PreAuthorize("@ss.hasPermission('system:tenant:query')") |
| 80 | public CommonResult<List<TenantRespVO>> getTenantList(@RequestParam("ids") Collection<Long> ids) { | 80 | public CommonResult<List<TenantRespVO>> getTenantList(@RequestParam("ids") Collection<Long> ids) { |
| 81 | - List<SysTenantDO> list = tenantService.getTenantList(ids); | 81 | + List<TenantDO> list = tenantService.getTenantList(ids); |
| 82 | return success(TenantConvert.INSTANCE.convertList(list)); | 82 | return success(TenantConvert.INSTANCE.convertList(list)); |
| 83 | } | 83 | } |
| 84 | 84 | ||
| @@ -86,7 +86,7 @@ public class TenantController { | @@ -86,7 +86,7 @@ public class TenantController { | ||
| 86 | @ApiOperation("获得租户分页") | 86 | @ApiOperation("获得租户分页") |
| 87 | @PreAuthorize("@ss.hasPermission('system:tenant:query')") | 87 | @PreAuthorize("@ss.hasPermission('system:tenant:query')") |
| 88 | public CommonResult<PageResult<TenantRespVO>> getTenantPage(@Valid TenantPageReqVO pageVO) { | 88 | public CommonResult<PageResult<TenantRespVO>> getTenantPage(@Valid TenantPageReqVO pageVO) { |
| 89 | - PageResult<SysTenantDO> pageResult = tenantService.getTenantPage(pageVO); | 89 | + PageResult<TenantDO> pageResult = tenantService.getTenantPage(pageVO); |
| 90 | return success(TenantConvert.INSTANCE.convertPage(pageResult)); | 90 | return success(TenantConvert.INSTANCE.convertPage(pageResult)); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| @@ -96,7 +96,7 @@ public class TenantController { | @@ -96,7 +96,7 @@ public class TenantController { | ||
| 96 | @OperateLog(type = EXPORT) | 96 | @OperateLog(type = EXPORT) |
| 97 | public void exportTenantExcel(@Valid TenantExportReqVO exportReqVO, | 97 | public void exportTenantExcel(@Valid TenantExportReqVO exportReqVO, |
| 98 | HttpServletResponse response) throws IOException { | 98 | HttpServletResponse response) throws IOException { |
| 99 | - List<SysTenantDO> list = tenantService.getTenantList(exportReqVO); | 99 | + List<TenantDO> list = tenantService.getTenantList(exportReqVO); |
| 100 | // 导出 Excel | 100 | // 导出 Excel |
| 101 | List<TenantExcelVO> datas = TenantConvert.INSTANCE.convertList02(list); | 101 | List<TenantExcelVO> datas = TenantConvert.INSTANCE.convertList02(list); |
| 102 | ExcelUtils.write(response, "租户.xls", "数据", TenantExcelVO.class, datas); | 102 | ExcelUtils.write(response, "租户.xls", "数据", TenantExcelVO.class, datas); |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenant/vo/TenantExportReqVO.java
| @@ -9,7 +9,7 @@ import java.util.Date; | @@ -9,7 +9,7 @@ import java.util.Date; | ||
| 9 | 9 | ||
| 10 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; | 10 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
| 11 | 11 | ||
| 12 | -@ApiModel(value = "管理后台 - 租户 Excel 导出 Request VO", description = "参数和 SysTenantPageReqVO 是一致的") | 12 | +@ApiModel(value = "管理后台 - 租户 Excel 导出 Request VO", description = "参数和 TenantPageReqVO 是一致的") |
| 13 | @Data | 13 | @Data |
| 14 | public class TenantExportReqVO { | 14 | public class TenantExportReqVO { |
| 15 | 15 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/UserController.java
| @@ -3,11 +3,11 @@ package cn.iocoder.yudao.module.system.controller.admin.user; | @@ -3,11 +3,11 @@ package cn.iocoder.yudao.module.system.controller.admin.user; | ||
| 3 | import cn.hutool.core.collection.CollUtil; | 3 | import cn.hutool.core.collection.CollUtil; |
| 4 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.user.*; | 4 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.user.*; |
| 5 | import cn.iocoder.yudao.module.system.convert.user.UserConvert; | 5 | import cn.iocoder.yudao.module.system.convert.user.UserConvert; |
| 6 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysDeptDO; | 6 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; |
| 7 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; | 7 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; |
| 8 | import cn.iocoder.yudao.module.system.service.dept.DeptService; | 8 | import cn.iocoder.yudao.module.system.service.dept.DeptService; |
| 9 | import cn.iocoder.yudao.module.system.service.user.AdminUserService; | 9 | import cn.iocoder.yudao.module.system.service.user.AdminUserService; |
| 10 | -import cn.iocoder.yudao.module.system.enums.common.SysSexEnum; | 10 | +import cn.iocoder.yudao.module.system.enums.common.SexEnum; |
| 11 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | 11 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| 12 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; | 12 | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| 13 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 13 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| @@ -98,7 +98,7 @@ public class UserController { | @@ -98,7 +98,7 @@ public class UserController { | ||
| 98 | 98 | ||
| 99 | // 获得拼接需要的数据 | 99 | // 获得拼接需要的数据 |
| 100 | Collection<Long> deptIds = convertList(pageResult.getList(), AdminUserDO::getDeptId); | 100 | Collection<Long> deptIds = convertList(pageResult.getList(), AdminUserDO::getDeptId); |
| 101 | - Map<Long, SysDeptDO> deptMap = deptService.getDeptMap(deptIds); | 101 | + Map<Long, DeptDO> deptMap = deptService.getDeptMap(deptIds); |
| 102 | // 拼接结果返回 | 102 | // 拼接结果返回 |
| 103 | List<UserPageItemRespVO> userList = new ArrayList<>(pageResult.getList().size()); | 103 | List<UserPageItemRespVO> userList = new ArrayList<>(pageResult.getList().size()); |
| 104 | pageResult.getList().forEach(user -> { | 104 | pageResult.getList().forEach(user -> { |
| @@ -137,9 +137,9 @@ public class UserController { | @@ -137,9 +137,9 @@ public class UserController { | ||
| 137 | 137 | ||
| 138 | // 获得拼接需要的数据 | 138 | // 获得拼接需要的数据 |
| 139 | Collection<Long> deptIds = convertList(users, AdminUserDO::getDeptId); | 139 | Collection<Long> deptIds = convertList(users, AdminUserDO::getDeptId); |
| 140 | - Map<Long, SysDeptDO> deptMap = deptService.getDeptMap(deptIds); | 140 | + Map<Long, DeptDO> deptMap = deptService.getDeptMap(deptIds); |
| 141 | Map<Long, AdminUserDO> deptLeaderUserMap = userService.getUserMap( | 141 | Map<Long, AdminUserDO> deptLeaderUserMap = userService.getUserMap( |
| 142 | - convertSet(deptMap.values(), SysDeptDO::getLeaderUserId)); | 142 | + convertSet(deptMap.values(), DeptDO::getLeaderUserId)); |
| 143 | // 拼接数据 | 143 | // 拼接数据 |
| 144 | List<UserExcelVO> excelUsers = new ArrayList<>(users.size()); | 144 | List<UserExcelVO> excelUsers = new ArrayList<>(users.size()); |
| 145 | users.forEach(user -> { | 145 | users.forEach(user -> { |
| @@ -164,9 +164,9 @@ public class UserController { | @@ -164,9 +164,9 @@ public class UserController { | ||
| 164 | // 手动创建导出 demo | 164 | // 手动创建导出 demo |
| 165 | List<UserImportExcelVO> list = Arrays.asList( | 165 | List<UserImportExcelVO> list = Arrays.asList( |
| 166 | UserImportExcelVO.builder().username("yudao").deptId(1L).email("yudao@iocoder.cn").mobile("15601691300") | 166 | UserImportExcelVO.builder().username("yudao").deptId(1L).email("yudao@iocoder.cn").mobile("15601691300") |
| 167 | - .nickname("芋道").status(CommonStatusEnum.ENABLE.getStatus()).sex(SysSexEnum.MALE.getSex()).build(), | 167 | + .nickname("芋道").status(CommonStatusEnum.ENABLE.getStatus()).sex(SexEnum.MALE.getSex()).build(), |
| 168 | UserImportExcelVO.builder().username("yuanma").deptId(2L).email("yuanma@iocoder.cn").mobile("15601701300") | 168 | UserImportExcelVO.builder().username("yuanma").deptId(2L).email("yuanma@iocoder.cn").mobile("15601701300") |
| 169 | - .nickname("源码").status(CommonStatusEnum.DISABLE.getStatus()).sex(SysSexEnum.FEMALE.getSex()).build() | 169 | + .nickname("源码").status(CommonStatusEnum.DISABLE.getStatus()).sex(SexEnum.FEMALE.getSex()).build() |
| 170 | ); | 170 | ); |
| 171 | 171 | ||
| 172 | // 输出 | 172 | // 输出 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/UserProfileController.java
| @@ -5,16 +5,16 @@ import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfi | @@ -5,16 +5,16 @@ import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfi | ||
| 5 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdatePasswordReqVO; | 5 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdatePasswordReqVO; |
| 6 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdateReqVO; | 6 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdateReqVO; |
| 7 | import cn.iocoder.yudao.module.system.convert.user.UserConvert; | 7 | import cn.iocoder.yudao.module.system.convert.user.UserConvert; |
| 8 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; | ||
| 9 | +import cn.iocoder.yudao.module.system.dal.dataobject.social.SocialUserDO; | ||
| 8 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; | 10 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; |
| 9 | import cn.iocoder.yudao.module.system.service.dept.DeptService; | 11 | import cn.iocoder.yudao.module.system.service.dept.DeptService; |
| 10 | import cn.iocoder.yudao.module.system.service.dept.PostService; | 12 | import cn.iocoder.yudao.module.system.service.dept.PostService; |
| 11 | import cn.iocoder.yudao.module.system.service.permission.PermissionService; | 13 | import cn.iocoder.yudao.module.system.service.permission.PermissionService; |
| 12 | import cn.iocoder.yudao.module.system.service.permission.RoleService; | 14 | import cn.iocoder.yudao.module.system.service.permission.RoleService; |
| 13 | import cn.iocoder.yudao.module.system.service.user.AdminUserService; | 15 | import cn.iocoder.yudao.module.system.service.user.AdminUserService; |
| 14 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysDeptDO; | ||
| 15 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysPostDO; | 16 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.PostDO; |
| 16 | import cn.iocoder.yudao.module.system.dal.dataobject.permission.RoleDO; | 17 | import cn.iocoder.yudao.module.system.dal.dataobject.permission.RoleDO; |
| 17 | -import cn.iocoder.yudao.module.system.dal.dataobject.social.SysSocialUserDO; | ||
| 18 | import cn.iocoder.yudao.module.system.service.social.SocialUserService; | 18 | import cn.iocoder.yudao.module.system.service.social.SocialUserService; |
| 19 | import cn.iocoder.yudao.framework.common.enums.UserTypeEnum; | 19 | import cn.iocoder.yudao.framework.common.enums.UserTypeEnum; |
| 20 | import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; | 20 | import cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil; |
| @@ -67,16 +67,16 @@ public class UserProfileController { | @@ -67,16 +67,16 @@ public class UserProfileController { | ||
| 67 | resp.setRoles(UserConvert.INSTANCE.convertList(userRoles)); | 67 | resp.setRoles(UserConvert.INSTANCE.convertList(userRoles)); |
| 68 | // 获得部门信息 | 68 | // 获得部门信息 |
| 69 | if (user.getDeptId() != null) { | 69 | if (user.getDeptId() != null) { |
| 70 | - SysDeptDO dept = deptService.getDept(user.getDeptId()); | 70 | + DeptDO dept = deptService.getDept(user.getDeptId()); |
| 71 | resp.setDept(UserConvert.INSTANCE.convert02(dept)); | 71 | resp.setDept(UserConvert.INSTANCE.convert02(dept)); |
| 72 | } | 72 | } |
| 73 | // 获得岗位信息 | 73 | // 获得岗位信息 |
| 74 | if (CollUtil.isNotEmpty(user.getPostIds())) { | 74 | if (CollUtil.isNotEmpty(user.getPostIds())) { |
| 75 | - List<SysPostDO> posts = postService.getPosts(user.getPostIds()); | 75 | + List<PostDO> posts = postService.getPosts(user.getPostIds()); |
| 76 | resp.setPosts(UserConvert.INSTANCE.convertList02(posts)); | 76 | resp.setPosts(UserConvert.INSTANCE.convertList02(posts)); |
| 77 | } | 77 | } |
| 78 | // 获得社交用户信息 | 78 | // 获得社交用户信息 |
| 79 | - List<SysSocialUserDO> socialUsers = socialService.getSocialUserList(user.getId(), UserTypeEnum.ADMIN.getValue()); | 79 | + List<SocialUserDO> socialUsers = socialService.getSocialUserList(user.getId(), UserTypeEnum.ADMIN.getValue()); |
| 80 | resp.setSocialUsers(UserConvert.INSTANCE.convertList03(socialUsers)); | 80 | resp.setSocialUsers(UserConvert.INSTANCE.convertList03(socialUsers)); |
| 81 | return success(resp); | 81 | return success(resp); |
| 82 | } | 82 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/profile/UserProfileRespVO.java
| @@ -22,7 +22,7 @@ public class UserProfileRespVO extends UserBaseVO { | @@ -22,7 +22,7 @@ public class UserProfileRespVO extends UserBaseVO { | ||
| 22 | @ApiModelProperty(value = "用户编号", required = true, example = "1") | 22 | @ApiModelProperty(value = "用户编号", required = true, example = "1") |
| 23 | private Long id; | 23 | private Long id; |
| 24 | 24 | ||
| 25 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 25 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 26 | private Integer status; | 26 | private Integer status; |
| 27 | 27 | ||
| 28 | @ApiModelProperty(value = "最后登录 IP", required = true, example = "192.168.1.1") | 28 | @ApiModelProperty(value = "最后登录 IP", required = true, example = "192.168.1.1") |
| @@ -93,7 +93,7 @@ public class UserProfileRespVO extends UserBaseVO { | @@ -93,7 +93,7 @@ public class UserProfileRespVO extends UserBaseVO { | ||
| 93 | @Data | 93 | @Data |
| 94 | public static class SocialUser { | 94 | public static class SocialUser { |
| 95 | 95 | ||
| 96 | - @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 SysSocialTypeEnum 枚举类") | 96 | + @ApiModelProperty(value = "社交平台的类型", required = true, example = "10", notes = "参见 SocialTypeEnum 枚举类") |
| 97 | private Integer type; | 97 | private Integer type; |
| 98 | 98 | ||
| 99 | @ApiModelProperty(value = "社交的全局编号", required = true, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") | 99 | @ApiModelProperty(value = "社交的全局编号", required = true, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/profile/UserProfileUpdateReqVO.java
| @@ -25,7 +25,7 @@ public class UserProfileUpdateReqVO { | @@ -25,7 +25,7 @@ public class UserProfileUpdateReqVO { | ||
| 25 | @Length(min = 11, max = 11, message = "手机号长度必须 11 位") | 25 | @Length(min = 11, max = 11, message = "手机号长度必须 11 位") |
| 26 | private String mobile; | 26 | private String mobile; |
| 27 | 27 | ||
| 28 | - @ApiModelProperty(value = "用户性别", example = "1", notes = "参见 SysSexEnum 枚举类") | 28 | + @ApiModelProperty(value = "用户性别", example = "1", notes = "参见 SexEnum 枚举类") |
| 29 | private Integer sex; | 29 | private Integer sex; |
| 30 | 30 | ||
| 31 | } | 31 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserBaseVO.java
| @@ -43,10 +43,10 @@ public class UserBaseVO { | @@ -43,10 +43,10 @@ public class UserBaseVO { | ||
| 43 | @Length(min = 11, max = 11, message = "手机号长度必须 11 位") | 43 | @Length(min = 11, max = 11, message = "手机号长度必须 11 位") |
| 44 | private String mobile; | 44 | private String mobile; |
| 45 | 45 | ||
| 46 | - @ApiModelProperty(value = "用户性别", example = "1", notes = "参见 SysSexEnum 枚举类") | 46 | + @ApiModelProperty(value = "用户性别", example = "1", notes = "参见 SexEnum 枚举类") |
| 47 | private Integer sex; | 47 | private Integer sex; |
| 48 | 48 | ||
| 49 | - @ApiModelProperty(value = "用户头像", example = "http://www.iocoder.cn/xxx.png") | 49 | + @ApiModelProperty(value = "用户头像", example = "https://www.iocoder.cn/xxx.png") |
| 50 | private String avatar; | 50 | private String avatar; |
| 51 | 51 | ||
| 52 | } | 52 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserExportReqVO.java
| @@ -11,7 +11,7 @@ import java.util.Date; | @@ -11,7 +11,7 @@ import java.util.Date; | ||
| 11 | 11 | ||
| 12 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; | 12 | import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
| 13 | 13 | ||
| 14 | -@ApiModel(value = "管理后台 - 用户导出 Request VO", description = "参数和 SysUserPageReqVO 是一致的") | 14 | +@ApiModel(value = "管理后台 - 用户导出 Request VO", description = "参数和 UserPageReqVO 是一致的") |
| 15 | @Data | 15 | @Data |
| 16 | @NoArgsConstructor | 16 | @NoArgsConstructor |
| 17 | @AllArgsConstructor | 17 | @AllArgsConstructor |
| @@ -23,7 +23,7 @@ public class UserExportReqVO { | @@ -23,7 +23,7 @@ public class UserExportReqVO { | ||
| 23 | @ApiModelProperty(value = "手机号码", example = "yudao", notes = "模糊匹配") | 23 | @ApiModelProperty(value = "手机号码", example = "yudao", notes = "模糊匹配") |
| 24 | private String mobile; | 24 | private String mobile; |
| 25 | 25 | ||
| 26 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 26 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 27 | private Integer status; | 27 | private Integer status; |
| 28 | 28 | ||
| 29 | @ApiModelProperty(value = "开始时间", example = "2020-10-24") | 29 | @ApiModelProperty(value = "开始时间", example = "2020-10-24") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserPageReqVO.java
| @@ -26,7 +26,7 @@ public class UserPageReqVO extends PageParam { | @@ -26,7 +26,7 @@ public class UserPageReqVO extends PageParam { | ||
| 26 | @ApiModelProperty(value = "手机号码", example = "yudao", notes = "模糊匹配") | 26 | @ApiModelProperty(value = "手机号码", example = "yudao", notes = "模糊匹配") |
| 27 | private String mobile; | 27 | private String mobile; |
| 28 | 28 | ||
| 29 | - @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 29 | + @ApiModelProperty(value = "展示状态", example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 30 | private Integer status; | 30 | private Integer status; |
| 31 | 31 | ||
| 32 | @ApiModelProperty(value = "开始时间", example = "2020-10-24") | 32 | @ApiModelProperty(value = "开始时间", example = "2020-10-24") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserRespVO.java
| @@ -16,7 +16,7 @@ public class UserRespVO extends UserBaseVO { | @@ -16,7 +16,7 @@ public class UserRespVO extends UserBaseVO { | ||
| 16 | @ApiModelProperty(value = "用户编号", required = true, example = "1") | 16 | @ApiModelProperty(value = "用户编号", required = true, example = "1") |
| 17 | private Long id; | 17 | private Long id; |
| 18 | 18 | ||
| 19 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 SysCommonStatusEnum 枚举类") | 19 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类") |
| 20 | private Integer status; | 20 | private Integer status; |
| 21 | 21 | ||
| 22 | @ApiModelProperty(value = "最后登录 IP", required = true, example = "192.168.1.1") | 22 | @ApiModelProperty(value = "最后登录 IP", required = true, example = "192.168.1.1") |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/controller/admin/user/vo/user/UserUpdateStatusReqVO.java
| @@ -14,9 +14,9 @@ public class UserUpdateStatusReqVO { | @@ -14,9 +14,9 @@ public class UserUpdateStatusReqVO { | ||
| 14 | @NotNull(message = "角色编号不能为空") | 14 | @NotNull(message = "角色编号不能为空") |
| 15 | private Long id; | 15 | private Long id; |
| 16 | 16 | ||
| 17 | - @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 SysCommonStatusEnum 枚举") | 17 | + @ApiModelProperty(value = "状态", required = true, example = "1", notes = "见 CommonStatusEnum 枚举") |
| 18 | @NotNull(message = "状态不能为空") | 18 | @NotNull(message = "状态不能为空") |
| 19 | -// @InEnum(value = SysCommonStatusEnum.class, message = "修改状态必须是 {value}") | 19 | +// @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}") |
| 20 | private Integer status; | 20 | private Integer status; |
| 21 | 21 | ||
| 22 | } | 22 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/auth/UserSessionConvert.java
| 1 | package cn.iocoder.yudao.module.system.convert.auth; | 1 | package cn.iocoder.yudao.module.system.convert.auth; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.auth.vo.session.UserSessionPageItemRespVO; | 3 | import cn.iocoder.yudao.module.system.controller.admin.auth.vo.session.UserSessionPageItemRespVO; |
| 4 | -import cn.iocoder.yudao.module.system.dal.dataobject.auth.SysUserSessionDO; | 4 | +import cn.iocoder.yudao.module.system.dal.dataobject.auth.UserSessionDO; |
| 5 | import org.mapstruct.Mapper; | 5 | import org.mapstruct.Mapper; |
| 6 | import org.mapstruct.factory.Mappers; | 6 | import org.mapstruct.factory.Mappers; |
| 7 | 7 | ||
| @@ -10,6 +10,6 @@ public interface UserSessionConvert { | @@ -10,6 +10,6 @@ public interface UserSessionConvert { | ||
| 10 | 10 | ||
| 11 | UserSessionConvert INSTANCE = Mappers.getMapper(UserSessionConvert.class); | 11 | UserSessionConvert INSTANCE = Mappers.getMapper(UserSessionConvert.class); |
| 12 | 12 | ||
| 13 | - UserSessionPageItemRespVO convert(SysUserSessionDO session); | 13 | + UserSessionPageItemRespVO convert(UserSessionDO session); |
| 14 | 14 | ||
| 15 | } | 15 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/dept/DeptConvert.java
| @@ -4,7 +4,7 @@ import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptCreateRe | @@ -4,7 +4,7 @@ import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptCreateRe | ||
| 4 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptRespVO; | 4 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptRespVO; |
| 5 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptSimpleRespVO; | 5 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptSimpleRespVO; |
| 6 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptUpdateReqVO; | 6 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptUpdateReqVO; |
| 7 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysDeptDO; | 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; |
| 8 | import org.mapstruct.Mapper; | 8 | import org.mapstruct.Mapper; |
| 9 | import org.mapstruct.factory.Mappers; | 9 | import org.mapstruct.factory.Mappers; |
| 10 | 10 | ||
| @@ -15,14 +15,14 @@ public interface DeptConvert { | @@ -15,14 +15,14 @@ public interface DeptConvert { | ||
| 15 | 15 | ||
| 16 | DeptConvert INSTANCE = Mappers.getMapper(DeptConvert.class); | 16 | DeptConvert INSTANCE = Mappers.getMapper(DeptConvert.class); |
| 17 | 17 | ||
| 18 | - List<DeptRespVO> convertList(List<SysDeptDO> list); | 18 | + List<DeptRespVO> convertList(List<DeptDO> list); |
| 19 | 19 | ||
| 20 | - List<DeptSimpleRespVO> convertList02(List<SysDeptDO> list); | 20 | + List<DeptSimpleRespVO> convertList02(List<DeptDO> list); |
| 21 | 21 | ||
| 22 | - DeptRespVO convert(SysDeptDO bean); | 22 | + DeptRespVO convert(DeptDO bean); |
| 23 | 23 | ||
| 24 | - SysDeptDO convert(DeptCreateReqVO bean); | 24 | + DeptDO convert(DeptCreateReqVO bean); |
| 25 | 25 | ||
| 26 | - SysDeptDO convert(DeptUpdateReqVO bean); | 26 | + DeptDO convert(DeptUpdateReqVO bean); |
| 27 | 27 | ||
| 28 | } | 28 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/dept/PostConvert.java
| @@ -2,7 +2,7 @@ package cn.iocoder.yudao.module.system.convert.dept; | @@ -2,7 +2,7 @@ package cn.iocoder.yudao.module.system.convert.dept; | ||
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 3 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 4 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.*; | 4 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.*; |
| 5 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysPostDO; | 5 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.PostDO; |
| 6 | import org.mapstruct.Mapper; | 6 | import org.mapstruct.Mapper; |
| 7 | import org.mapstruct.factory.Mappers; | 7 | import org.mapstruct.factory.Mappers; |
| 8 | 8 | ||
| @@ -13,16 +13,16 @@ public interface PostConvert { | @@ -13,16 +13,16 @@ public interface PostConvert { | ||
| 13 | 13 | ||
| 14 | PostConvert INSTANCE = Mappers.getMapper(PostConvert.class); | 14 | PostConvert INSTANCE = Mappers.getMapper(PostConvert.class); |
| 15 | 15 | ||
| 16 | - List<PostSimpleRespVO> convertList02(List<SysPostDO> list); | 16 | + List<PostSimpleRespVO> convertList02(List<PostDO> list); |
| 17 | 17 | ||
| 18 | - PageResult<PostRespVO> convertPage(PageResult<SysPostDO> page); | 18 | + PageResult<PostRespVO> convertPage(PageResult<PostDO> page); |
| 19 | 19 | ||
| 20 | - PostRespVO convert(SysPostDO id); | 20 | + PostRespVO convert(PostDO id); |
| 21 | 21 | ||
| 22 | - SysPostDO convert(PostCreateReqVO bean); | 22 | + PostDO convert(PostCreateReqVO bean); |
| 23 | 23 | ||
| 24 | - SysPostDO convert(PostUpdateReqVO reqVO); | 24 | + PostDO convert(PostUpdateReqVO reqVO); |
| 25 | 25 | ||
| 26 | - List<PostExcelVO> convertList03(List<SysPostDO> list); | 26 | + List<PostExcelVO> convertList03(List<PostDO> list); |
| 27 | 27 | ||
| 28 | } | 28 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/dict/DictDataConvert.java
| 1 | package cn.iocoder.yudao.module.system.convert.dict; | 1 | package cn.iocoder.yudao.module.system.convert.dict; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.dict.vo.data.*; | 3 | import cn.iocoder.yudao.module.system.controller.admin.dict.vo.data.*; |
| 4 | -import cn.iocoder.yudao.module.system.dal.dataobject.dict.SysDictDataDO; | 4 | +import cn.iocoder.yudao.module.system.dal.dataobject.dict.DictDataDO; |
| 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 6 | import cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO; | 6 | import cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO; |
| 7 | import org.mapstruct.Mapper; | 7 | import org.mapstruct.Mapper; |
| @@ -15,20 +15,20 @@ public interface DictDataConvert { | @@ -15,20 +15,20 @@ public interface DictDataConvert { | ||
| 15 | 15 | ||
| 16 | DictDataConvert INSTANCE = Mappers.getMapper(DictDataConvert.class); | 16 | DictDataConvert INSTANCE = Mappers.getMapper(DictDataConvert.class); |
| 17 | 17 | ||
| 18 | - List<DictDataSimpleRespVO> convertList(List<SysDictDataDO> list); | 18 | + List<DictDataSimpleRespVO> convertList(List<DictDataDO> list); |
| 19 | 19 | ||
| 20 | - DictDataRespVO convert(SysDictDataDO bean); | 20 | + DictDataRespVO convert(DictDataDO bean); |
| 21 | 21 | ||
| 22 | - PageResult<DictDataRespVO> convertPage(PageResult<SysDictDataDO> page); | 22 | + PageResult<DictDataRespVO> convertPage(PageResult<DictDataDO> page); |
| 23 | 23 | ||
| 24 | - SysDictDataDO convert(DictDataUpdateReqVO bean); | 24 | + DictDataDO convert(DictDataUpdateReqVO bean); |
| 25 | 25 | ||
| 26 | - SysDictDataDO convert(DictDataCreateReqVO bean); | 26 | + DictDataDO convert(DictDataCreateReqVO bean); |
| 27 | 27 | ||
| 28 | - List<DictDataExcelVO> convertList02(List<SysDictDataDO> bean); | 28 | + List<DictDataExcelVO> convertList02(List<DictDataDO> bean); |
| 29 | 29 | ||
| 30 | - DictDataRespDTO convert02(SysDictDataDO bean); | 30 | + DictDataRespDTO convert02(DictDataDO bean); |
| 31 | 31 | ||
| 32 | - List<DictDataRespDTO> convertList03(Collection<SysDictDataDO> list); | 32 | + List<DictDataRespDTO> convertList03(Collection<DictDataDO> list); |
| 33 | 33 | ||
| 34 | } | 34 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/dict/SysDictDataCoreConvert.java deleted
| 1 | -package cn.iocoder.yudao.module.system.convert.dict; | ||
| 2 | - | ||
| 3 | -import cn.iocoder.yudao.module.system.dal.dataobject.dict.SysDictDataDO; | ||
| 4 | -import cn.iocoder.yudao.framework.dict.core.dto.DictDataRespDTO; | ||
| 5 | -import org.mapstruct.Mapper; | ||
| 6 | -import org.mapstruct.factory.Mappers; | ||
| 7 | - | ||
| 8 | -import java.util.Collection; | ||
| 9 | -import java.util.List; | ||
| 10 | - | ||
| 11 | -@Mapper | ||
| 12 | -public interface SysDictDataCoreConvert { | ||
| 13 | - | ||
| 14 | - SysDictDataCoreConvert INSTANCE = Mappers.getMapper(SysDictDataCoreConvert.class); | ||
| 15 | - | ||
| 16 | - DictDataRespDTO convert02(SysDictDataDO bean); | ||
| 17 | - | ||
| 18 | - List<DictDataRespDTO> convertList03(Collection<SysDictDataDO> list); | ||
| 19 | - | ||
| 20 | -} |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/logger/LoginLogConvert.java
| 1 | package cn.iocoder.yudao.module.system.convert.logger; | 1 | package cn.iocoder.yudao.module.system.convert.logger; |
| 2 | 2 | ||
| 3 | +import cn.iocoder.yudao.framework.common.pojo.PageResult; | ||
| 4 | +import cn.iocoder.yudao.module.system.api.logger.dto.LoginLogCreateReqDTO; | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.logger.vo.loginlog.LoginLogExcelVO; | 5 | import cn.iocoder.yudao.module.system.controller.admin.logger.vo.loginlog.LoginLogExcelVO; |
| 4 | import cn.iocoder.yudao.module.system.controller.admin.logger.vo.loginlog.LoginLogRespVO; | 6 | import cn.iocoder.yudao.module.system.controller.admin.logger.vo.loginlog.LoginLogRespVO; |
| 5 | -import cn.iocoder.yudao.module.system.dal.dataobject.logger.SysLoginLogDO; | ||
| 6 | -import cn.iocoder.yudao.framework.common.pojo.PageResult; | 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.logger.LoginLogDO; |
| 7 | import org.mapstruct.Mapper; | 8 | import org.mapstruct.Mapper; |
| 8 | import org.mapstruct.factory.Mappers; | 9 | import org.mapstruct.factory.Mappers; |
| 9 | 10 | ||
| @@ -14,8 +15,10 @@ public interface LoginLogConvert { | @@ -14,8 +15,10 @@ public interface LoginLogConvert { | ||
| 14 | 15 | ||
| 15 | LoginLogConvert INSTANCE = Mappers.getMapper(LoginLogConvert.class); | 16 | LoginLogConvert INSTANCE = Mappers.getMapper(LoginLogConvert.class); |
| 16 | 17 | ||
| 17 | - PageResult<LoginLogRespVO> convertPage(PageResult<SysLoginLogDO> page); | 18 | + PageResult<LoginLogRespVO> convertPage(PageResult<LoginLogDO> page); |
| 19 | + | ||
| 20 | + List<LoginLogExcelVO> convertList(List<LoginLogDO> list); | ||
| 18 | 21 | ||
| 19 | - List<LoginLogExcelVO> convertList(List<SysLoginLogDO> list); | 22 | + LoginLogDO convert(LoginLogCreateReqDTO bean); |
| 20 | 23 | ||
| 21 | } | 24 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/logger/SysLoginLogCoreConvert.java deleted
| 1 | -package cn.iocoder.yudao.module.system.convert.logger; | ||
| 2 | - | ||
| 3 | -import cn.iocoder.yudao.module.system.dal.dataobject.logger.SysLoginLogDO; | ||
| 4 | -import cn.iocoder.yudao.module.system.api.logger.dto.LoginLogCreateReqDTO; | ||
| 5 | -import org.mapstruct.Mapper; | ||
| 6 | -import org.mapstruct.factory.Mappers; | ||
| 7 | - | ||
| 8 | -@Mapper | ||
| 9 | -public interface SysLoginLogCoreConvert { | ||
| 10 | - | ||
| 11 | - SysLoginLogCoreConvert INSTANCE = Mappers.getMapper(SysLoginLogCoreConvert.class); | ||
| 12 | - | ||
| 13 | - SysLoginLogDO convert(LoginLogCreateReqDTO bean); | ||
| 14 | - | ||
| 15 | -} |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/sms/SmsChannelConvert.java
| @@ -4,7 +4,7 @@ import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.SmsChannel | @@ -4,7 +4,7 @@ import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.SmsChannel | ||
| 4 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.SmsChannelRespVO; | 4 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.SmsChannelRespVO; |
| 5 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.SmsChannelSimpleRespVO; | 5 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.SmsChannelSimpleRespVO; |
| 6 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.SmsChannelUpdateReqVO; | 6 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel.SmsChannelUpdateReqVO; |
| 7 | -import cn.iocoder.yudao.module.system.dal.dataobject.sms.SysSmsChannelDO; | 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.sms.SmsChannelDO; |
| 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 9 | import cn.iocoder.yudao.framework.sms.core.property.SmsChannelProperties; | 9 | import cn.iocoder.yudao.framework.sms.core.property.SmsChannelProperties; |
| 10 | import org.mapstruct.Mapper; | 10 | import org.mapstruct.Mapper; |
| @@ -22,18 +22,18 @@ public interface SmsChannelConvert { | @@ -22,18 +22,18 @@ public interface SmsChannelConvert { | ||
| 22 | 22 | ||
| 23 | SmsChannelConvert INSTANCE = Mappers.getMapper(SmsChannelConvert.class); | 23 | SmsChannelConvert INSTANCE = Mappers.getMapper(SmsChannelConvert.class); |
| 24 | 24 | ||
| 25 | - SysSmsChannelDO convert(SmsChannelCreateReqVO bean); | 25 | + SmsChannelDO convert(SmsChannelCreateReqVO bean); |
| 26 | 26 | ||
| 27 | - SysSmsChannelDO convert(SmsChannelUpdateReqVO bean); | 27 | + SmsChannelDO convert(SmsChannelUpdateReqVO bean); |
| 28 | 28 | ||
| 29 | - SmsChannelRespVO convert(SysSmsChannelDO bean); | 29 | + SmsChannelRespVO convert(SmsChannelDO bean); |
| 30 | 30 | ||
| 31 | - List<SmsChannelRespVO> convertList(List<SysSmsChannelDO> list); | 31 | + List<SmsChannelRespVO> convertList(List<SmsChannelDO> list); |
| 32 | 32 | ||
| 33 | - PageResult<SmsChannelRespVO> convertPage(PageResult<SysSmsChannelDO> page); | 33 | + PageResult<SmsChannelRespVO> convertPage(PageResult<SmsChannelDO> page); |
| 34 | 34 | ||
| 35 | - List<SmsChannelProperties> convertList02(List<SysSmsChannelDO> list); | 35 | + List<SmsChannelProperties> convertList02(List<SmsChannelDO> list); |
| 36 | 36 | ||
| 37 | - List<SmsChannelSimpleRespVO> convertList03(List<SysSmsChannelDO> list); | 37 | + List<SmsChannelSimpleRespVO> convertList03(List<SmsChannelDO> list); |
| 38 | 38 | ||
| 39 | } | 39 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/sms/SmsLogConvert.java
| 1 | package cn.iocoder.yudao.module.system.convert.sms; | 1 | package cn.iocoder.yudao.module.system.convert.sms; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogExcelVO; | 3 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogExcelVO; |
| 4 | -import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SysSmsLogRespVO; | ||
| 5 | -import cn.iocoder.yudao.module.system.dal.dataobject.sms.SysSmsLogDO; | 4 | +import cn.iocoder.yudao.module.system.controller.admin.sms.vo.log.SmsLogRespVO; |
| 5 | +import cn.iocoder.yudao.module.system.dal.dataobject.sms.SmsLogDO; | ||
| 6 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 6 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 7 | import org.mapstruct.Mapper; | 7 | import org.mapstruct.Mapper; |
| 8 | import org.mapstruct.factory.Mappers; | 8 | import org.mapstruct.factory.Mappers; |
| @@ -19,12 +19,12 @@ public interface SmsLogConvert { | @@ -19,12 +19,12 @@ public interface SmsLogConvert { | ||
| 19 | 19 | ||
| 20 | SmsLogConvert INSTANCE = Mappers.getMapper(SmsLogConvert.class); | 20 | SmsLogConvert INSTANCE = Mappers.getMapper(SmsLogConvert.class); |
| 21 | 21 | ||
| 22 | - SysSmsLogRespVO convert(SysSmsLogDO bean); | 22 | + SmsLogRespVO convert(SmsLogDO bean); |
| 23 | 23 | ||
| 24 | - List<SysSmsLogRespVO> convertList(List<SysSmsLogDO> list); | 24 | + List<SmsLogRespVO> convertList(List<SmsLogDO> list); |
| 25 | 25 | ||
| 26 | - PageResult<SysSmsLogRespVO> convertPage(PageResult<SysSmsLogDO> page); | 26 | + PageResult<SmsLogRespVO> convertPage(PageResult<SmsLogDO> page); |
| 27 | 27 | ||
| 28 | - List<SmsLogExcelVO> convertList02(List<SysSmsLogDO> list); | 28 | + List<SmsLogExcelVO> convertList02(List<SmsLogDO> list); |
| 29 | 29 | ||
| 30 | } | 30 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/sms/SmsTemplateConvert.java
| @@ -4,7 +4,7 @@ import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTempla | @@ -4,7 +4,7 @@ import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTempla | ||
| 4 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTemplateExcelVO; | 4 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTemplateExcelVO; |
| 5 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTemplateRespVO; | 5 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTemplateRespVO; |
| 6 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTemplateUpdateReqVO; | 6 | import cn.iocoder.yudao.module.system.controller.admin.sms.vo.template.SmsTemplateUpdateReqVO; |
| 7 | -import cn.iocoder.yudao.module.system.dal.dataobject.sms.SysSmsTemplateDO; | 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.sms.SmsTemplateDO; |
| 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 9 | import org.mapstruct.Mapper; | 9 | import org.mapstruct.Mapper; |
| 10 | import org.mapstruct.factory.Mappers; | 10 | import org.mapstruct.factory.Mappers; |
| @@ -16,16 +16,16 @@ public interface SmsTemplateConvert { | @@ -16,16 +16,16 @@ public interface SmsTemplateConvert { | ||
| 16 | 16 | ||
| 17 | SmsTemplateConvert INSTANCE = Mappers.getMapper(SmsTemplateConvert.class); | 17 | SmsTemplateConvert INSTANCE = Mappers.getMapper(SmsTemplateConvert.class); |
| 18 | 18 | ||
| 19 | - SysSmsTemplateDO convert(SmsTemplateCreateReqVO bean); | 19 | + SmsTemplateDO convert(SmsTemplateCreateReqVO bean); |
| 20 | 20 | ||
| 21 | - SysSmsTemplateDO convert(SmsTemplateUpdateReqVO bean); | 21 | + SmsTemplateDO convert(SmsTemplateUpdateReqVO bean); |
| 22 | 22 | ||
| 23 | - SmsTemplateRespVO convert(SysSmsTemplateDO bean); | 23 | + SmsTemplateRespVO convert(SmsTemplateDO bean); |
| 24 | 24 | ||
| 25 | - List<SmsTemplateRespVO> convertList(List<SysSmsTemplateDO> list); | 25 | + List<SmsTemplateRespVO> convertList(List<SmsTemplateDO> list); |
| 26 | 26 | ||
| 27 | - PageResult<SmsTemplateRespVO> convertPage(PageResult<SysSmsTemplateDO> page); | 27 | + PageResult<SmsTemplateRespVO> convertPage(PageResult<SmsTemplateDO> page); |
| 28 | 28 | ||
| 29 | - List<SmsTemplateExcelVO> convertList02(List<SysSmsTemplateDO> list); | 29 | + List<SmsTemplateExcelVO> convertList02(List<SmsTemplateDO> list); |
| 30 | 30 | ||
| 31 | } | 31 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/tenant/TenantConvert.java
| @@ -4,7 +4,7 @@ import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.TenantCreateReq | @@ -4,7 +4,7 @@ import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.TenantCreateReq | ||
| 4 | import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.TenantExcelVO; | 4 | import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.TenantExcelVO; |
| 5 | import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.TenantRespVO; | 5 | import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.TenantRespVO; |
| 6 | import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.TenantUpdateReqVO; | 6 | import cn.iocoder.yudao.module.system.controller.admin.tenant.vo.TenantUpdateReqVO; |
| 7 | -import cn.iocoder.yudao.module.system.dal.dataobject.tenant.SysTenantDO; | 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.tenant.TenantDO; |
| 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 8 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 9 | import org.mapstruct.Mapper; | 9 | import org.mapstruct.Mapper; |
| 10 | import org.mapstruct.factory.Mappers; | 10 | import org.mapstruct.factory.Mappers; |
| @@ -21,16 +21,16 @@ public interface TenantConvert { | @@ -21,16 +21,16 @@ public interface TenantConvert { | ||
| 21 | 21 | ||
| 22 | TenantConvert INSTANCE = Mappers.getMapper(TenantConvert.class); | 22 | TenantConvert INSTANCE = Mappers.getMapper(TenantConvert.class); |
| 23 | 23 | ||
| 24 | - SysTenantDO convert(TenantCreateReqVO bean); | 24 | + TenantDO convert(TenantCreateReqVO bean); |
| 25 | 25 | ||
| 26 | - SysTenantDO convert(TenantUpdateReqVO bean); | 26 | + TenantDO convert(TenantUpdateReqVO bean); |
| 27 | 27 | ||
| 28 | - TenantRespVO convert(SysTenantDO bean); | 28 | + TenantRespVO convert(TenantDO bean); |
| 29 | 29 | ||
| 30 | - List<TenantRespVO> convertList(List<SysTenantDO> list); | 30 | + List<TenantRespVO> convertList(List<TenantDO> list); |
| 31 | 31 | ||
| 32 | - PageResult<TenantRespVO> convertPage(PageResult<SysTenantDO> page); | 32 | + PageResult<TenantRespVO> convertPage(PageResult<TenantDO> page); |
| 33 | 33 | ||
| 34 | - List<TenantExcelVO> convertList02(List<SysTenantDO> list); | 34 | + List<TenantExcelVO> convertList02(List<TenantDO> list); |
| 35 | 35 | ||
| 36 | } | 36 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/convert/user/UserConvert.java
| @@ -4,10 +4,10 @@ import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfi | @@ -4,10 +4,10 @@ import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfi | ||
| 4 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdatePasswordReqVO; | 4 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdatePasswordReqVO; |
| 5 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdateReqVO; | 5 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.profile.UserProfileUpdateReqVO; |
| 6 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.user.*; | 6 | import cn.iocoder.yudao.module.system.controller.admin.user.vo.user.*; |
| 7 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysDeptDO; | ||
| 8 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysPostDO; | 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; |
| 8 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.PostDO; | ||
| 9 | import cn.iocoder.yudao.module.system.dal.dataobject.permission.RoleDO; | 9 | import cn.iocoder.yudao.module.system.dal.dataobject.permission.RoleDO; |
| 10 | -import cn.iocoder.yudao.module.system.dal.dataobject.social.SysSocialUserDO; | 10 | +import cn.iocoder.yudao.module.system.dal.dataobject.social.SocialUserDO; |
| 11 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; | 11 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; |
| 12 | import org.mapstruct.Mapper; | 12 | import org.mapstruct.Mapper; |
| 13 | import org.mapstruct.factory.Mappers; | 13 | import org.mapstruct.factory.Mappers; |
| @@ -21,7 +21,7 @@ public interface UserConvert { | @@ -21,7 +21,7 @@ public interface UserConvert { | ||
| 21 | 21 | ||
| 22 | UserPageItemRespVO convert(AdminUserDO bean); | 22 | UserPageItemRespVO convert(AdminUserDO bean); |
| 23 | 23 | ||
| 24 | - UserPageItemRespVO.Dept convert(SysDeptDO bean); | 24 | + UserPageItemRespVO.Dept convert(DeptDO bean); |
| 25 | 25 | ||
| 26 | AdminUserDO convert(UserCreateReqVO bean); | 26 | AdminUserDO convert(UserCreateReqVO bean); |
| 27 | 27 | ||
| @@ -35,15 +35,15 @@ public interface UserConvert { | @@ -35,15 +35,15 @@ public interface UserConvert { | ||
| 35 | 35 | ||
| 36 | List<UserProfileRespVO.Role> convertList(List<RoleDO> list); | 36 | List<UserProfileRespVO.Role> convertList(List<RoleDO> list); |
| 37 | 37 | ||
| 38 | - UserProfileRespVO.Dept convert02(SysDeptDO bean); | 38 | + UserProfileRespVO.Dept convert02(DeptDO bean); |
| 39 | 39 | ||
| 40 | AdminUserDO convert(UserProfileUpdateReqVO bean); | 40 | AdminUserDO convert(UserProfileUpdateReqVO bean); |
| 41 | 41 | ||
| 42 | AdminUserDO convert(UserProfileUpdatePasswordReqVO bean); | 42 | AdminUserDO convert(UserProfileUpdatePasswordReqVO bean); |
| 43 | 43 | ||
| 44 | - List<UserProfileRespVO.Post> convertList02(List<SysPostDO> list); | 44 | + List<UserProfileRespVO.Post> convertList02(List<PostDO> list); |
| 45 | 45 | ||
| 46 | - List<UserProfileRespVO.SocialUser> convertList03(List<SysSocialUserDO> list); | 46 | + List<UserProfileRespVO.SocialUser> convertList03(List<SocialUserDO> list); |
| 47 | 47 | ||
| 48 | List<UserSimpleRespVO> convertList04(List<AdminUserDO> list); | 48 | List<UserSimpleRespVO> convertList04(List<AdminUserDO> list); |
| 49 | } | 49 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/auth/SysUserSessionDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/auth/UserSessionDO.java
| @@ -17,15 +17,15 @@ import java.util.Date; | @@ -17,15 +17,15 @@ import java.util.Date; | ||
| 17 | * | 17 | * |
| 18 | * 我们已经将 {@link LoginUser} 缓存在 Redis 当中。 | 18 | * 我们已经将 {@link LoginUser} 缓存在 Redis 当中。 |
| 19 | * 这里额外存储在线用户到 MySQL 中,目的是为了方便管理界面可以灵活查询。 | 19 | * 这里额外存储在线用户到 MySQL 中,目的是为了方便管理界面可以灵活查询。 |
| 20 | - * 同时,通过定时轮询 SysUserSessionDO 表,可以主动删除 Redis 的缓存,因为 Redis 的过期删除是延迟的。 | 20 | + * 同时,通过定时轮询 UserSessionDO 表,可以主动删除 Redis 的缓存,因为 Redis 的过期删除是延迟的。 |
| 21 | * | 21 | * |
| 22 | * @author 芋道源码 | 22 | * @author 芋道源码 |
| 23 | */ | 23 | */ |
| 24 | -@TableName(value = "sys_user_session", autoResultMap = true) | 24 | +@TableName(value = "system_user_session", autoResultMap = true) |
| 25 | @Data | 25 | @Data |
| 26 | @Builder | 26 | @Builder |
| 27 | @EqualsAndHashCode(callSuper = true) | 27 | @EqualsAndHashCode(callSuper = true) |
| 28 | -public class SysUserSessionDO extends TenantBaseDO { | 28 | +public class UserSessionDO extends TenantBaseDO { |
| 29 | 29 | ||
| 30 | /** | 30 | /** |
| 31 | * 会话编号, 即 sessionId | 31 | * 会话编号, 即 sessionId |
| @@ -35,7 +35,7 @@ public class SysUserSessionDO extends TenantBaseDO { | @@ -35,7 +35,7 @@ public class SysUserSessionDO extends TenantBaseDO { | ||
| 35 | /** | 35 | /** |
| 36 | * 用户编号 | 36 | * 用户编号 |
| 37 | * | 37 | * |
| 38 | - * 关联 SysUserDO.id 或者 MbrUserDO.id | 38 | + * 关联 AdminUserDO.id 或者 MemberUserDO.id |
| 39 | */ | 39 | */ |
| 40 | private Long userId; | 40 | private Long userId; |
| 41 | /** | 41 | /** |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/dept/SysDeptDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/dept/DeptDO.java
| @@ -14,10 +14,10 @@ import lombok.EqualsAndHashCode; | @@ -14,10 +14,10 @@ import lombok.EqualsAndHashCode; | ||
| 14 | * @author ruoyi | 14 | * @author ruoyi |
| 15 | * @author 芋道源码 | 15 | * @author 芋道源码 |
| 16 | */ | 16 | */ |
| 17 | -@TableName("sys_dept") | 17 | +@TableName("system_dept") |
| 18 | @Data | 18 | @Data |
| 19 | @EqualsAndHashCode(callSuper = true) | 19 | @EqualsAndHashCode(callSuper = true) |
| 20 | -public class SysDeptDO extends TenantBaseDO { | 20 | +public class DeptDO extends TenantBaseDO { |
| 21 | 21 | ||
| 22 | /** | 22 | /** |
| 23 | * 部门ID | 23 | * 部门ID |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/dept/SysPostDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/dept/PostDO.java
| @@ -12,10 +12,10 @@ import lombok.EqualsAndHashCode; | @@ -12,10 +12,10 @@ import lombok.EqualsAndHashCode; | ||
| 12 | * | 12 | * |
| 13 | * @author ruoyi | 13 | * @author ruoyi |
| 14 | */ | 14 | */ |
| 15 | -@TableName("sys_post") | 15 | +@TableName("system_post") |
| 16 | @Data | 16 | @Data |
| 17 | @EqualsAndHashCode(callSuper = true) | 17 | @EqualsAndHashCode(callSuper = true) |
| 18 | -public class SysPostDO extends TenantBaseDO { | 18 | +public class PostDO extends TenantBaseDO { |
| 19 | 19 | ||
| 20 | /** | 20 | /** |
| 21 | * 岗位序号 | 21 | * 岗位序号 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/dict/SysDictDataDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/dict/DictDataDO.java
| @@ -12,10 +12,10 @@ import lombok.EqualsAndHashCode; | @@ -12,10 +12,10 @@ import lombok.EqualsAndHashCode; | ||
| 12 | * | 12 | * |
| 13 | * @author ruoyi | 13 | * @author ruoyi |
| 14 | */ | 14 | */ |
| 15 | -@TableName("sys_dict_data") | 15 | +@TableName("system_dict_data") |
| 16 | @Data | 16 | @Data |
| 17 | @EqualsAndHashCode(callSuper = true) | 17 | @EqualsAndHashCode(callSuper = true) |
| 18 | -public class SysDictDataDO extends BaseDO { | 18 | +public class DictDataDO extends BaseDO { |
| 19 | 19 | ||
| 20 | /** | 20 | /** |
| 21 | * 字典数据编号 | 21 | * 字典数据编号 |
| @@ -37,7 +37,7 @@ public class SysDictDataDO extends BaseDO { | @@ -37,7 +37,7 @@ public class SysDictDataDO extends BaseDO { | ||
| 37 | /** | 37 | /** |
| 38 | * 字典类型 | 38 | * 字典类型 |
| 39 | * | 39 | * |
| 40 | - * 冗余 {@link SysDictDataDO#getDictType()} | 40 | + * 冗余 {@link DictDataDO#getDictType()} |
| 41 | */ | 41 | */ |
| 42 | private String dictType; | 42 | private String dictType; |
| 43 | /** | 43 | /** |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/logger/SysLoginLogDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/logger/LoginLogDO.java
| @@ -16,11 +16,11 @@ import lombok.ToString; | @@ -16,11 +16,11 @@ import lombok.ToString; | ||
| 16 | * | 16 | * |
| 17 | * @author 芋道源码 | 17 | * @author 芋道源码 |
| 18 | */ | 18 | */ |
| 19 | -@TableName("sys_login_log") | 19 | +@TableName("system_login_log") |
| 20 | @Data | 20 | @Data |
| 21 | @EqualsAndHashCode(callSuper = true) | 21 | @EqualsAndHashCode(callSuper = true) |
| 22 | @ToString(callSuper = true) | 22 | @ToString(callSuper = true) |
| 23 | -public class SysLoginLogDO extends BaseDO { | 23 | +public class LoginLogDO extends BaseDO { |
| 24 | 24 | ||
| 25 | /** | 25 | /** |
| 26 | * 日志主键 | 26 | * 日志主键 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/permission/MenuDO.java
| @@ -34,7 +34,7 @@ public class MenuDO extends BaseDO { | @@ -34,7 +34,7 @@ public class MenuDO extends BaseDO { | ||
| 34 | * 一般格式为:${系统}:${模块}:${操作} | 34 | * 一般格式为:${系统}:${模块}:${操作} |
| 35 | * 例如说:system:admin:add,即 system 服务的添加管理员。 | 35 | * 例如说:system:admin:add,即 system 服务的添加管理员。 |
| 36 | * | 36 | * |
| 37 | - * 当我们把该 SysMenuDO 赋予给角色后,意味着该角色有该资源: | 37 | + * 当我们把该 MenuDO 赋予给角色后,意味着该角色有该资源: |
| 38 | * - 对于后端,配合 @PreAuthorize 注解,配置 API 接口需要该权限,从而对 API 接口进行权限控制。 | 38 | * - 对于后端,配合 @PreAuthorize 注解,配置 API 接口需要该权限,从而对 API 接口进行权限控制。 |
| 39 | * - 对于前端,配合前端标签,配置按钮是否展示,避免用户没有该权限时,结果可以看到该操作。 | 39 | * - 对于前端,配合前端标签,配置按钮是否展示,避免用户没有该权限时,结果可以看到该操作。 |
| 40 | */ | 40 | */ |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/sms/SysSmsChannelDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/sms/SmsChannelDO.java
| @@ -14,11 +14,11 @@ import lombok.ToString; | @@ -14,11 +14,11 @@ import lombok.ToString; | ||
| 14 | * @author zzf | 14 | * @author zzf |
| 15 | * @since 2021-01-25 | 15 | * @since 2021-01-25 |
| 16 | */ | 16 | */ |
| 17 | -@TableName(value = "sys_sms_channel", autoResultMap = true) | 17 | +@TableName(value = "system_sms_channel", autoResultMap = true) |
| 18 | @Data | 18 | @Data |
| 19 | @EqualsAndHashCode(callSuper = true) | 19 | @EqualsAndHashCode(callSuper = true) |
| 20 | @ToString(callSuper = true) | 20 | @ToString(callSuper = true) |
| 21 | -public class SysSmsChannelDO extends BaseDO { | 21 | +public class SmsChannelDO extends BaseDO { |
| 22 | 22 | ||
| 23 | /** | 23 | /** |
| 24 | * 渠道编号 | 24 | * 渠道编号 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/sms/SysSmsLogDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/sms/SmsLogDO.java
| 1 | package cn.iocoder.yudao.module.system.dal.dataobject.sms; | 1 | package cn.iocoder.yudao.module.system.dal.dataobject.sms; |
| 2 | 2 | ||
| 3 | -import cn.iocoder.yudao.module.system.enums.sms.SysSmsReceiveStatusEnum; | ||
| 4 | -import cn.iocoder.yudao.module.system.enums.sms.SysSmsSendStatusEnum; | 3 | +import cn.iocoder.yudao.module.system.enums.sms.SmsReceiveStatusEnum; |
| 4 | +import cn.iocoder.yudao.module.system.enums.sms.SmsSendStatusEnum; | ||
| 5 | import cn.iocoder.yudao.framework.common.enums.UserTypeEnum; | 5 | import cn.iocoder.yudao.framework.common.enums.UserTypeEnum; |
| 6 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | 6 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
| 7 | import cn.iocoder.yudao.framework.sms.core.enums.SmsFrameworkErrorCodeConstants; | 7 | import cn.iocoder.yudao.framework.sms.core.enums.SmsFrameworkErrorCodeConstants; |
| @@ -19,14 +19,14 @@ import java.util.Map; | @@ -19,14 +19,14 @@ import java.util.Map; | ||
| 19 | * @author zzf | 19 | * @author zzf |
| 20 | * @since 2021-01-25 | 20 | * @since 2021-01-25 |
| 21 | */ | 21 | */ |
| 22 | -@TableName(value = "sys_sms_log", autoResultMap = true) | 22 | +@TableName(value = "system_sms_log", autoResultMap = true) |
| 23 | @Data | 23 | @Data |
| 24 | @EqualsAndHashCode(callSuper = true) | 24 | @EqualsAndHashCode(callSuper = true) |
| 25 | @ToString(callSuper = true) | 25 | @ToString(callSuper = true) |
| 26 | @Builder | 26 | @Builder |
| 27 | @AllArgsConstructor | 27 | @AllArgsConstructor |
| 28 | @NoArgsConstructor | 28 | @NoArgsConstructor |
| 29 | -public class SysSmsLogDO extends BaseDO { | 29 | +public class SmsLogDO extends BaseDO { |
| 30 | 30 | ||
| 31 | /** | 31 | /** |
| 32 | * 自增编号 | 32 | * 自增编号 |
| @@ -38,13 +38,13 @@ public class SysSmsLogDO extends BaseDO { | @@ -38,13 +38,13 @@ public class SysSmsLogDO extends BaseDO { | ||
| 38 | /** | 38 | /** |
| 39 | * 短信渠道编号 | 39 | * 短信渠道编号 |
| 40 | * | 40 | * |
| 41 | - * 关联 {@link SysSmsChannelDO#getId()} | 41 | + * 关联 {@link SmsChannelDO#getId()} |
| 42 | */ | 42 | */ |
| 43 | private Long channelId; | 43 | private Long channelId; |
| 44 | /** | 44 | /** |
| 45 | * 短信渠道编码 | 45 | * 短信渠道编码 |
| 46 | * | 46 | * |
| 47 | - * 冗余 {@link SysSmsChannelDO#getCode()} | 47 | + * 冗余 {@link SmsChannelDO#getCode()} |
| 48 | */ | 48 | */ |
| 49 | private String channelCode; | 49 | private String channelCode; |
| 50 | 50 | ||
| @@ -53,34 +53,34 @@ public class SysSmsLogDO extends BaseDO { | @@ -53,34 +53,34 @@ public class SysSmsLogDO extends BaseDO { | ||
| 53 | /** | 53 | /** |
| 54 | * 模板编号 | 54 | * 模板编号 |
| 55 | * | 55 | * |
| 56 | - * 关联 {@link SysSmsTemplateDO#getId()} | 56 | + * 关联 {@link SmsTemplateDO#getId()} |
| 57 | */ | 57 | */ |
| 58 | private Long templateId; | 58 | private Long templateId; |
| 59 | /** | 59 | /** |
| 60 | * 模板编码 | 60 | * 模板编码 |
| 61 | * | 61 | * |
| 62 | - * 冗余 {@link SysSmsTemplateDO#getCode()} | 62 | + * 冗余 {@link SmsTemplateDO#getCode()} |
| 63 | */ | 63 | */ |
| 64 | private String templateCode; | 64 | private String templateCode; |
| 65 | /** | 65 | /** |
| 66 | * 短信类型 | 66 | * 短信类型 |
| 67 | * | 67 | * |
| 68 | - * 冗余 {@link SysSmsTemplateDO#getType()} | 68 | + * 冗余 {@link SmsTemplateDO#getType()} |
| 69 | */ | 69 | */ |
| 70 | private Integer templateType; | 70 | private Integer templateType; |
| 71 | /** | 71 | /** |
| 72 | - * 基于 {@link SysSmsTemplateDO#getContent()} 格式化后的内容 | 72 | + * 基于 {@link SmsTemplateDO#getContent()} 格式化后的内容 |
| 73 | */ | 73 | */ |
| 74 | private String templateContent; | 74 | private String templateContent; |
| 75 | /** | 75 | /** |
| 76 | - * 基于 {@link SysSmsTemplateDO#getParams()} 输入后的参数 | 76 | + * 基于 {@link SmsTemplateDO#getParams()} 输入后的参数 |
| 77 | */ | 77 | */ |
| 78 | @TableField(typeHandler = JacksonTypeHandler.class) | 78 | @TableField(typeHandler = JacksonTypeHandler.class) |
| 79 | private Map<String, Object> templateParams; | 79 | private Map<String, Object> templateParams; |
| 80 | /** | 80 | /** |
| 81 | * 短信 API 的模板编号 | 81 | * 短信 API 的模板编号 |
| 82 | * | 82 | * |
| 83 | - * 冗余 {@link SysSmsTemplateDO#getApiTemplateId()} | 83 | + * 冗余 {@link SmsTemplateDO#getApiTemplateId()} |
| 84 | */ | 84 | */ |
| 85 | private String apiTemplateId; | 85 | private String apiTemplateId; |
| 86 | 86 | ||
| @@ -106,7 +106,7 @@ public class SysSmsLogDO extends BaseDO { | @@ -106,7 +106,7 @@ public class SysSmsLogDO extends BaseDO { | ||
| 106 | /** | 106 | /** |
| 107 | * 发送状态 | 107 | * 发送状态 |
| 108 | * | 108 | * |
| 109 | - * 枚举 {@link SysSmsSendStatusEnum} | 109 | + * 枚举 {@link SmsSendStatusEnum} |
| 110 | */ | 110 | */ |
| 111 | private Integer sendStatus; | 111 | private Integer sendStatus; |
| 112 | /** | 112 | /** |
| @@ -154,7 +154,7 @@ public class SysSmsLogDO extends BaseDO { | @@ -154,7 +154,7 @@ public class SysSmsLogDO extends BaseDO { | ||
| 154 | /** | 154 | /** |
| 155 | * 接收状态 | 155 | * 接收状态 |
| 156 | * | 156 | * |
| 157 | - * 枚举 {@link SysSmsReceiveStatusEnum} | 157 | + * 枚举 {@link SmsReceiveStatusEnum} |
| 158 | */ | 158 | */ |
| 159 | private Integer receiveStatus; | 159 | private Integer receiveStatus; |
| 160 | /** | 160 | /** |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/sms/SysSmsTemplateDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/sms/SmsTemplateDO.java
| 1 | package cn.iocoder.yudao.module.system.dal.dataobject.sms; | 1 | package cn.iocoder.yudao.module.system.dal.dataobject.sms; |
| 2 | 2 | ||
| 3 | -import cn.iocoder.yudao.module.system.enums.sms.SysSmsTemplateTypeEnum; | 3 | +import cn.iocoder.yudao.module.system.enums.sms.SmsTemplateTypeEnum; |
| 4 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | 4 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| 5 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | 5 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
| 6 | import com.baomidou.mybatisplus.annotation.TableField; | 6 | import com.baomidou.mybatisplus.annotation.TableField; |
| @@ -18,11 +18,11 @@ import java.util.List; | @@ -18,11 +18,11 @@ import java.util.List; | ||
| 18 | * @author zzf | 18 | * @author zzf |
| 19 | * @since 2021-01-25 | 19 | * @since 2021-01-25 |
| 20 | */ | 20 | */ |
| 21 | -@TableName(value = "sys_sms_template", autoResultMap = true) | 21 | +@TableName(value = "system_sms_template", autoResultMap = true) |
| 22 | @Data | 22 | @Data |
| 23 | @EqualsAndHashCode(callSuper = true) | 23 | @EqualsAndHashCode(callSuper = true) |
| 24 | @ToString(callSuper = true) | 24 | @ToString(callSuper = true) |
| 25 | -public class SysSmsTemplateDO extends BaseDO { | 25 | +public class SmsTemplateDO extends BaseDO { |
| 26 | 26 | ||
| 27 | /** | 27 | /** |
| 28 | * 自增编号 | 28 | * 自增编号 |
| @@ -34,7 +34,7 @@ public class SysSmsTemplateDO extends BaseDO { | @@ -34,7 +34,7 @@ public class SysSmsTemplateDO extends BaseDO { | ||
| 34 | /** | 34 | /** |
| 35 | * 短信类型 | 35 | * 短信类型 |
| 36 | * | 36 | * |
| 37 | - * 枚举 {@link SysSmsTemplateTypeEnum} | 37 | + * 枚举 {@link SmsTemplateTypeEnum} |
| 38 | */ | 38 | */ |
| 39 | private Integer type; | 39 | private Integer type; |
| 40 | /** | 40 | /** |
| @@ -76,13 +76,13 @@ public class SysSmsTemplateDO extends BaseDO { | @@ -76,13 +76,13 @@ public class SysSmsTemplateDO extends BaseDO { | ||
| 76 | /** | 76 | /** |
| 77 | * 短信渠道编号 | 77 | * 短信渠道编号 |
| 78 | * | 78 | * |
| 79 | - * 关联 {@link SysSmsChannelDO#getId()} | 79 | + * 关联 {@link SmsChannelDO#getId()} |
| 80 | */ | 80 | */ |
| 81 | private Long channelId; | 81 | private Long channelId; |
| 82 | /** | 82 | /** |
| 83 | * 短信渠道编码 | 83 | * 短信渠道编码 |
| 84 | * | 84 | * |
| 85 | - * 冗余 {@link SysSmsChannelDO#getCode()} | 85 | + * 冗余 {@link SmsChannelDO#getCode()} |
| 86 | */ | 86 | */ |
| 87 | private String channelCode; | 87 | private String channelCode; |
| 88 | 88 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/social/SysSocialUserDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/social/SocialUserDO.java
| @@ -9,17 +9,17 @@ import lombok.*; | @@ -9,17 +9,17 @@ import lombok.*; | ||
| 9 | 9 | ||
| 10 | /** | 10 | /** |
| 11 | * 社交用户 | 11 | * 社交用户 |
| 12 | - * 通过 {@link SysSocialUserDO#getUserId()} 关联到对应的 {@link AdminUserDO} | 12 | + * 通过 {@link SocialUserDO#getUserId()} 关联到对应的 {@link AdminUserDO} |
| 13 | * | 13 | * |
| 14 | * @author weir | 14 | * @author weir |
| 15 | */ | 15 | */ |
| 16 | -@TableName(value = "sys_social_user", autoResultMap = true) | 16 | +@TableName(value = "system_social_user", autoResultMap = true) |
| 17 | @Data | 17 | @Data |
| 18 | @EqualsAndHashCode(callSuper = true) | 18 | @EqualsAndHashCode(callSuper = true) |
| 19 | @Builder | 19 | @Builder |
| 20 | @NoArgsConstructor | 20 | @NoArgsConstructor |
| 21 | @AllArgsConstructor | 21 | @AllArgsConstructor |
| 22 | -public class SysSocialUserDO extends BaseDO { | 22 | +public class SocialUserDO extends BaseDO { |
| 23 | 23 | ||
| 24 | /** | 24 | /** |
| 25 | * 自增主键 | 25 | * 自增主键 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/tenant/SysTenantDO.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/tenant/TenantDO.java
| @@ -10,14 +10,14 @@ import lombok.*; | @@ -10,14 +10,14 @@ import lombok.*; | ||
| 10 | * | 10 | * |
| 11 | * @author 芋道源码 | 11 | * @author 芋道源码 |
| 12 | */ | 12 | */ |
| 13 | -@TableName(value = "sys_tenant", autoResultMap = true) | 13 | +@TableName(value = "system_tenant", autoResultMap = true) |
| 14 | @Data | 14 | @Data |
| 15 | @EqualsAndHashCode(callSuper = true) | 15 | @EqualsAndHashCode(callSuper = true) |
| 16 | @ToString(callSuper = true) | 16 | @ToString(callSuper = true) |
| 17 | @Builder | 17 | @Builder |
| 18 | @AllArgsConstructor | 18 | @AllArgsConstructor |
| 19 | @NoArgsConstructor | 19 | @NoArgsConstructor |
| 20 | -public class SysTenantDO extends BaseDO { | 20 | +public class TenantDO extends BaseDO { |
| 21 | 21 | ||
| 22 | /** | 22 | /** |
| 23 | * 租户编号,自增 | 23 | * 租户编号,自增 |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/user/AdminUserDO.java
| 1 | package cn.iocoder.yudao.module.system.dal.dataobject.user; | 1 | package cn.iocoder.yudao.module.system.dal.dataobject.user; |
| 2 | 2 | ||
| 3 | -import cn.iocoder.yudao.module.system.enums.common.SysSexEnum; | 3 | +import cn.iocoder.yudao.module.system.enums.common.SexEnum; |
| 4 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | 4 | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| 5 | import cn.iocoder.yudao.framework.mybatis.core.type.JsonLongSetTypeHandler; | 5 | import cn.iocoder.yudao.framework.mybatis.core.type.JsonLongSetTypeHandler; |
| 6 | import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; | 6 | import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; |
| @@ -18,7 +18,7 @@ import java.util.Set; | @@ -18,7 +18,7 @@ import java.util.Set; | ||
| 18 | * | 18 | * |
| 19 | * @author 芋道源码 | 19 | * @author 芋道源码 |
| 20 | */ | 20 | */ |
| 21 | -@TableName(value = "sys_user", autoResultMap = true) | 21 | +@TableName(value = "system_user", autoResultMap = true) |
| 22 | @Data | 22 | @Data |
| 23 | @EqualsAndHashCode(callSuper = true) | 23 | @EqualsAndHashCode(callSuper = true) |
| 24 | @Builder | 24 | @Builder |
| @@ -69,7 +69,7 @@ public class AdminUserDO extends TenantBaseDO { | @@ -69,7 +69,7 @@ public class AdminUserDO extends TenantBaseDO { | ||
| 69 | /** | 69 | /** |
| 70 | * 用户性别 | 70 | * 用户性别 |
| 71 | * | 71 | * |
| 72 | - * 枚举类 {@link SysSexEnum} | 72 | + * 枚举类 {@link SexEnum} |
| 73 | */ | 73 | */ |
| 74 | private Integer sex; | 74 | private Integer sex; |
| 75 | /** | 75 | /** |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/auth/SysUserSessionCoreMapper.java deleted
| 1 | -package cn.iocoder.yudao.module.system.dal.mysql.auth; | ||
| 2 | - | ||
| 3 | -import cn.iocoder.yudao.module.system.dal.dataobject.auth.SysUserSessionDO; | ||
| 4 | -import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; | ||
| 5 | -import org.apache.ibatis.annotations.Mapper; | ||
| 6 | - | ||
| 7 | -@Mapper | ||
| 8 | -public interface SysUserSessionCoreMapper extends BaseMapperX<SysUserSessionDO> { | ||
| 9 | - | ||
| 10 | -} |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/auth/SysUserSessionMapper.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/auth/UserSessionMapper.java
| 1 | package cn.iocoder.yudao.module.system.dal.mysql.auth; | 1 | package cn.iocoder.yudao.module.system.dal.mysql.auth; |
| 2 | 2 | ||
| 3 | import cn.iocoder.yudao.module.system.controller.admin.auth.vo.session.UserSessionPageReqVO; | 3 | import cn.iocoder.yudao.module.system.controller.admin.auth.vo.session.UserSessionPageReqVO; |
| 4 | -import cn.iocoder.yudao.module.system.dal.dataobject.auth.SysUserSessionDO; | 4 | +import cn.iocoder.yudao.module.system.dal.dataobject.auth.UserSessionDO; |
| 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; | 5 | import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 6 | import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; | 6 | import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
| 7 | import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX; | 7 | import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX; |
| @@ -12,16 +12,16 @@ import java.util.Date; | @@ -12,16 +12,16 @@ import java.util.Date; | ||
| 12 | import java.util.List; | 12 | import java.util.List; |
| 13 | 13 | ||
| 14 | @Mapper | 14 | @Mapper |
| 15 | -public interface SysUserSessionMapper extends BaseMapperX<SysUserSessionDO> { | 15 | +public interface UserSessionMapper extends BaseMapperX<UserSessionDO> { |
| 16 | 16 | ||
| 17 | - default PageResult<SysUserSessionDO> selectPage(UserSessionPageReqVO reqVO, Collection<Long> userIds) { | ||
| 18 | - return selectPage(reqVO, new QueryWrapperX<SysUserSessionDO>() | 17 | + default PageResult<UserSessionDO> selectPage(UserSessionPageReqVO reqVO, Collection<Long> userIds) { |
| 18 | + return selectPage(reqVO, new QueryWrapperX<UserSessionDO>() | ||
| 19 | .inIfPresent("user_id", userIds) | 19 | .inIfPresent("user_id", userIds) |
| 20 | .likeIfPresent("user_ip", reqVO.getUserIp())); | 20 | .likeIfPresent("user_ip", reqVO.getUserIp())); |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | - default List<SysUserSessionDO> selectListBySessionTimoutLt() { | ||
| 24 | - return selectList(new QueryWrapperX<SysUserSessionDO>().lt("session_timeout",new Date())); | 23 | + default List<UserSessionDO> selectListBySessionTimoutLt() { |
| 24 | + return selectList(new QueryWrapperX<UserSessionDO>().lt("session_timeout",new Date())); | ||
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | } | 27 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dept/SysDeptMapper.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dept/DeptMapper.java
| @@ -4,7 +4,7 @@ import cn.iocoder.yudao.framework.mybatis.core.enums.SqlConstants; | @@ -4,7 +4,7 @@ import cn.iocoder.yudao.framework.mybatis.core.enums.SqlConstants; | ||
| 4 | import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; | 4 | import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
| 5 | import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; | 5 | import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
| 6 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO; | 6 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO; |
| 7 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysDeptDO; | 7 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO; |
| 8 | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; | 8 | import com.baomidou.mybatisplus.annotation.InterceptorIgnore; |
| 9 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | 9 | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| 10 | import org.apache.ibatis.annotations.Mapper; | 10 | import org.apache.ibatis.annotations.Mapper; |
| @@ -13,26 +13,26 @@ import java.util.Date; | @@ -13,26 +13,26 @@ import java.util.Date; | ||
| 13 | import java.util.List; | 13 | import java.util.List; |
| 14 | 14 | ||
| 15 | @Mapper | 15 | @Mapper |
| 16 | -public interface SysDeptMapper extends BaseMapperX<SysDeptDO> { | 16 | +public interface DeptMapper extends BaseMapperX<DeptDO> { |
| 17 | 17 | ||
| 18 | - default List<SysDeptDO> selectList(DeptListReqVO reqVO) { | ||
| 19 | - return selectList(new LambdaQueryWrapperX<SysDeptDO>().likeIfPresent(SysDeptDO::getName, reqVO.getName()) | ||
| 20 | - .eqIfPresent(SysDeptDO::getStatus, reqVO.getStatus())); | 18 | + default List<DeptDO> selectList(DeptListReqVO reqVO) { |
| 19 | + return selectList(new LambdaQueryWrapperX<DeptDO>().likeIfPresent(DeptDO::getName, reqVO.getName()) | ||
| 20 | + .eqIfPresent(DeptDO::getStatus, reqVO.getStatus())); | ||
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | - default SysDeptDO selectByParentIdAndName(Long parentId, String name) { | ||
| 24 | - return selectOne(new LambdaQueryWrapper<SysDeptDO>().eq(SysDeptDO::getParentId, parentId) | ||
| 25 | - .eq(SysDeptDO::getName, name)); | 23 | + default DeptDO selectByParentIdAndName(Long parentId, String name) { |
| 24 | + return selectOne(new LambdaQueryWrapper<DeptDO>().eq(DeptDO::getParentId, parentId) | ||
| 25 | + .eq(DeptDO::getName, name)); | ||
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | default Integer selectCountByParentId(Long parentId) { | 28 | default Integer selectCountByParentId(Long parentId) { |
| 29 | - return selectCount(SysDeptDO::getParentId, parentId); | 29 | + return selectCount(DeptDO::getParentId, parentId); |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | @InterceptorIgnore(tenantLine = "on") // 该方法忽略多租户。原因:该方法被异步 task 调用,此时获取不到租户编号 | 32 | @InterceptorIgnore(tenantLine = "on") // 该方法忽略多租户。原因:该方法被异步 task 调用,此时获取不到租户编号 |
| 33 | default boolean selectExistsByUpdateTimeAfter(Date maxUpdateTime) { | 33 | default boolean selectExistsByUpdateTimeAfter(Date maxUpdateTime) { |
| 34 | - return selectOne(new LambdaQueryWrapper<SysDeptDO>().select(SysDeptDO::getId) | ||
| 35 | - .gt(SysDeptDO::getUpdateTime, maxUpdateTime).last(SqlConstants.LIMIT1)) != null; | 34 | + return selectOne(new LambdaQueryWrapper<DeptDO>().select(DeptDO::getId) |
| 35 | + .gt(DeptDO::getUpdateTime, maxUpdateTime).last(SqlConstants.LIMIT1)) != null; | ||
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | } | 38 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dept/SysPostMapper.java renamed to yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dept/PostMapper.java
| @@ -5,7 +5,7 @@ import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; | @@ -5,7 +5,7 @@ import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; | ||
| 5 | import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX; | 5 | import cn.iocoder.yudao.framework.mybatis.core.query.QueryWrapperX; |
| 6 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.PostExportReqVO; | 6 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.PostExportReqVO; |
| 7 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.PostPageReqVO; | 7 | import cn.iocoder.yudao.module.system.controller.admin.dept.vo.post.PostPageReqVO; |
| 8 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysPostDO; | 8 | +import cn.iocoder.yudao.module.system.dal.dataobject.dept.PostDO; |
| 9 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; | 9 | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| 10 | import org.apache.ibatis.annotations.Mapper; | 10 | import org.apache.ibatis.annotations.Mapper; |
| 11 | 11 | ||
| @@ -13,33 +13,33 @@ import java.util.Collection; | @@ -13,33 +13,33 @@ import java.util.Collection; | ||
| 13 | import java.util.List; | 13 | import java.util.List; |
| 14 | 14 | ||
| 15 | @Mapper | 15 | @Mapper |
| 16 | -public interface SysPostMapper extends BaseMapperX<SysPostDO> { | 16 | +public interface PostMapper extends BaseMapperX<PostDO> { |
| 17 | 17 | ||
| 18 | - default List<SysPostDO> selectList(Collection<Long> ids, Collection<Integer> statuses) { | ||
| 19 | - return selectList(new QueryWrapperX<SysPostDO>().inIfPresent("id", ids) | 18 | + default List<PostDO> selectList(Collection<Long> ids, Collection<Integer> statuses) { |
| 19 | + return selectList(new QueryWrapperX<PostDO>().inIfPresent("id", ids) | ||
| 20 | .inIfPresent("status", statuses)); | 20 | .inIfPresent("status", statuses)); |
| 21 | } | 21 | } |
| 22 | 22 | ||
| 23 | - default PageResult<SysPostDO> selectPage(PostPageReqVO reqVO) { | ||
| 24 | - return selectPage(reqVO, new QueryWrapperX<SysPostDO>() | 23 | + default PageResult<PostDO> selectPage(PostPageReqVO reqVO) { |
| 24 | + return selectPage(reqVO, new QueryWrapperX<PostDO>() | ||
| 25 | .likeIfPresent("code", reqVO.getCode()) | 25 | .likeIfPresent("code", reqVO.getCode()) |
| 26 | .likeIfPresent("name", reqVO.getName()) | 26 | .likeIfPresent("name", reqVO.getName()) |
| 27 | .eqIfPresent("status", reqVO.getStatus())); | 27 | .eqIfPresent("status", reqVO.getStatus())); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | - default List<SysPostDO> selectList(PostExportReqVO reqVO) { | ||
| 31 | - return selectList(new QueryWrapperX<SysPostDO>() | 30 | + default List<PostDO> selectList(PostExportReqVO reqVO) { |
| 31 | + return selectList(new QueryWrapperX<PostDO>() | ||
| 32 | .likeIfPresent("code", reqVO.getCode()) | 32 | .likeIfPresent("code", reqVO.getCode()) |
| 33 | .likeIfPresent("name", reqVO.getName()) | 33 | .likeIfPresent("name", reqVO.getName()) |
| 34 | .eqIfPresent("status", reqVO.getStatus())); | 34 | .eqIfPresent("status", reqVO.getStatus())); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | - default SysPostDO selectByName(String name) { | ||
| 38 | - return selectOne(new QueryWrapper<SysPostDO>().eq("name", name)); | 37 | + default PostDO selectByName(String name) { |
| 38 | + return selectOne(new QueryWrapper<PostDO>().eq("name", name)); | ||
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | - default SysPostDO selectByCode(String code) { | ||
| 42 | - return selectOne(new QueryWrapper<SysPostDO>().eq("code", code)); | 41 | + default PostDO selectByCode(String code) { |
| 42 | + return selectOne(new QueryWrapper<PostDO>().eq("code", code)); | ||
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | } | 45 | } |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dept/SysDeptCoreMapper.java deleted
| 1 | -package cn.iocoder.yudao.module.system.dal.mysql.dept; | ||
| 2 | - | ||
| 3 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysDeptDO; | ||
| 4 | -import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; | ||
| 5 | -import org.apache.ibatis.annotations.Mapper; | ||
| 6 | - | ||
| 7 | -@Mapper | ||
| 8 | -public interface SysDeptCoreMapper extends BaseMapperX<SysDeptDO> { | ||
| 9 | -} |
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/dal/mysql/dept/SysPostCoreMapper.java deleted
| 1 | -package cn.iocoder.yudao.module.system.dal.mysql.dept; | ||
| 2 | - | ||
| 3 | -import cn.iocoder.yudao.module.system.dal.dataobject.dept.SysPostDO; | ||
| 4 | -import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; | ||
| 5 | -import org.apache.ibatis.annotations.Mapper; | ||
| 6 | - | ||
| 7 | -@Mapper | ||
| 8 | -public interface SysPostCoreMapper extends BaseMapperX<SysPostDO> { | ||
| 9 | -} |