12345678910111213141516171819202122232425262728293031323334353637 |
- //package com.backendsys.entity.System;
- //
- //import com.backendsys.entity.validator.RangeArray;
- //import jakarta.validation.constraints.NotEmpty;
- //import jakarta.validation.constraints.NotNull;
- //import jakarta.validation.constraints.Size;
- //import lombok.Data;
- //import org.hibernate.validator.constraints.Range;
- //
- //@Data
- //public class SysAgreementDTO {
- //
- // public static interface Detail{}
- // public static interface Create{}
- // public static interface Update{}
- // public static interface Delete{}
- //
- // private Long id;
- // @NotNull(message="agreement_id 不能为空", groups = { Update.class, Delete.class })
- // private Long agreement_id;
- //
- // @NotEmpty(message="标识不能为空", groups = { Detail.class, Create.class, Update.class })
- // private String tag;
- //
- // @NotEmpty(message="标题不能为空", groups = { Create.class, Update.class })
- // @Size(max = 50, message = "标题长度不超过 {max} 字符", groups = { Create.class, Update.class })
- // private String title;
- //
- // @NotEmpty(message="内容不能为空", groups = { Create.class, Update.class })
- // private String content;
- // @Range(min = 1, max = 9999, message = "排序必须在 {min} 到 {max} 之间", groups = { Create.class, Update.class })
- // private Integer sort;
- // @RangeArray(message="状态取值有误,范围应是(-1禁用, 1启用)", value = {"-1", "1"}, groups = { Create.class, Update.class })
- // private Integer status;
- // private String create_time;
- // private String update_time;
- //}
|