ReceiptUserPermission.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.caimei.modules.permission.entity;
  2. import com.thinkgem.jeesite.common.persistence.DataEntity;
  3. import org.hibernate.validator.constraints.Length;
  4. /**
  5. * 权限表Entity
  6. *
  7. * @author lwt
  8. * @version 2019-06-18
  9. */
  10. public class ReceiptUserPermission extends DataEntity<ReceiptUserPermission> {
  11. private static final long serialVersionUID = 1L;
  12. private String userType; // 用户类型:1收款通知权限(财务人员使用),2收款确认权限,3收款审核权限 4、返佣管理权限
  13. private String name; // 名称
  14. private String mobile; // 授权人手机号
  15. private String openid; // 微信openid
  16. /**
  17. * 用户身份
  18. */
  19. private String userIdentity;
  20. public ReceiptUserPermission() {
  21. super();
  22. }
  23. public ReceiptUserPermission(String id) {
  24. super(id);
  25. }
  26. @Length(min = 0, max = 1, message = "用户类型:1收款通知权限(财务人员使用),2收款确认权限,3收款审核权限 4、返佣管理权限长度必须介于 0 和 1 之间")
  27. public String getUserType() {
  28. return userType;
  29. }
  30. public void setUserType(String userType) {
  31. this.userType = userType;
  32. }
  33. @Length(min = 0, max = 50, message = "名称长度必须介于 0 和 50 之间")
  34. public String getName() {
  35. return name;
  36. }
  37. public void setName(String name) {
  38. this.name = name;
  39. }
  40. @Length(min = 0, max = 11, message = "授权人手机号长度必须介于 0 和 11 之间")
  41. public String getMobile() {
  42. return mobile;
  43. }
  44. public void setMobile(String mobile) {
  45. this.mobile = mobile;
  46. }
  47. @Length(min = 0, max = 255, message = "微信openid长度必须介于 0 和 255 之间")
  48. public String getOpenid() {
  49. return openid;
  50. }
  51. public void setOpenid(String openid) {
  52. this.openid = openid;
  53. }
  54. public String getUserIdentity() {
  55. return userIdentity;
  56. }
  57. public void setUserIdentity(String userIdentity) {
  58. this.userIdentity = userIdentity;
  59. }
  60. }