package cn.ey.biz.module.system.enums.category;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 字典常用枚举
 * @author Jian.Yang
 */
public interface CategoryCommonConstants {

    String BIZ_KEY = "bizKey";
    String BIZ_KEY_MAPPING = "bizKeyMapping";
    String UPDATE_DATE_HUMP = "updateTime";

    String VERSION = "version";
    String STATUS = "status";
    String UPDATE_DATE = "update_time";
    String CREATE_DATE = "create_time";
    String CATEGORY_VERSION = "category_version";
    String IS_NEW_VERSION= "is_new_version";
    String NEW_VERSION= "new_version";
    String CATEGORY_CODE= "category_code";
    String CREATOR= "creator";
    String UPDATER= "updater";
    String DELETED= "deleted";

    // system_category_data

    String DATA_CODE = "data_code";
    String DATA_NAME = "data_name";
    String DATA_VALUE = "data_value";
    String DATA_REMARK = "data_remark";
    String DATA_VERSION = "data_version";
    String SORT = "sort";

    // in18n_dict

    String CN = "zh-CN";
    String EN = "en-US";


    /**
     * 创建方式
     */
    @Getter
    @AllArgsConstructor
     enum CreatedType {
        /**
         * 录入
         */
        MANUAL(0),

        /**
         * 同步
         */
         SYNC(1);

        final Integer code;
    }


}
