package com.palmnest.application;

/**
 * 通用码
 *
 * @author wangxz
 * <p>
 * 2018年4月24日
 */
public class AppConstants {

	/**
	 * 成功
	 */
	public static String SUCCESS_CODE = "200";

	/**
	 * 通用失败
	 */
	public static String ERROR_CODE = "500";

	/**
	 * 用户名或密码错误
	 */
	public static       String USER_NAME_OR_PASSWORD_NULL = "4001";
	/**
	 * 登录用户不存在
	 */
	public static       String USER_NOT_EXIST             = "4002";
	/**
	 * 密码错误
	 */
	public static       String PASSWORD_ERROR             = "4003";
	/**
	 * 手机号码对应用户已存在
	 */
	public static       String PHONE_USER_EXIST           = "4004";
	/**
	 * 非法请求(安全验证，参数验证)
	 */
	public static final String RESULTCODE_ILLEGAL         = "503";

	/**
	 * TOKEN过期
	 */
	public static final String TOKEN_EXPIRED          = "209";
	/**
	 * 获取access_token过期
	 */
	public static final String GET_ACCESS_TOKEN_ERROR = "210";


	//----公告通知----------start-----

	/**
	 * 查询公告列表失败
	 */
	public static final String GET_NOTICE_LIST_ERROR   = "3001";
	/**
	 * 查询公告详情失败
	 */
	public static final String GET_NOTICE_DETAIL_ERROR = "3002";

	/**
	 * 查询微信详情失败
	 */
	public static final String GET_WC_DETAIL_ERROR = "3002";
	/**
	 * 查询banner列表失败
	 */
	public static final String GET_BANNER_DETAIL_ERROR = "3003";
	/**
	 * 新增公告失败
	 */
	public static final String ADD_NOTICE_ERROR        = "3004";

	//----公告通知----------end-----

	//----工程维修----------start-----
	/**
	 * 发起维修报错
	 */
	public static final String REPAIR_BILL_ERROR = "4007";

	/**
	 * 查询列表报错
	 */
	public static final String REPAIR_BILL_LIST_ERROR     = "4008";
	/**
	 * 查询列表报错
	 */
	public static final String REPAIR_BILL_TYPE_LIST_ERROR     = "4070";
	/**
	 * 抢单失败,单不是可抢单状态
	 */
	public static final String GRAB_BILL_ERROR            = "4009";
	/**
	 * 抢单失败,名下待处理单过多
	 */
	public static final String TOO_MANY_BILL_ERROR        = "4010";
	/**
	 * 公众号配置错误或IP未授权
	 */
	public static final String WECHAT_CONFIGURATION_ERROR = "4011";
	/**
	 * 公众号关注列表为空，无法推送消息
	 */
	public static final String WECHAT_NONE_FOLLOWER_ERROR = "4012";
	/**
	 * 微信模板发送失败
	 */
	public static final String WECHAT_SEND_ERROR          = "4013";
	/**
	 * 参数错误
	 */
	public static final String PARAM_ERROR                = "4014";

	/**
	 * 转单失败，不是可转单状态
	 */
	public static final String TRANFER_BILL_ERROR    = "4015";
	/**
	 * 转单失败
	 */
	public static final String TRANFER_ERROR         = "4016";
	/**
	 * 挂单失败，不是可挂单状态
	 */
	public static final String PEND_BILL_ERROR       = "4017";
	/**
	 * 挂单失败
	 */
	public static final String PEND_ERROR            = "4018";
	/**
	 * 派单失败
	 */
	public static final String SEND_ERROR            = "4019";
	/**
	 * 派单失败，不是可派单状态
	 */
	public static final String SEND_BILL_ERROR       = "4020";
	/**
	 * 添加协办人失败
	 */
	public static final String ADD_SUPPORT_ERROR     = "4021";
	/**
	 * 获取协办人失败
	 */
	public static final String GET_SUPPORT_ERROR     = "4022";
	/**
	 * 添加耗材失败
	 */
	public static final String ADD_MATERIAL_ERROR    = "4023";
	/**
	 * 删除耗材失败
	 */
	public static final String DELETE_MATERIAL_ERROR = "4024";
	/**
	 * 取消挂单失败
	 */
	public static final String CANCEL_PEND_ERROR     = "4025";
	/**
	 * 拒绝转单失败
	 */
	public static final String HANDLE_TRANSFER_ERROR = "4026";
	/**
	 * 添加评论失败
	 */
	public static final String ADD_COMMENT_ERROR     = "4027";

