InputAdmin.java 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. package com.goafanti.admin.bo;
  2. import javax.validation.constraints.Size;
  3. import com.goafanti.common.constant.ErrorConstants;
  4. public class InputAdmin {
  5. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  6. private String id;
  7. @Size(min = 0, max = 15, message = "{" + ErrorConstants.MOBILE_SIZE_ERROR + "}")
  8. private String mobile;
  9. @Size(min = 0, max = 16, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  10. private String name;
  11. @Size(min = 0, max = 32, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  12. private String password;
  13. @Size(min = 0, max = 255, message = "{" + ErrorConstants.EMAIL_SIZE_ERROR + "}")
  14. private String email;
  15. @Size(min = 0, max = 32, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  16. private String position;
  17. @Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  18. private String superiorId;
  19. @Size(min = 0, max = 11, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
  20. private String contactMobile;
  21. public String getContactMobile() {
  22. return contactMobile;
  23. }
  24. public void setContactMobile(String contactMobile) {
  25. this.contactMobile = contactMobile;
  26. }
  27. public String getId() {
  28. return id;
  29. }
  30. public void setId(String id) {
  31. this.id = id;
  32. }
  33. public String getMobile() {
  34. return mobile;
  35. }
  36. public void setMobile(String mobile) {
  37. this.mobile = mobile;
  38. }
  39. public String getName() {
  40. return name;
  41. }
  42. public void setName(String name) {
  43. this.name = name;
  44. }
  45. public String getPassword() {
  46. return password;
  47. }
  48. public void setPassword(String password) {
  49. this.password = password;
  50. }
  51. public String getEmail() {
  52. return email;
  53. }
  54. public void setEmail(String email) {
  55. this.email = email;
  56. }
  57. public String getPosition() {
  58. return position;
  59. }
  60. public void setPosition(String position) {
  61. this.position = position;
  62. }
  63. public String getSuperiorId() {
  64. return superiorId;
  65. }
  66. public void setSuperiorId(String superiorId) {
  67. this.superiorId = superiorId;
  68. }
  69. }