| | |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import com.ruoyi.common.core.validate.AddGroup; |
| | | import com.ruoyi.common.core.validate.EditGroup; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | |
| | | |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @ApiModel("对象存储配置业务对象") |
| | | @Schema(name = "对象存储配置业务对象") |
| | | public class SysOssConfigBo extends BaseEntity { |
| | | |
| | | /** |
| | | * 主建 |
| | | */ |
| | | @ApiModelProperty(value = "主建", required = true) |
| | | @Schema(name = "主建", required = true) |
| | | @NotNull(message = "主建不能为空", groups = {EditGroup.class}) |
| | | private Long ossConfigId; |
| | | |
| | | /** |
| | | * 配置key |
| | | */ |
| | | @ApiModelProperty(value = "配置key", required = true) |
| | | @Schema(name = "配置key", required = true) |
| | | @NotBlank(message = "配置key不能为空", groups = {AddGroup.class, EditGroup.class}) |
| | | @Size(min = 2, max = 100, message = "configKey长度必须介于2和20 之间") |
| | | private String configKey; |
| | |
| | | /** |
| | | * accessKey |
| | | */ |
| | | @ApiModelProperty(value = "accessKey", required = true) |
| | | @Schema(name = "accessKey", required = true) |
| | | @NotBlank(message = "accessKey不能为空", groups = {AddGroup.class, EditGroup.class}) |
| | | @Size(min = 2, max = 100, message = "accessKey长度必须介于2和100 之间") |
| | | private String accessKey; |
| | |
| | | /** |
| | | * 秘钥 |
| | | */ |
| | | @ApiModelProperty(value = "secretKey", required = true) |
| | | @Schema(name = "secretKey", required = true) |
| | | @NotBlank(message = "secretKey不能为空", groups = {AddGroup.class, EditGroup.class}) |
| | | @Size(min = 2, max = 100, message = "secretKey长度必须介于2和100 之间") |
| | | private String secretKey; |
| | |
| | | /** |
| | | * 桶名称 |
| | | */ |
| | | @ApiModelProperty(value = "桶名称", required = true) |
| | | @Schema(name = "桶名称", required = true) |
| | | @NotBlank(message = "桶名称不能为空", groups = {AddGroup.class, EditGroup.class}) |
| | | @Size(min = 2, max = 100, message = "bucketName长度必须介于2和100之间") |
| | | private String bucketName; |
| | |
| | | /** |
| | | * 前缀 |
| | | */ |
| | | @ApiModelProperty(value = "前缀") |
| | | @Schema(name = "前缀") |
| | | private String prefix; |
| | | |
| | | /** |
| | | * 访问站点 |
| | | */ |
| | | @ApiModelProperty(value = "访问站点", required = true) |
| | | @Schema(name = "访问站点", required = true) |
| | | @NotBlank(message = "访问站点不能为空", groups = {AddGroup.class, EditGroup.class}) |
| | | @Size(min = 2, max = 100, message = "endpoint长度必须介于2和100之间") |
| | | private String endpoint; |
| | |
| | | /** |
| | | * 自定义域名 |
| | | */ |
| | | @ApiModelProperty("自定义域名") |
| | | @Schema(name = "自定义域名") |
| | | private String domain; |
| | | |
| | | /** |
| | | * 是否https(Y=是,N=否) |
| | | */ |
| | | @ApiModelProperty("是否https(Y=是,N=否)") |
| | | @Schema(name = "是否https(Y=是,N=否)") |
| | | private String isHttps; |
| | | |
| | | /** |
| | | * 状态(0=正常,1=停用) |
| | | */ |
| | | @ApiModelProperty("状态(0=正常,1=停用)") |
| | | @Schema(name = "状态(0=正常,1=停用)") |
| | | private String status; |
| | | |
| | | /** |
| | | * 域 |
| | | */ |
| | | @ApiModelProperty(value = "域") |
| | | @Schema(name = "域") |
| | | private String region; |
| | | |
| | | /** |
| | | * 扩展字段 |
| | | */ |
| | | @ApiModelProperty(value = "扩展字段") |
| | | @Schema(name = "扩展字段") |
| | | private String ext1; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value = "备注") |
| | | @Schema(name = "备注") |
| | | private String remark; |
| | | |
| | | } |