package com.kiisoo.ic.constants;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: Constants
 * @Description:
 * @Auther: Caps
 * @Date: 2020/4/8 0008 14:49
 * @Version:
 */
public class Constants {

    /**
     * 操作人
     */
    public static final String SYS_OPERATION = "系统";
    public static final String UPLOAD_OPERATION = "导入";


    /**账户类型\n（1、系统账户；2、企业微信）*/
    public static final int ACCOUNT_STATUS_UNABLE = 1;

    /**
     * 用户名或密码错误
     */
    public static final String ERROR_PASSWORD = "0003";

    public static final String ERROR_MSG_PASSWORD_ERROR = "密码错误";

    /**
     * 该账号不存在
     */
    public static final String ERROR_ACCOUNT_NOT_EXIST = "0004";

    public static final String ERROR_MSG_ACCOUNT_NOT_EXIST = "该账号不存在";

    /**
     * 该账号不存在
     */
    public static final String ERROR_ACCOUNT_NOT_BIND = "0005";

    public static final String ERROR_MSG_ACCOUNT_NOT_BIND = "该账号未绑定";

    /**
     * 该账号不存在
     */
    public static final String ERROR_ROLE_NO_PERMISSION = "0006";

    /**
     * 该用户不存在
     */
    public static final String ERROR_USER_NO_PERMISSION = "0009";

    /**
     * 该账号已暂停，请联系店长
     */
    public static final String ERROR_ACCOUNT_STOP = "0011";

    /**
     * 该账号不存在
     */
    public static final String ERROR_MOBILE_NO_USER = "1008";

    public static final String ERROR_MSG_ROLE_NO_PERMISSION = "该角色没有登录权限";

    /**
     * 系统异常
     */
    public static final String ERROR_SYSTEM = "0001";

    public static final String ERROR_MSG_SERVICE_EXCEPTION = "系统异常";

    /**
     * 无权限
     */
    public static final String LOGIN_NO_PERMISSIONS = "1007";

    /**
     * 重置密码
     */
    public static final String PASSWORD_RESET = "123456";

    /** 数字对应周 */
    public static final Map<Long, String> SELLER_TYPE = new HashMap<Long, String>() {
        private static final long serialVersionUID = 1L;
        {
            put(1L, "店长");
            put(2L, "副店长");
            put(3L, "店长助理");
            put(4L, "导购");

        }
    };
    /** 数字对应周 */
    public static final List<String> MINI_ROLE_CODE = new ArrayList<String>() {
        private static final long serialVersionUID = 1L;
        {
            add("DZ-DIANZHANG");
            add("DG-DAOGOU");
        }
    };

    public static final String MSG_ORGANIZATIONAL_HAS = "已存在组织";

    public static final String CODE_ORGANIZATIONAL_HAS = "3001";

    public static final String MSG_INSERT_ERROR = "插入失败";

    public static final String CODE_INSERT_ERROR = "0001";

    public static final String MSG_STORE_HAS = "已存在店铺";

    public static final String CODE_STORE_HAS = "3002";

    public static final String MSG_STORE_NONE = "已存在店铺";

    public static final String CODE_STORE_NONE = "3002";

    public static final String MSG_ORGANIZATIONAL_NO = "不存在对应客户";

    public static final String CODE_ORGANIZATIONAL_NO = "3003";

    public static final String MSG_DOMAIN_ENTITY_HAS = "已存在对应关系";

    public static final String CODE_DOMAIN_ENTITY_HAS = "3004";


    public static final String MSG_STORE_NO = "店铺编码不能为空";

    public static final String CODE_STORE_NO = "3005";

    public static final String MSG_STAFF_NO = "人员编码不能为空";

    public static final String MSG_STORE_NO_HAS = "店铺不存在";

    public static final String CODE_STORE_NO_HAS = "3006";

    public static final String MSG_USER_HAS = "用户已存在";

    public static final String CODE_USER_HAS = "3006";

    public static final String MSG_STORE_STAFF_HAS = "店铺人员已存在";

    public static final String CODE_STORE_STAFF_HAS = "3007";

    /**
     * 活动二维码前缀
     */
    public static final String ACTIVITY_QR_CODE_PREFIX  = "pmn";

    /**
     * 下划线
     */
    public static final String LINE  = "_";


}
