authorityModelService.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. angular.module('push')
  2. .factory('AuthorityModelService', function (UserService) {
  3. var cloudfoldername = "";
  4. var cloudauthoritylist = [];
  5. var authorityname = "";
  6. var memberlist = [];
  7. var authoritylist = [];
  8. var authorityid = "";
  9. var ccomefrom = "";
  10. var locknum = 0;
  11. var invite_url = "";
  12. return {
  13. isfirst: 0,
  14. getCloudFolderName: function () {
  15. return cloudfoldername;
  16. },
  17. setCloudFolderName: function (name) {
  18. cloudfoldername = name;
  19. },
  20. getCloudAuthorityList: function () {
  21. return cloudauthoritylist;
  22. },
  23. setCloudAuthorityList: function (templist) {
  24. cloudauthoritylist = templist;
  25. },
  26. getAuthorityName: function () {
  27. return authorityname;
  28. },
  29. setAuthorityName: function (name) {
  30. authorityname = name;
  31. },
  32. getMemberList: function () {
  33. return memberlist;
  34. },
  35. setMemberList: function (templist) {
  36. memberlist = templist;
  37. },
  38. addMemberList: function (temp) {
  39. memberlist.push(temp);
  40. },
  41. concatMemberList: function (templist) {
  42. memberlist = memberlist.concat(templist)
  43. },
  44. getAuthorityList: function () {
  45. return authoritylist;
  46. },
  47. setAuthorityList: function (templist) {
  48. authoritylist = templist;
  49. },
  50. addAuthorityList: function (temp) {
  51. authoritylist.push(temp);
  52. },
  53. getAuthorityId: function () {
  54. return authorityid;
  55. },
  56. setAuthorityId: function (temp) {
  57. authorityid = temp;
  58. },
  59. getCcomefrom: function () {
  60. return ccomefrom;
  61. },
  62. setCcomefrom: function (temp) {
  63. ccomefrom = temp;
  64. },
  65. getLocknum: function () {
  66. return locknum;
  67. },
  68. setLocknum: function (temp) {
  69. locknum = temp;
  70. },
  71. getInviteUrl: function () {
  72. return invite_url;
  73. },
  74. setInviteUrl: function (temp) {
  75. invite_url = temp;
  76. },
  77. resetData: function () {
  78. authorityname = "";
  79. memberlist = [];
  80. authoritylist = [];
  81. authorityid = "";
  82. ccomefrom = "";
  83. locknum = 0;
  84. }
  85. }
  86. });