| | |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | @Schema(description = "管理后台 - 租户套餐创建/修改 Request VO") |
| | |
| | | @NotEmpty(message = "套餐名不能为空") |
| | | private String name; |
| | | |
| | | @Schema(description = "套餐图标", example = "http://localhost/xxx") |
| | | @NotEmpty(message = "套餐图标不能为空") |
| | | private String icon; |
| | | |
| | | @Schema(description = "套餐标签", example = "模型管理") |
| | | private List<String> labels; |
| | | |
| | | @Schema(description = "描述", example = "好") |
| | | @NotNull(message = "描述不能为空") |
| | | private String description; |
| | | |
| | | @Schema(description = "状态,参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| | | @NotNull(message = "状态不能为空") |
| | | @InEnum(value = CommonStatusEnum.class, message = "状态必须是 {value}") |