Organization.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. * <<
  3. * Davinci
  4. * ==
  5. * Copyright (C) 2016 - 2019 EDP
  6. * ==
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. * >>
  17. *
  18. */
  19. package edp.davinci.model;
  20. import lombok.Data;
  21. import java.util.Date;
  22. @Data
  23. public class Organization {
  24. private Long id;
  25. private String name;
  26. private String description;
  27. private String avatar;
  28. private Long userId;
  29. private Integer projectNum = 0;
  30. private Integer memberNum = 1;
  31. private Integer roleNum = 0;
  32. private Boolean allowCreateProject = true;
  33. // 成员默认对project权限(隐藏/预览)
  34. private Short memberPermission = (short) 1;
  35. private Date createTime = new Date();
  36. private Long createBy;
  37. private Date updateTime;
  38. private Long updateBy;
  39. public Organization() {
  40. }
  41. public Organization(String name, String description, Long userId) {
  42. this.name = name;
  43. this.description = description;
  44. this.userId = userId;
  45. this.createBy = userId;
  46. }
  47. }