package com.xueyi.common.core.constant.system;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 组织通用常量
 *
 * @author xueyi
 */
public class OrganizeConstants {

    /** 企业账号长度限制 */
    public static final int ENTERPRISE_NAME_MIN_LENGTH = 2;

    public static final int ENTERPRISE_NAME_MAX_LENGTH = 30;

    /** 用户名长度限制 */
    public static final int USERNAME_MIN_LENGTH = 2;

    public static final int USERNAME_MAX_LENGTH = 20;

    /** 密码长度限制 */
    public static final int PASSWORD_MIN_LENGTH = 5;

    public static final int PASSWORD_MAX_LENGTH = 20;

    /** 组织树类型 */
    @Getter
    @AllArgsConstructor
    public enum OrganizeType {

        ENTERPRISE("0", "企业级"),
        DEPT("1", "部门级"),
        POST("2", "岗位级"),
        USER("3", "用户级");

        private final String code;
        private final String info;

    }
}