mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-15 00:57:14 +08:00
docs: 完善代码生成相关接口文档信息
This commit is contained in:
@@ -57,84 +57,84 @@ public class FieldConfigDO implements Serializable {
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@Schema(description = "表名称")
|
||||
@Schema(description = "表名称", example = "sys_user")
|
||||
@NotBlank(message = "表名称不能为空")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 列名称
|
||||
*/
|
||||
@Schema(description = "列名称")
|
||||
@Schema(description = "列名称", example = "nickname")
|
||||
@NotBlank(message = "列名称不能为空")
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 列类型
|
||||
*/
|
||||
@Schema(description = "列类型")
|
||||
@Schema(description = "列类型", example = "varchar")
|
||||
@NotBlank(message = "列类型不能为空")
|
||||
private String columnType;
|
||||
|
||||
/**
|
||||
* 字段名称
|
||||
*/
|
||||
@Schema(description = "字段名称")
|
||||
@Schema(description = "字段名称", example = "nickname")
|
||||
@NotBlank(message = "字段名称不能为空")
|
||||
private String fieldName;
|
||||
|
||||
/**
|
||||
* 字段类型
|
||||
*/
|
||||
@Schema(description = "字段类型")
|
||||
@Schema(description = "字段类型", example = "String")
|
||||
@NotBlank(message = "字段类型不能为空")
|
||||
private String fieldType;
|
||||
|
||||
/**
|
||||
* 注释
|
||||
*/
|
||||
@Schema(description = "注释")
|
||||
@Schema(description = "注释", example = "昵称")
|
||||
private String comment;
|
||||
|
||||
/**
|
||||
* 是否必填
|
||||
*/
|
||||
@Schema(description = "是否必填")
|
||||
@Schema(description = "是否必填", example = "true")
|
||||
private Boolean isRequired;
|
||||
|
||||
/**
|
||||
* 是否在列表中显示
|
||||
*/
|
||||
@Schema(description = "是否在列表中显示")
|
||||
@Schema(description = "是否在列表中显示", example = "true")
|
||||
private Boolean showInList;
|
||||
|
||||
/**
|
||||
* 是否在表单中显示
|
||||
*/
|
||||
@Schema(description = "是否在表单中显示")
|
||||
@Schema(description = "是否在表单中显示", example = "true")
|
||||
private Boolean showInForm;
|
||||
|
||||
/**
|
||||
* 是否在查询中显示
|
||||
*/
|
||||
@Schema(description = "是否在查询中显示")
|
||||
@Schema(description = "是否在查询中显示", example = "true")
|
||||
private Boolean showInQuery;
|
||||
|
||||
/**
|
||||
* 表单类型
|
||||
*/
|
||||
@Schema(description = "表单类型")
|
||||
@Schema(description = "表单类型", example = "1")
|
||||
private FormTypeEnum formType;
|
||||
|
||||
/**
|
||||
* 查询方式
|
||||
*/
|
||||
@Schema(description = "查询方式")
|
||||
@Schema(description = "查询方式", example = "1")
|
||||
private QueryTypeEnum queryType;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createTime;
|
||||
|
||||
|
@@ -57,15 +57,15 @@ public class GenConfigDO implements Serializable {
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@Schema(description = "表名称", example = "sys_user")
|
||||
@TableId(type = IdType.INPUT)
|
||||
@Schema(description = "表名称")
|
||||
@NotBlank(message = "表名称不能为空")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 模块名称
|
||||
*/
|
||||
@Schema(description = "模块名称")
|
||||
@Schema(description = "模块名称", example = "continew-admin-system")
|
||||
@NotBlank(message = "模块名称不能为空")
|
||||
@Length(max = 60, message = "模块名称不能超过 {max} 个字符")
|
||||
private String moduleName;
|
||||
@@ -73,7 +73,7 @@ public class GenConfigDO implements Serializable {
|
||||
/**
|
||||
* 包名称
|
||||
*/
|
||||
@Schema(description = "包名称")
|
||||
@Schema(description = "包名称", example = "top.charles7c.cnadmin.system")
|
||||
@NotBlank(message = "包名称不能为空")
|
||||
@Pattern(regexp = RegexConsts.PACKAGE_NAME, message = "包名称格式错误")
|
||||
@Length(max = 60, message = "包名称不能超过 {max} 个字符")
|
||||
@@ -82,7 +82,7 @@ public class GenConfigDO implements Serializable {
|
||||
/**
|
||||
* 前端路径
|
||||
*/
|
||||
@Schema(description = "前端路径")
|
||||
@Schema(description = "前端路径", example = "D:/continew-admin/continew-admin-ui/src/views/system/user")
|
||||
@Length(max = 255, message = "前端路径不能超过 {max} 个字符")
|
||||
@Pattern(regexp = "^(?=.*src\\/views)(?!.*\\/views\\/?$).*", message = "前端路径配置错误")
|
||||
private String frontendPath;
|
||||
@@ -90,7 +90,7 @@ public class GenConfigDO implements Serializable {
|
||||
/**
|
||||
* 业务名称
|
||||
*/
|
||||
@Schema(description = "业务名称")
|
||||
@Schema(description = "业务名称", example = "用户")
|
||||
@NotBlank(message = "业务名称不能为空")
|
||||
@Length(max = 50, message = "业务名称不能超过 {max} 个字符")
|
||||
private String businessName;
|
||||
@@ -98,7 +98,7 @@ public class GenConfigDO implements Serializable {
|
||||
/**
|
||||
* 作者
|
||||
*/
|
||||
@Schema(description = "作者")
|
||||
@Schema(description = "作者", example = "Charles7c")
|
||||
@NotBlank(message = "作者名称不能为空")
|
||||
@Length(max = 100, message = "作者名称不能超过 {max} 个字符")
|
||||
private String author;
|
||||
@@ -106,27 +106,27 @@ public class GenConfigDO implements Serializable {
|
||||
/**
|
||||
* 表前缀
|
||||
*/
|
||||
@Schema(description = "表前缀")
|
||||
@Schema(description = "表前缀", example = "sys_")
|
||||
private String tablePrefix;
|
||||
|
||||
/**
|
||||
* 是否覆盖
|
||||
*/
|
||||
@Schema(description = "是否覆盖")
|
||||
@Schema(description = "是否覆盖", example = "false")
|
||||
@NotNull(message = "是否覆盖不能为空")
|
||||
private Boolean isOverride;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@Schema(description = "修改时间")
|
||||
@Schema(description = "修改时间", example = "2023-08-08 08:08:08")
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
@@ -37,6 +37,6 @@ public class TableQuery implements Serializable {
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@Schema(description = "表名称")
|
||||
@Schema(description = "表名称", example = "sys_user")
|
||||
private String tableName;
|
||||
}
|
||||
|
@@ -38,36 +38,36 @@ public class TableVO implements Serializable {
|
||||
/**
|
||||
* 表名称
|
||||
*/
|
||||
@Schema(description = "表名称")
|
||||
@Schema(description = "表名称", example = "sys_user")
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
@Schema(description = "描述")
|
||||
@Schema(description = "描述", example = "用户表")
|
||||
private String comment;
|
||||
|
||||
/**
|
||||
* 存储引擎
|
||||
*/
|
||||
@Schema(description = "存储引擎")
|
||||
@Schema(description = "存储引擎", example = "InnoDB")
|
||||
private String engine;
|
||||
|
||||
/**
|
||||
* 字符集
|
||||
*/
|
||||
@Schema(description = "字符集")
|
||||
@Schema(description = "字符集", example = "utf8mb4_general_ci")
|
||||
private String charset;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@Schema(description = "创建时间")
|
||||
@Schema(description = "创建时间", example = "2023-08-08 08:08:08")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 是否已配置
|
||||
*/
|
||||
@Schema(description = "是否已配置")
|
||||
@Schema(description = "是否已配置", example = "true")
|
||||
private Boolean isConfiged;
|
||||
}
|
||||
|
Reference in New Issue
Block a user