io.github.wslxm.springbootplus2.manage.gc.model.dto.DatasourceDTO Maven / Gradle / Ivy
package io.github.wslxm.springbootplus2.manage.gc.model.dto;
import io.github.wslxm.springbootplus2.core.base.model.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
/**
* 代码生成数据源维护表
*
* ::本代码由[兮家小二]提供的代码生成器生成,如有问题,请手动修改 ::作者CSDN:https://blog.csdn.net/qq_41463655
*
* @author wangsong
* @email [email protected]
* @date 2020-11-04 20:11:08
*/
@Data
@ToString(callSuper = true)
@ApiModel(value = "DatasourceDTO 对象", description = "代码生成数据源维护表")
public class DatasourceDTO extends BaseDto {
private static final long serialVersionUID = 0L;
@ApiModelProperty(value = "db -标题")
private String dbTitle;
@ApiModelProperty(value = "db 库名")
@Length(min=0, max=64,message = "db 库名 必须>=0 和 <=64位")
private String dbName;
@ApiModelProperty(value = "db 连接地址")
@Length(min=0, max=128,message = "db 连接地址 必须>=0 和 <=128位")
private String dbUrl;
@ApiModelProperty(value = "db 账号")
@Length(min=0, max=32,message = "db 账号 必须>=0 和 <=32位")
private String dbUsername;
@ApiModelProperty(value = "db 密码")
@Length(min=0, max=32,message = "db 密码 必须>=0 和 <=32位")
private String dbPassword;
@ApiModelProperty(value = "作者")
private String author;
@ApiModelProperty(value = "邮箱")
private String email;
@ApiModelProperty(value = "描述信息")
private String describe;
@ApiModelProperty(value = "项目名/路径,如:xj-server/xj-test-server")
private String projectName;
@ApiModelProperty(value = "包路径 (如: io.github.wslxm)")
private String packPath;
@ApiModelProperty(value = "根模块 (固定为:modules(管理端), 用户端为:client)")
private String rootModule;
@ApiModelProperty(value = "子模块 (业务分类,如用户管理,订单管理模块拆分,也可以统一一个名称放在一起)")
private String modulesName;
@ApiModelProperty(value = "db 表前缀 (生成的类名会过滤掉前缀)")
private String dbTablePrefix;
@ApiModelProperty(value = "db 字段前缀 (生成的字段名会过滤掉前缀)")
private String dbFieldPrefix;
@ApiModelProperty(value = "实体类是否使用swagger注释 (false情况下使用doc注释)")
private Boolean entitySwagger;
@ApiModelProperty(value = "是否过滤crud方法- 默认生成 (controller/service/mapper/xml)")
private Boolean filterCrud;
@ApiModelProperty(value = "生成路径(不填默认当前项目跟目录,可指定绝对路径)")
private String fatherPath;
@ApiModelProperty(value = "排除vue字段类型 (字典code值,参考字典生成字段类型,如: 18=富文本 19=md编辑器 )")
private String vueFieldTypes;
@ApiModelProperty(value = "数据库通用字段")
private String baseFields;
@ApiModelProperty(value = "数据库关键字")
private String keywordArray;
}