SysAgreementDTO.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //package com.backendsys.entity.System;
  2. //
  3. //import com.backendsys.entity.validator.RangeArray;
  4. //import jakarta.validation.constraints.NotEmpty;
  5. //import jakarta.validation.constraints.NotNull;
  6. //import jakarta.validation.constraints.Size;
  7. //import lombok.Data;
  8. //import org.hibernate.validator.constraints.Range;
  9. //
  10. //@Data
  11. //public class SysAgreementDTO {
  12. //
  13. // public static interface Detail{}
  14. // public static interface Create{}
  15. // public static interface Update{}
  16. // public static interface Delete{}
  17. //
  18. // private Long id;
  19. // @NotNull(message="agreement_id 不能为空", groups = { Update.class, Delete.class })
  20. // private Long agreement_id;
  21. //
  22. // @NotEmpty(message="标识不能为空", groups = { Detail.class, Create.class, Update.class })
  23. // private String tag;
  24. //
  25. // @NotEmpty(message="标题不能为空", groups = { Create.class, Update.class })
  26. // @Size(max = 50, message = "标题长度不超过 {max} 字符", groups = { Create.class, Update.class })
  27. // private String title;
  28. //
  29. // @NotEmpty(message="内容不能为空", groups = { Create.class, Update.class })
  30. // private String content;
  31. // @Range(min = 1, max = 9999, message = "排序必须在 {min} 到 {max} 之间", groups = { Create.class, Update.class })
  32. // private Integer sort;
  33. // @RangeArray(message="状态取值有误,范围应是(-1禁用, 1启用)", value = {"-1", "1"}, groups = { Create.class, Update.class })
  34. // private Integer status;
  35. // private String create_time;
  36. // private String update_time;
  37. //}