	/**
	 * 审核失败，不是可审核状态
	 */
	public static final String AUDIT_BILL_ERROR = "4028";

	/**
	 * 获取耗材失败
	 */
	public static final String GET_MATERIAL_ERROR     = "4029";

	/**
	 * 完成单失败
	 */
	public static final String COMPLETE_BILL_ERROR    = "4030";
	/**
	 * 添加回访记录
	 */
	public static final String ADD_RETURN_VISIT_ERROR = "4031";

	//----工程维修----------end-----

	/**
	 * 微信支付二维码链接生成失败
	 */
	public static final String PAY_CODE_URL_ERROR = "5001";

	/**
	 * 上传头像失败
	 */
	public static final String UPLOAD_PHOTO_ERROR = "5002";
	/**
	 * 修改密码失败
	 */
	public static final String MODIFY_PWD_ERROR   = "5003";
	/**
	 * 退出登录失败
	 */
	public static final String LOGIN_OUT_ERROR    = "5004";

	/**
	 * 签到失败
	 */
	public static final String CHECK_IN_ERROR  = "5005";
	/**
	 * 签出失败
	 */
	public static final String CHECK_OUT_ERROR = "5006";

	/**
	 * 获取验证码失败
	 */
	public static final String GET_CODE_ERROR        = "5007";
	/**
	 * 验证码验证失败
	 */
	public static final String AUTH_CODE_ERROR       = "5008";
	/**
	 * 重置密码失败
	 */
	public static final String REST_PASSWORD_ERROR   = "5009";
	/**
	 * 更新设备码失败
	 */
	public static final String UPDATE_DEVICENO_ERROR = "5010";

	/**
	 * 手机号码验证失败
	 */
	public static final String PHONE_VALIDATE_ERROR = "5011";
	/**
	 * 修改手机号码失败
	 */
	public static final String UPDATE_PHONE_ERROR   = "5012";
	/**
	 * 查询用户服务菜单失败
	 */
	public static       String SERVICE_MENU_ERROR   = "5013";
	/**
	 * 查询用户信息失败
	 */
	public static       String QUERY_USER_ERROR     = "5014";

	/**
	 * 拒绝放行失败，该单不是审核中状态
	 */
	public static final String REFUSE_RELEASE     = "6001";
	/**
	 * 同意放行失败，该单不是审核中状态
	 */
	public static final String AGREE_RELEASE      = "6001";
	/**
	 * 工程维修首页脚标查询失败
	 */
	public static final String REPAIR_INDEX_ERROR = "6002";
	/**
	 * 公告审核首页脚标查询失败
	 */
	public static final String NOTICE_INDEX_ERROR = "6003";

	//------项目相关start----

	/**
	 * 查询项目列表失败
	 */
	public static final String OGR_LIST_ERROR = "7001";

	//------项目相关end----


	/**
	 * token获取成功
	 */
	public static String TOK_SUCCESS_CODE = "000000";

	/**
	 * token获取失败
	 */
	public static String TOK_FAIL_CODE     = "999999";
	/**
	 * 单据不存在
	 */
	public static String BILL_NON_EXISTENT = "10000";
	/**
	 * 单据已存在
	 */
	public static String BILL_EXISTENT     = "20000";


	/**
	 * 放入redis用户组织关系表键值
	 */
	public static String USERMANAGEORG = "userManageOrg_";

	//PC端口
	public static String CLIENT_PC = "PC";

	/**
	 * 基础权限id -1
	 */
	public static Integer BASEFUNCTION          = -1;
	/**
	 * 项目管理员角色类型
	 */
	public static Integer OGR_MANAGER_ROLE_TYPE = 3;

	/**
	 * 企业迁入/迁出
	 */
	public static int ENTERPRISE_CONFIG_TYPE_FILE = 5;//入驻文件
	public static int ENTERPRISE_OUT_TYPE_FILE    = 5;//迁出文件

	/**
	 * 微信客服消息错误信息
	 */
	public static final String OPEN_ID_ERROR  = "7001";
	public static final String CONTENT_ERROR  = "7002";
	public static final String SEND_MSG_ERROR = "7003";


	public static final String TOKEN_NULL    = "9001";
	public static final String TOKEN_ILLEGAL = "9002";
	public static final String USER_ILLEGAL  = "9003";

	/**
	 * 微信公众号token
	 */
	public static final String DEVELOPID_NULL  = "10001";
	public static final String TOKEN_EXCEPTION = "10002";
}
