对齐 boot 与 cloud 的代码
parent
c03c32d01b
commit
93c123633e
|
@ -70,7 +70,7 @@ public class CodegenColumnBaseVO {
|
||||||
@NotNull(message = "是否为 List 查询操作的字段不能为空")
|
@NotNull(message = "是否为 List 查询操作的字段不能为空")
|
||||||
private Boolean listOperation;
|
private Boolean listOperation;
|
||||||
|
|
||||||
@Schema(description = "List 查询操作的条件类型,参见 CodegenColumnListConditionEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "LIKE")
|
@Schema(description = "List 查询操作的条件类型,参见 CodegenColumnListConditionEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "LIKE")
|
||||||
@NotNull(message = "List 查询操作的条件类型不能为空")
|
@NotNull(message = "List 查询操作的条件类型不能为空")
|
||||||
private String listOperationCondition;
|
private String listOperationCondition;
|
||||||
|
|
||||||
|
|
|
@ -17,13 +17,13 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class CodegenTablePageReqVO extends PageParam {
|
public class CodegenTablePageReqVO extends PageParam {
|
||||||
|
|
||||||
@Schema(description = "表名称,模糊匹配", example = "yudao")
|
@Schema(description = "表名称,模糊匹配", example = "yudao")
|
||||||
private String tableName;
|
private String tableName;
|
||||||
|
|
||||||
@Schema(description = "表描述,模糊匹配", example = "芋道")
|
@Schema(description = "表描述,模糊匹配", example = "芋道")
|
||||||
private String tableComment;
|
private String tableComment;
|
||||||
|
|
||||||
@Schema(description = "实体,模糊匹配", example = "Yudao")
|
@Schema(description = "实体,模糊匹配", example = "Yudao")
|
||||||
private String className;
|
private String className;
|
||||||
|
|
||||||
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package cn.iocoder.yudao.module.infra.controller.admin.config.vo;
|
package cn.iocoder.yudao.module.infra.controller.admin.config.vo;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
@ -16,10 +15,10 @@ public class ConfigExportReqVO {
|
||||||
@Schema(description = "参数名称", example = "模糊匹配")
|
@Schema(description = "参数名称", example = "模糊匹配")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "参数键名,模糊匹配", example = "yunai.db.username")
|
@Schema(description = "参数键名,模糊匹配", example = "yunai.db.username")
|
||||||
private String key;
|
private String key;
|
||||||
|
|
||||||
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", example = "1")
|
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", example = "1")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
||||||
|
|
|
@ -17,13 +17,13 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class ConfigPageReqVO extends PageParam {
|
public class ConfigPageReqVO extends PageParam {
|
||||||
|
|
||||||
@Schema(description = "数据源名称,模糊匹配", example = "名称")
|
@Schema(description = "数据源名称,模糊匹配", example = "名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "参数键名,模糊匹配", example = "yunai.db.username")
|
@Schema(description = "参数键名,模糊匹配", example = "yunai.db.username")
|
||||||
private String key;
|
private String key;
|
||||||
|
|
||||||
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", example = "1")
|
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", example = "1")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class ConfigRespVO extends ConfigBaseVO {
|
||||||
@Size(max = 100, message = "参数键名长度不能超过100个字符")
|
@Size(max = 100, message = "参数键名长度不能超过100个字符")
|
||||||
private String key;
|
private String key;
|
||||||
|
|
||||||
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
|
||||||
|
|
|
@ -15,7 +15,7 @@ import java.util.Map;
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class FileConfigCreateReqVO extends FileConfigBaseVO {
|
public class FileConfigCreateReqVO extends FileConfigBaseVO {
|
||||||
|
|
||||||
@Schema(description = "存储器,参见 FileStorageEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "存储器,参见 FileStorageEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
@NotNull(message = "存储器不能为空")
|
@NotNull(message = "存储器不能为空")
|
||||||
private Integer storage;
|
private Integer storage;
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ public class FileConfigRespVO extends FileConfigBaseVO {
|
||||||
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "存储器,参见 FileStorageEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "存储器,参见 FileStorageEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
@NotNull(message = "存储器不能为空")
|
@NotNull(message = "存储器不能为空")
|
||||||
private Integer storage;
|
private Integer storage;
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,10 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class FilePageReqVO extends PageParam {
|
public class FilePageReqVO extends PageParam {
|
||||||
|
|
||||||
@Schema(description = "文件路径,模糊匹配", example = "yudao")
|
@Schema(description = "文件路径,模糊匹配", example = "yudao")
|
||||||
private String path;
|
private String path;
|
||||||
|
|
||||||
@Schema(description = "文件类型,模糊匹配", example = "jpg")
|
@Schema(description = "文件类型,模糊匹配", example = "jpg")
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
|
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class ApiAccessLogBaseVO {
|
||||||
@NotNull(message = "用户编号不能为空")
|
@NotNull(message = "用户编号不能为空")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||||
@NotNull(message = "用户类型不能为空")
|
@NotNull(message = "用户类型不能为空")
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class ApiAccessLogExportReqVO {
|
||||||
@Schema(description = "应用名", example = "dashboard")
|
@Schema(description = "应用名", example = "dashboard")
|
||||||
private String applicationName;
|
private String applicationName;
|
||||||
|
|
||||||
@Schema(description = "请求地址,模糊匹配", example = "/xxx/yyy")
|
@Schema(description = "请求地址,模糊匹配", example = "/xxx/yyy")
|
||||||
private String requestUrl;
|
private String requestUrl;
|
||||||
|
|
||||||
@Schema(description = "开始时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
|
@Schema(description = "开始时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class ApiAccessLogPageReqVO extends PageParam {
|
||||||
@Schema(description = "应用名", example = "dashboard")
|
@Schema(description = "应用名", example = "dashboard")
|
||||||
private String applicationName;
|
private String applicationName;
|
||||||
|
|
||||||
@Schema(description = "请求地址,模糊匹配", example = "/xxx/yyy")
|
@Schema(description = "请求地址,模糊匹配", example = "/xxx/yyy")
|
||||||
private String requestUrl;
|
private String requestUrl;
|
||||||
|
|
||||||
@Schema(description = "开始时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
|
@Schema(description = "开始时间", example = "[2022-07-01 00:00:00, 2022-07-01 23:59:59]")
|
||||||
|
|
|
@ -16,7 +16,7 @@ import javax.validation.constraints.Size;
|
||||||
@Data
|
@Data
|
||||||
public class LoginLogCreateReqDTO {
|
public class LoginLogCreateReqDTO {
|
||||||
|
|
||||||
@Schema(description = "日志类型,参见 LoginLogTypeEnum 枚举类", required = true, example = "1" )
|
@Schema(description = "日志类型,参见 LoginLogTypeEnum 枚举类", required = true, example = "1" )
|
||||||
@NotNull(message = "日志类型不能为空")
|
@NotNull(message = "日志类型不能为空")
|
||||||
private Integer logType;
|
private Integer logType;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ public class LoginLogCreateReqDTO {
|
||||||
|
|
||||||
@Schema(description = "用户编号", example = "666")
|
@Schema(description = "用户编号", example = "666")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "2" )
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "2" )
|
||||||
@NotNull(message = "用户类型不能为空")
|
@NotNull(message = "用户类型不能为空")
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
@Schema(description = "用户账号", required = true, example = "yudao")
|
@Schema(description = "用户账号", required = true, example = "yudao")
|
||||||
|
@ -33,7 +33,7 @@ public class LoginLogCreateReqDTO {
|
||||||
@Size(max = 30, message = "用户账号长度不能超过30个字符")
|
@Size(max = 30, message = "用户账号长度不能超过30个字符")
|
||||||
private String username;
|
private String username;
|
||||||
|
|
||||||
@Schema(description = "登录结果,参见 LoginResultEnum 枚举类", required = true, example = "1")
|
@Schema(description = "登录结果,参见 LoginResultEnum 枚举类", required = true, example = "1")
|
||||||
@NotNull(message = "登录结果不能为空")
|
@NotNull(message = "登录结果不能为空")
|
||||||
private Integer result;
|
private Integer result;
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class OperateLogCreateReqDTO {
|
||||||
@NotEmpty(message = "操作名")
|
@NotEmpty(message = "操作名")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "操作分类,参见 SysOperateLogTypeEnum 枚举类", required = true, example = "1")
|
@Schema(description = "操作分类,参见 SysOperateLogTypeEnum 枚举类", required = true, example = "1")
|
||||||
@NotNull(message = "操作分类不能为空")
|
@NotNull(message = "操作分类不能为空")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class OAuth2AccessTokenCheckRespDTO implements Serializable {
|
||||||
@Schema(description = "用户编号", required = true, example = "10")
|
@Schema(description = "用户编号", required = true, example = "10")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "1")
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "1")
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
|
|
||||||
@Schema(description = "租户编号", required = true, example = "1024")
|
@Schema(description = "租户编号", required = true, example = "1024")
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class OAuth2AccessTokenCreateReqDTO implements Serializable {
|
||||||
@NotNull(message = "用户编号不能为空")
|
@NotNull(message = "用户编号不能为空")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "1")
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "1")
|
||||||
@NotNull(message = "用户类型不能为空")
|
@NotNull(message = "用户类型不能为空")
|
||||||
@InEnum(value = UserTypeEnum.class, message = "用户类型必须是 {value}")
|
@InEnum(value = UserTypeEnum.class, message = "用户类型必须是 {value}")
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class OAuth2AccessTokenRespDTO implements Serializable {
|
||||||
@Schema(description = "用户编号", required = true, example = "10")
|
@Schema(description = "用户编号", required = true, example = "10")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "1" )
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", required = true, example = "1" )
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
|
|
||||||
@Schema(description = "过期时间", required = true)
|
@Schema(description = "过期时间", required = true)
|
||||||
|
|
|
@ -4,7 +4,6 @@ import cn.hutool.core.util.StrUtil;
|
||||||
import cn.iocoder.yudao.framework.common.validation.InEnum;
|
import cn.iocoder.yudao.framework.common.validation.InEnum;
|
||||||
import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum;
|
import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
@ -42,7 +41,7 @@ public class AuthLoginReqVO {
|
||||||
|
|
||||||
// ========== 绑定社交登录时,需要传递如下参数 ==========
|
// ========== 绑定社交登录时,需要传递如下参数 ==========
|
||||||
|
|
||||||
@Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
@Schema(description = "社交平台的类型,参见 SysUserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
||||||
@InEnum(SocialTypeEnum.class)
|
@InEnum(SocialTypeEnum.class)
|
||||||
private Integer socialType;
|
private Integer socialType;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@ package cn.iocoder.yudao.module.system.controller.admin.auth.vo;
|
||||||
import cn.iocoder.yudao.framework.common.validation.InEnum;
|
import cn.iocoder.yudao.framework.common.validation.InEnum;
|
||||||
import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum;
|
import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
|
@ -8,10 +8,10 @@ import lombok.Data;
|
||||||
@Data
|
@Data
|
||||||
public class DeptListReqVO {
|
public class DeptListReqVO {
|
||||||
|
|
||||||
@Schema(description = "部门名称,模糊匹配", example = "芋道")
|
@Schema(description = "部门名称,模糊匹配", example = "芋道")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
|
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
}
|
}
|
|
@ -15,7 +15,7 @@ public class DeptRespVO extends DeptBaseVO {
|
||||||
@Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
@Schema(description = "部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class PostBaseVO {
|
||||||
@NotNull(message = "显示顺序不能为空")
|
@NotNull(message = "显示顺序不能为空")
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|
||||||
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@Schema(description = "备注", example = "快乐的备注")
|
@Schema(description = "备注", example = "快乐的备注")
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class DictDataExportReqVO {
|
||||||
@Size(max = 100, message = "字典标签长度不能超过100个字符")
|
@Size(max = 100, message = "字典标签长度不能超过100个字符")
|
||||||
private String label;
|
private String label;
|
||||||
|
|
||||||
@Schema(description = "字典类型,模糊匹配", example = "sys_common_sex")
|
@Schema(description = "字典类型,模糊匹配", example = "sys_common_sex")
|
||||||
@Size(max = 100, message = "字典类型类型长度不能超过100个字符")
|
@Size(max = 100, message = "字典类型类型长度不能超过100个字符")
|
||||||
private String dictType;
|
private String dictType;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
### 创建错误码
|
### 创建错误码
|
||||||
POST {{systemBaseUrl}}/system/error-code/create
|
POST {{baseUrl}}/inra/error-code/create
|
||||||
Authorization: Bearer {{token}}
|
Authorization: Bearer {{token}}
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
tenant-id: {{adminTenentId}}
|
tenant-id: {{adminTenentId}}
|
||||||
|
|
|
@ -4,13 +4,13 @@ import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
|
import cn.iocoder.yudao.framework.operatelog.core.annotations.OperateLog;
|
||||||
import cn.iocoder.yudao.module.system.convert.errorcode.ErrorCodeConvert;
|
|
||||||
import cn.iocoder.yudao.module.system.controller.admin.errorcode.vo.*;
|
import cn.iocoder.yudao.module.system.controller.admin.errorcode.vo.*;
|
||||||
|
import cn.iocoder.yudao.module.system.convert.errorcode.ErrorCodeConvert;
|
||||||
import cn.iocoder.yudao.module.system.dal.dataobject.errorcode.ErrorCodeDO;
|
import cn.iocoder.yudao.module.system.dal.dataobject.errorcode.ErrorCodeDO;
|
||||||
import cn.iocoder.yudao.module.system.service.errorcode.ErrorCodeService;
|
import cn.iocoder.yudao.module.system.service.errorcode.ErrorCodeService;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
|
@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.system.controller.admin.errorcode.vo;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
|
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
|
||||||
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
|
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
|
||||||
//import cn.iocoder.yudao.adminserver.modules.infra.enums.InfDictTypeConstants;
|
|
||||||
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package cn.iocoder.yudao.module.system.controller.admin.mail.vo.account;
|
package cn.iocoder.yudao.module.system.controller.admin.mail.vo.account;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
|
@ -20,7 +20,7 @@ public class MailLogBaseVO {
|
||||||
@Schema(description = "用户编号", example = "30883")
|
@Schema(description = "用户编号", example = "30883")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", example = "2" )
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", example = "2")
|
||||||
private Byte userType;
|
private Byte userType;
|
||||||
|
|
||||||
@Schema(description = "接收邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "76854@qq.com")
|
@Schema(description = "接收邮箱地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "76854@qq.com")
|
||||||
|
|
|
@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.system.controller.admin.mail.vo.log;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
|
|
@ -18,13 +18,13 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class MailTemplatePageReqVO extends PageParam {
|
public class MailTemplatePageReqVO extends PageParam {
|
||||||
|
|
||||||
@Schema(description = "状态,参见 CommonStatusEnum 枚举", example = "1")
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举", example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@Schema(description = "标识,模糊匹配", example = "code_1024")
|
@Schema(description = "标识,模糊匹配", example = "code_1024")
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
@Schema(description = "名称,模糊匹配", example = "芋头")
|
@Schema(description = "名称,模糊匹配", example = "芋头")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "账号编号", example = "2048")
|
@Schema(description = "账号编号", example = "2048")
|
||||||
|
|
|
@ -11,10 +11,10 @@ import lombok.EqualsAndHashCode;
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class NoticePageReqVO extends PageParam {
|
public class NoticePageReqVO extends PageParam {
|
||||||
|
|
||||||
@Schema(description = "通知公告名称,模糊匹配", example = "芋道")
|
@Schema(description = "通知公告名称,模糊匹配", example = "芋道")
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
|
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
}
|
}
|
|
@ -38,7 +38,7 @@ public class OAuth2ClientBaseVO {
|
||||||
@Schema(description = "应用描述", example = "我是一个应用")
|
@Schema(description = "应用描述", example = "我是一个应用")
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@Schema(description = "状态,参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
@NotNull(message = "状态不能为空")
|
@NotNull(message = "状态不能为空")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ public class OAuth2ClientBaseVO {
|
||||||
private List<@NotEmpty(message = "重定向的 URI 不能为空")
|
private List<@NotEmpty(message = "重定向的 URI 不能为空")
|
||||||
@URL(message = "重定向的 URI 格式不正确") String> redirectUris;
|
@URL(message = "重定向的 URI 格式不正确") String> redirectUris;
|
||||||
|
|
||||||
@Schema(description = "授权类型,参见 OAuth2GrantTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "password")
|
@Schema(description = "授权类型,参见 OAuth2GrantTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "password")
|
||||||
@NotNull(message = "授权类型不能为空")
|
@NotNull(message = "授权类型不能为空")
|
||||||
private List<String> authorizedGrantTypes;
|
private List<String> authorizedGrantTypes;
|
||||||
|
|
||||||
|
|
|
@ -10,10 +10,10 @@ import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class OAuth2ClientPageReqVO extends PageParam {
|
public class OAuth2ClientPageReqVO extends PageParam {
|
||||||
|
|
||||||
@Schema(description = "应用名,模糊匹配", example = "土豆")
|
@Schema(description = "应用名,模糊匹配", example = "土豆")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(description = "状态,参见 CommonStatusEnum 枚举", example = "1")
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举", example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
}
|
}
|
|
@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.system.controller.admin.oauth2.vo.open;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
@ -18,7 +17,7 @@ public class OAuth2OpenCheckTokenRespVO {
|
||||||
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666")
|
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666")
|
||||||
@JsonProperty("user_id")
|
@JsonProperty("user_id")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||||
@JsonProperty("user_type")
|
@JsonProperty("user_type")
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
@Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
@Schema(description = "租户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
||||||
|
@ -26,6 +25,7 @@ public class OAuth2OpenCheckTokenRespVO {
|
||||||
private Long tenantId;
|
private Long tenantId;
|
||||||
|
|
||||||
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "car")
|
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "car")
|
||||||
|
@JsonProperty("client_id")
|
||||||
private String clientId;
|
private String clientId;
|
||||||
@Schema(description = "授权范围", requiredMode = Schema.RequiredMode.REQUIRED, example = "user_info")
|
@Schema(description = "授权范围", requiredMode = Schema.RequiredMode.REQUIRED, example = "user_info")
|
||||||
private List<String> scopes;
|
private List<String> scopes;
|
||||||
|
@ -34,7 +34,7 @@ public class OAuth2OpenCheckTokenRespVO {
|
||||||
@JsonProperty("access_token")
|
@JsonProperty("access_token")
|
||||||
private String accessToken;
|
private String accessToken;
|
||||||
|
|
||||||
@Schema(description = "过期时间,时间戳 / 1000,即单位:秒", requiredMode = Schema.RequiredMode.REQUIRED, example = "1593092157")
|
@Schema(description = "过期时间,时间戳 / 1000,即单位:秒", requiredMode = Schema.RequiredMode.REQUIRED, example = "1593092157")
|
||||||
private Long exp;
|
private Long exp;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ public class OAuth2AccessTokenPageReqVO extends PageParam {
|
||||||
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666")
|
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
|
|
||||||
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||||
|
|
|
@ -26,7 +26,7 @@ public class OAuth2AccessTokenRespVO {
|
||||||
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666")
|
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666")
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||||
private Integer userType;
|
private Integer userType;
|
||||||
|
|
||||||
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
@Schema(description = "客户端编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||||
|
|
|
@ -28,7 +28,7 @@ public class OAuth2UserInfoRespVO {
|
||||||
@Schema(description = "手机号码", example = "15601691300")
|
@Schema(description = "手机号码", example = "15601691300")
|
||||||
private String mobile;
|
private String mobile;
|
||||||
|
|
||||||
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1")
|
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1")
|
||||||
private Integer sex;
|
private Integer sex;
|
||||||
|
|
||||||
@Schema(description = "用户头像", example = "https://www.iocoder.cn/xxx.png")
|
@Schema(description = "用户头像", example = "https://www.iocoder.cn/xxx.png")
|
||||||
|
|
|
@ -29,7 +29,7 @@ public class OAuth2UserUpdateReqVO {
|
||||||
@Length(min = 11, max = 11, message = "手机号长度必须 11 位")
|
@Length(min = 11, max = 11, message = "手机号长度必须 11 位")
|
||||||
private String mobile;
|
private String mobile;
|
||||||
|
|
||||||
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1")
|
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1")
|
||||||
private Integer sex;
|
private Integer sex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ public class MenuBaseVO {
|
||||||
@Size(max = 100)
|
@Size(max = 100)
|
||||||
private String permission;
|
private String permission;
|
||||||
|
|
||||||
@Schema(description = "类型,参见 MenuTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "类型,参见 MenuTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
@NotNull(message = "菜单类型不能为空")
|
@NotNull(message = "菜单类型不能为空")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.system.controller.admin.permission.vo.role;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
@ -25,7 +24,8 @@ public class RolePageReqVO extends PageParam {
|
||||||
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
|
@Schema(description = "展示状态,参见 CommonStatusEnum 枚举类", example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@Schema(description = "开始时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
@Schema(description = "创建时间", example = "[2022-07-01 00:00:00,2022-07-01 23:59:59]")
|
||||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
private LocalDateTime[] createTime;
|
private LocalDateTime[] createTime;
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
package cn.iocoder.yudao.module.system.controller.admin.permission.vo.role;
|
package cn.iocoder.yudao.module.system.controller.admin.permission.vo.role;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
|
||||||
|
import cn.iocoder.yudao.framework.common.validation.InEnum;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
@ -14,9 +15,9 @@ public class RoleUpdateStatusReqVO {
|
||||||
@NotNull(message = "角色编号不能为空")
|
@NotNull(message = "角色编号不能为空")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
@NotNull(message = "状态不能为空")
|
@NotNull(message = "状态不能为空")
|
||||||
// @InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}")
|
@InEnum(value = CommonStatusEnum.class, message = "修改状态必须是 {value}")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ public class SensitiveWordBaseVO {
|
||||||
@NotNull(message = "标签不能为空")
|
@NotNull(message = "标签不能为空")
|
||||||
private List<String> tags;
|
private List<String> tags;
|
||||||
|
|
||||||
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
@NotNull(message = "状态不能为空")
|
@NotNull(message = "状态不能为空")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel;
|
package cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
@ -14,7 +13,7 @@ import javax.validation.constraints.NotNull;
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
public class SmsChannelCreateReqVO extends SmsChannelBaseVO {
|
public class SmsChannelCreateReqVO extends SmsChannelBaseVO {
|
||||||
|
|
||||||
@Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "YUN_PIAN" )
|
@Schema(description = "渠道编码,参见 SmsChannelEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "YUN_PIAN")
|
||||||
@NotNull(message = "渠道编码不能为空")
|
@NotNull(message = "渠道编码不能为空")
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ package cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel;
|
package cn.iocoder.yudao.module.system.controller.admin.sms.vo.channel;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ public class SmsLogPageReqVO extends PageParam {
|
||||||
@Schema(description = "手机号", example = "15601691300")
|
@Schema(description = "手机号", example = "15601691300")
|
||||||
private String mobile;
|
private String mobile;
|
||||||
|
|
||||||
@Schema(description = "发送状态,参见 SmsSendStatusEnum 枚举类", example = "1")
|
@Schema(description = "发送状态,参见 SmsSendStatusEnum 枚举类", example = "1")
|
||||||
private Integer sendStatus;
|
private Integer sendStatus;
|
||||||
|
|
||||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
|
|
|
@ -18,7 +18,7 @@ import javax.validation.constraints.NotNull;
|
||||||
@Builder
|
@Builder
|
||||||
public class SocialUserBindReqVO {
|
public class SocialUserBindReqVO {
|
||||||
|
|
||||||
@Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10" )
|
@Schema(description = "社交平台的类型,参见 UserSocialTypeEnum 枚举值", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
||||||
@InEnum(SocialTypeEnum.class)
|
@InEnum(SocialTypeEnum.class)
|
||||||
@NotNull(message = "社交平台的类型不能为空")
|
@NotNull(message = "社交平台的类型不能为空")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
|
@ -22,7 +22,7 @@ public class UserProfileRespVO extends UserBaseVO {
|
||||||
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
@Schema(description = "最后登录 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "192.168.1.1")
|
@Schema(description = "最后登录 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "192.168.1.1")
|
||||||
|
@ -93,7 +93,7 @@ public class UserProfileRespVO extends UserBaseVO {
|
||||||
@Data
|
@Data
|
||||||
public static class SocialUser {
|
public static class SocialUser {
|
||||||
|
|
||||||
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
@Schema(description = "社交平台的类型,参见 SocialTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
@Schema(description = "社交用户的 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE")
|
@Schema(description = "社交用户的 openid", requiredMode = Schema.RequiredMode.REQUIRED, example = "IPRmJ0wvBptiPIlGEZiPewGwiEiE")
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
package cn.iocoder.yudao.module.system.controller.admin.user.vo.profile;
|
package cn.iocoder.yudao.module.system.controller.admin.user.vo.profile;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.hibernate.validator.constraints.Length;
|
import org.hibernate.validator.constraints.Length;
|
||||||
|
@ -25,7 +24,7 @@ public class UserProfileUpdateReqVO {
|
||||||
@Length(min = 11, max = 11, message = "手机号长度必须 11 位")
|
@Length(min = 11, max = 11, message = "手机号长度必须 11 位")
|
||||||
private String mobile;
|
private String mobile;
|
||||||
|
|
||||||
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1")
|
@Schema(description = "用户性别,参见 SexEnum 枚举类", example = "1")
|
||||||
private Integer sex;
|
private Integer sex;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -164,7 +164,6 @@ CREATE TABLE IF NOT EXISTS `system_user_post`(
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) COMMENT ='用户岗位表';
|
) COMMENT ='用户岗位表';
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS "system_notice" (
|
CREATE TABLE IF NOT EXISTS "system_notice" (
|
||||||
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
||||||
"title" varchar(50) NOT NULL COMMENT '公告标题',
|
"title" varchar(50) NOT NULL COMMENT '公告标题',
|
||||||
|
@ -252,63 +251,6 @@ CREATE TABLE IF NOT EXISTS "system_users" (
|
||||||
primary key ("id")
|
primary key ("id")
|
||||||
) comment '用户信息表';
|
) comment '用户信息表';
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS "inf_api_access_log" (
|
|
||||||
"id" bigint not null GENERATED BY DEFAULT AS IDENTITY,
|
|
||||||
"trace_id" varchar(64) not null default '',
|
|
||||||
"user_id" bigint not null default '0',
|
|
||||||
"user_type" tinyint not null default '0',
|
|
||||||
"application_name" varchar(50) not null,
|
|
||||||
"request_method" varchar(16) not null default '',
|
|
||||||
"request_url" varchar(255) not null default '',
|
|
||||||
"request_params" varchar(8000) not null default '',
|
|
||||||
"user_ip" varchar(50) not null,
|
|
||||||
"user_agent" varchar(512) not null,
|
|
||||||
"begin_time" timestamp not null,
|
|
||||||
"end_time" timestamp not null,
|
|
||||||
"duration" integer not null,
|
|
||||||
"result_code" integer not null default '0',
|
|
||||||
"result_msg" varchar(512) default '',
|
|
||||||
"creator" varchar(64) default '',
|
|
||||||
"create_time" timestamp not null default current_timestamp,
|
|
||||||
"updater" varchar(64) default '',
|
|
||||||
"update_time" timestamp not null default current_timestamp,
|
|
||||||
"deleted" bit not null default false,
|
|
||||||
"tenant_id" bigint not null default '0',
|
|
||||||
primary key ("id")
|
|
||||||
) COMMENT 'API 访问日志表';
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS "inf_api_error_log" (
|
|
||||||
"id" bigint not null GENERATED BY DEFAULT AS IDENTITY,
|
|
||||||
"trace_id" varchar(64) not null,
|
|
||||||
"user_id" bigint not null default '0',
|
|
||||||
"user_type" tinyint not null default '0',
|
|
||||||
"application_name" varchar(50) not null,
|
|
||||||
"request_method" varchar(16) not null,
|
|
||||||
"request_url" varchar(255) not null,
|
|
||||||
"request_params" varchar(8000) not null,
|
|
||||||
"user_ip" varchar(50) not null,
|
|
||||||
"user_agent" varchar(512) not null,
|
|
||||||
"exception_time" timestamp not null,
|
|
||||||
"exception_name" varchar(128) not null default '',
|
|
||||||
"exception_message" clob not null,
|
|
||||||
"exception_root_cause_message" clob not null,
|
|
||||||
"exception_stack_trace" clob not null,
|
|
||||||
"exception_class_name" varchar(512) not null,
|
|
||||||
"exception_file_name" varchar(512) not null,
|
|
||||||
"exception_method_name" varchar(512) not null,
|
|
||||||
"exception_line_number" integer not null,
|
|
||||||
"process_status" tinyint not null,
|
|
||||||
"process_time" timestamp default null,
|
|
||||||
"process_user_id" bigint default '0',
|
|
||||||
"creator" varchar(64) default '',
|
|
||||||
"create_time" timestamp not null default current_timestamp,
|
|
||||||
"updater" varchar(64) default '',
|
|
||||||
"update_time" timestamp not null default current_timestamp,
|
|
||||||
"deleted" bit not null default false,
|
|
||||||
"tenant_id" bigint not null default '0',
|
|
||||||
primary key ("id")
|
|
||||||
) COMMENT '系统异常日志';
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS "system_sms_channel" (
|
CREATE TABLE IF NOT EXISTS "system_sms_channel" (
|
||||||
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
|
||||||
"signature" varchar(10) NOT NULL,
|
"signature" varchar(10) NOT NULL,
|
||||||
|
|
Loading…
Reference in New Issue