123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- angular.module('push')
- .factory('ConstantService', function () {
- var constant = {};
- /**
- * 模块分类 0-1999
- */
- constant.CATEGORY_MODULE_81 = 81; //对接宝
- constant.CATEGORY_MODULE_1 = 1; //需求
- constant.CATEGORY_MODULE_2 = 2; //成果
- constant.CATEGORY_MODULE_6 = 6; //企业
- constant.CATEGORY_MODULE_7 = 7; //高校
- constant.CATEGORY_MODULE_8 = 8; //人才
- /**
- * 注册、登录方式 2501-2599
- */
- constant.THIRD_TYPE_ID_2501 = 2501; //第三方应用ID,1是微信
- constant.MESSAGE_TYPE_ID_2501 = "WeChat Register";
- constant.THIRD_TYPE_ID_2502 = 2502; //第三方应用ID,2是QQ
- constant.MESSAGE_TYPE_ID_2502 = "QQ Register";
- constant.THIRD_TYPE_ID_2503 = 2503; //app登陆
- constant.THIRD_TYPE_ID_2504 = 2504; //web登陆
- /**
- * 用户访问痕迹操作类型 2600-2899
- */
- constant.TRACE_TYPE_2600 = 2600; //无(视为无权限)
- constant.TRACE_TYPE_STRING_2600 = "可消耗积分查看"; //无权限显示内容
- constant.TRACE_TYPE_2601 = 2601; //浏览列表
- constant.TRACE_TYPE_2602 = 2602; //浏览详情
- constant.TRACE_TYPE_FIELD_2602 = "visitcount";
- constant.TRACE_TYPE_2603 = 2603; //私密信息
- constant.TRACE_TYPE_STRING_2603 = "私密不可见"; //私密显示内容
- constant.TRACE_TYPE_2606 = 2606; //新增/发布/保存
- constant.TRACE_TYPE_2607 = 2607; //修改/更新
- constant.TRACE_TYPE_2608 = 2608; //删除
- constant.TRACE_TYPE_2609 = 2609; //申请认证
- constant.TRACE_TYPE_2610 = 2610; //评价
- constant.TRACE_TYPE_2611 = 2611; //审核
- constant.TRACE_TYPE_2612 = 2612; //取消(发布)
- constant.TRACE_TYPE_2613 = 2613; //登录
- constant.TRACE_TYPE_2614 = 2614; //留言/评论
- constant.TRACE_TYPE_2615 = 2615; //点赞
- constant.TRACE_TYPE_FIELD_2615 = "favourcount";
- constant.TRACE_TYPE_STRING_2615 = "已点赞";
- constant.TRACE_TYPE_2616 = 2616; //取消点赞
- constant.TRACE_TYPE_2617 = 2617; //关注
- constant.TRACE_TYPE_STRING_2617 = "关注成功";
- constant.TRACE_TYPE_FIELD_2617 = "focuscount";
- constant.TRACE_TYPE_2618 = 2618; //取消关注
- constant.TRACE_TYPE_STRING_2618 = "取消关注成功";
- constant.TRACE_TYPE_2619 = 2619; //收藏
- constant.TRACE_TYPE_STRING_2619 = "收藏成功";
- constant.TRACE_TYPE_2620 = 2620; //取消收藏
- constant.TRACE_TYPE_STRING_2620 = "取消收藏成功";
- constant.TRACE_TYPE_2627 = 2627; //注册
- constant.TRACE_TYPE_2628 = 2628; //分享
- constant.TRACE_TYPE_STRING_2628 = "分享成功";
- constant.TRACE_TYPE_2640 = 2640;//权限申请
- constant.TRACE_TYPE_2641 = 2641;//权限申请反馈
- constant.TRACE_TYPE_2645 = 2645;//认证
- /**
- * 接口调用状态返回值3350-3399
- */
- constant.INTERFACE_STATUS_CODE_3350 = 3350; //正常代码
- constant.INTERFACE_SET_MESSAGE_SUCCESS = "设置成功";
- constant.INTERFACE_STATUS_CODE_3351 = 3351; //异常代码
- constant.INTERFACE_MESSAGE_ERROR = "网络不给力,请重试";
- constant.INTERFACE_STATUS_CODE_21102 = 21102; //积分不足
- constant.INTERFACE_MESSAGE_21102 = "积分不足";
- /**
- * 配置信息 6600-6699
- * 对应year_multipleoptions_setup中的设定值
- */
- constant.YEAR_MULTIPLEOPTIONS_SETUP_6601 = 6601; // 研发投入
- constant.YEAR_MULTIPLEOPTIONS_SETUP_6602 = 6602; // 销售收入、净利润、上缴税收
- constant.YEAR_MULTIPLEOPTIONS_SETUP_6603 = 6603; // 工程中心情况
- constant.YEAR_MULTIPLEOPTIONS_SETUP_6604 = 6604; // 重大科研项目
- /**
- * 配置信息 6600-6699
- * 对应year_multipleoptions_setup中的设定值
- */
- constant.UNITTYPE_10100 = 10100;//其他
- constant.UNITTYPE_10101 = 10101;//政府
- constant.UNITTYPE_10102 = 10102;//园区
- constant.UNITTYPE_10103 = 10103;//机构
- constant.UNITTYPE_10104 = 10104;//企业
- constant.UNITTYPE_10105 = 10105;//高校
- /**
- * 状态 21000-25999
- */
- constant.STATUS_TYPE_21000 = 21000; // 使用中/发布中
- constant.MESSAGE_TYPE_21000 = "登录成功";
- constant.STATUS_TYPE_21001 = 21001; // 停用
- constant.MESSAGE_TYPE_21001 = "停用";
- constant.STATUS_TYPE_21002 = 21002; // 用户未注册
- constant.MESSAGE_TYPE_21002 = "用户未注册";
- constant.STATUS_TYPE_21003 = 21003; // 用户未激活
- constant.MESSAGE_TYPE_21003 = "用户未激活";
- constant.STATUS_TYPE_21004 = 21004; // 用户账户密码错误
- constant.MESSAGE_TYPE_21004 = "用户账户密码错误";
- constant.STATUS_TYPE_21005 = 21005; // 用户账户被禁用
- constant.MESSAGE_TYPE_21005 = "用户账户被禁用";
- constant.STATUS_TYPE_21006 = 21006; //第三方应用未绑定
- constant.MESSAGE_TYPE_21006 = "未绑定";
- constant.STATUS_TYPE_21007 = 21007; //该手机号已绑定
- constant.MESSAGE_TYPE_21007 = "该手机号已绑定";
- /**
- * 表名 31000-34999
- */
- constant.TABLE_CODE_30001 = 30001; // 基本信息表 resourcelibrary
- constant.TABLE_CODE_30002 = 30002; // 评论表 info_comment
- constant.TABLE_CODE_30003 = 30003; // 对接信息表 connectioninfo 走访
- constant.TABLE_CODE_300031 = 300031; // 对接信息表 connectioninfo 录入
- constant.TABLE_CODE_30043 = 30043; // 用户基本信息 sys_users
- return constant;
- });
|