| | |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import javax.validation.constraints.Pattern; |
| | | import javax.validation.constraints.Size; |
| | | |
| | | /** |
| | | * 友情链接参数类 |
| | | * 友情链接参数类 |
| | | * |
| | | * @author inleft |
| | | * @date 2022-02-17 15:05:44 |
| | | */ |
| | | */ |
| | | @Data |
| | | public class BlogFriendshipLinkParam extends BaseParam { |
| | | |
| | |
| | | /** |
| | | * url地址 |
| | | */ |
| | | @Size(max = 200, groups = {add.class, edit.class}) |
| | | @NotBlank(message = "url地址不能为空,请检查url参数", groups = {add.class, edit.class}) |
| | | @Pattern(regexp = "^$|^((https|http)?:\\/\\/)[^\\s]+", message = "url格式错误", groups = {add.class}) |
| | | private String url; |
| | | |
| | | /** |
| | | * 头像地址 |
| | | */ |
| | | @Size(max = 200, groups = {add.class, edit.class}) |
| | | @Pattern(regexp = "^$|^((https|http)?:\\/\\/)[^\\s]+", message = "头像格式错误", groups = {add.class}) |
| | | private String avatar; |
| | | |
| | | /** |
| | | * 描述 |
| | | */ |
| | | @Size(max = 200) |
| | | //@NotBlank(message = "描述不能为空,请检查remark参数", groups = {add.class, edit.class}) |
| | | private String remark; |
| | | |