package net.lab1024.sa.admin.constant;

import net.lab1024.sa.base.constant.CacheKeyConst;

/**
 * 缓存 key
 *
 * @Author YouChain-yaozz
 * @Date 2022-01-07 18:59:22 * @Email huoj@youchain56.com
 */
public class AdminCacheConst extends CacheKeyConst {

    public static class Department {

        /**
         * 部门列表
         */
        public static final String DEPARTMENT_LIST_CACHE = "department_list_cache";

        /**
         * 部门map
         */
        public static final String DEPARTMENT_MAP_CACHE = "department_map_cache";

        /**
         * 部门树
         */
        public static final String DEPARTMENT_TREE_CACHE = "department_tree_cache";

        /**
         * 某个部门以及下级的id列表
         */
        public static final String DEPARTMENT_SELF_CHILDREN_CACHE = "department_self_children_cache";

        /**
         * 部门路径 缓存
         */
        public static final String DEPARTMENT_PATH_CACHE = "department_path_cache";

    }

    /**
     * 分类相关缓存
     */
    public static class Category {

        public static final String CATEGORY_ENTITY = "category_cache";

        public static final String CATEGORY_SUB = "category_sub_cache";

        public static final String CATEGORY_TREE = "category_tree_cache";
    }

    /**
     * 基础资料缓存
     */
    public static class Base {
        public static final String AREA_ENTITY = "area_cache";
        public static final String LOCATION_ENTITY = "location_cache";
        public static final String ITEM_ENTITY = "item_cache";
        public static final String STOCK_ENTITY = "stock_cache";
        public static final String ADDRESS_ENTITY = "address_cache";
        public static final String CUSTOMER_ENTITY = "customer_cache";
    }

    public static class ItemKey {
        public static final String ITEM_KEY_ENTITY = "item_key_cache";
    }

}
