ConstantService.js 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. angular.module('push')
  2. .factory('ConstantService', function () {
  3. var constant = {};
  4. /**
  5. * 模块分类 0-1999
  6. */
  7. constant.CATEGORY_MODULE_81 = 81; //对接宝
  8. constant.CATEGORY_MODULE_1 = 1; //需求
  9. constant.CATEGORY_MODULE_2 = 2; //成果
  10. constant.CATEGORY_MODULE_6 = 6; //企业
  11. constant.CATEGORY_MODULE_7 = 7; //高校
  12. constant.CATEGORY_MODULE_8 = 8; //人才
  13. /**
  14. * 注册、登录方式 2501-2599
  15. */
  16. constant.THIRD_TYPE_ID_2501 = 2501; //第三方应用ID,1是微信
  17. constant.MESSAGE_TYPE_ID_2501 = "WeChat Register";
  18. constant.THIRD_TYPE_ID_2502 = 2502; //第三方应用ID,2是QQ
  19. constant.MESSAGE_TYPE_ID_2502 = "QQ Register";
  20. constant.THIRD_TYPE_ID_2503 = 2503; //app登陆
  21. constant.THIRD_TYPE_ID_2504 = 2504; //web登陆
  22. /**
  23. * 用户访问痕迹操作类型 2600-2899
  24. */
  25. constant.TRACE_TYPE_2600 = 2600; //无(视为无权限)
  26. constant.TRACE_TYPE_STRING_2600 = "可消耗积分查看"; //无权限显示内容
  27. constant.TRACE_TYPE_2601 = 2601; //浏览列表
  28. constant.TRACE_TYPE_2602 = 2602; //浏览详情
  29. constant.TRACE_TYPE_FIELD_2602 = "visitcount";
  30. constant.TRACE_TYPE_2603 = 2603; //私密信息
  31. constant.TRACE_TYPE_STRING_2603 = "私密不可见"; //私密显示内容
  32. constant.TRACE_TYPE_2606 = 2606; //新增/发布/保存
  33. constant.TRACE_TYPE_2607 = 2607; //修改/更新
  34. constant.TRACE_TYPE_2608 = 2608; //删除
  35. constant.TRACE_TYPE_2609 = 2609; //申请认证
  36. constant.TRACE_TYPE_2610 = 2610; //评价
  37. constant.TRACE_TYPE_2611 = 2611; //审核
  38. constant.TRACE_TYPE_2612 = 2612; //取消(发布)
  39. constant.TRACE_TYPE_2613 = 2613; //登录
  40. constant.TRACE_TYPE_2614 = 2614; //留言/评论
  41. constant.TRACE_TYPE_2615 = 2615; //点赞
  42. constant.TRACE_TYPE_FIELD_2615 = "favourcount";
  43. constant.TRACE_TYPE_STRING_2615 = "已点赞";
  44. constant.TRACE_TYPE_2616 = 2616; //取消点赞
  45. constant.TRACE_TYPE_2617 = 2617; //关注
  46. constant.TRACE_TYPE_STRING_2617 = "关注成功";
  47. constant.TRACE_TYPE_FIELD_2617 = "focuscount";
  48. constant.TRACE_TYPE_2618 = 2618; //取消关注
  49. constant.TRACE_TYPE_STRING_2618 = "取消关注成功";
  50. constant.TRACE_TYPE_2619 = 2619; //收藏
  51. constant.TRACE_TYPE_STRING_2619 = "收藏成功";
  52. constant.TRACE_TYPE_2620 = 2620; //取消收藏
  53. constant.TRACE_TYPE_STRING_2620 = "取消收藏成功";
  54. constant.TRACE_TYPE_2627 = 2627; //注册
  55. constant.TRACE_TYPE_2628 = 2628; //分享
  56. constant.TRACE_TYPE_STRING_2628 = "分享成功";
  57. constant.TRACE_TYPE_2640 = 2640;//权限申请
  58. constant.TRACE_TYPE_2641 = 2641;//权限申请反馈
  59. constant.TRACE_TYPE_2645 = 2645;//认证
  60. /**
  61. * 接口调用状态返回值3350-3399
  62. */
  63. constant.INTERFACE_STATUS_CODE_3350 = 3350; //正常代码
  64. constant.INTERFACE_SET_MESSAGE_SUCCESS = "设置成功";
  65. constant.INTERFACE_STATUS_CODE_3351 = 3351; //异常代码
  66. constant.INTERFACE_MESSAGE_ERROR = "网络不给力,请重试";
  67. constant.INTERFACE_STATUS_CODE_21102 = 21102; //积分不足
  68. constant.INTERFACE_MESSAGE_21102 = "积分不足";
  69. /**
  70. * 配置信息 6600-6699
  71. * 对应year_multipleoptions_setup中的设定值
  72. */
  73. constant.YEAR_MULTIPLEOPTIONS_SETUP_6601 = 6601; // 研发投入
  74. constant.YEAR_MULTIPLEOPTIONS_SETUP_6602 = 6602; // 销售收入、净利润、上缴税收
  75. constant.YEAR_MULTIPLEOPTIONS_SETUP_6603 = 6603; // 工程中心情况
  76. constant.YEAR_MULTIPLEOPTIONS_SETUP_6604 = 6604; // 重大科研项目
  77. /**
  78. * 配置信息 6600-6699
  79. * 对应year_multipleoptions_setup中的设定值
  80. */
  81. constant.UNITTYPE_10100 = 10100;//其他
  82. constant.UNITTYPE_10101 = 10101;//政府
  83. constant.UNITTYPE_10102 = 10102;//园区
  84. constant.UNITTYPE_10103 = 10103;//机构
  85. constant.UNITTYPE_10104 = 10104;//企业
  86. constant.UNITTYPE_10105 = 10105;//高校
  87. /**
  88. * 状态 21000-25999
  89. */
  90. constant.STATUS_TYPE_21000 = 21000; // 使用中/发布中
  91. constant.MESSAGE_TYPE_21000 = "登录成功";
  92. constant.STATUS_TYPE_21001 = 21001; // 停用
  93. constant.MESSAGE_TYPE_21001 = "停用";
  94. constant.STATUS_TYPE_21002 = 21002; // 用户未注册
  95. constant.MESSAGE_TYPE_21002 = "用户未注册";
  96. constant.STATUS_TYPE_21003 = 21003; // 用户未激活
  97. constant.MESSAGE_TYPE_21003 = "用户未激活";
  98. constant.STATUS_TYPE_21004 = 21004; // 用户账户密码错误
  99. constant.MESSAGE_TYPE_21004 = "用户账户密码错误";
  100. constant.STATUS_TYPE_21005 = 21005; // 用户账户被禁用
  101. constant.MESSAGE_TYPE_21005 = "用户账户被禁用";
  102. constant.STATUS_TYPE_21006 = 21006; //第三方应用未绑定
  103. constant.MESSAGE_TYPE_21006 = "未绑定";
  104. constant.STATUS_TYPE_21007 = 21007; //该手机号已绑定
  105. constant.MESSAGE_TYPE_21007 = "该手机号已绑定";
  106. /**
  107. * 表名 31000-34999
  108. */
  109. constant.TABLE_CODE_30001 = 30001; // 基本信息表 resourcelibrary
  110. constant.TABLE_CODE_30002 = 30002; // 评论表 info_comment
  111. constant.TABLE_CODE_30003 = 30003; // 对接信息表 connectioninfo 走访
  112. constant.TABLE_CODE_300031 = 300031; // 对接信息表 connectioninfo 录入
  113. constant.TABLE_CODE_30043 = 30043; // 用户基本信息 sys_users
  114. return constant;
  115. });