package jnpf.constants;

/**
 * redis常量类
 */
public class RedisConstant {

    public static final String CACHE_GROUP = "cache_group:";
    public static final String GROUP_JOIN_USERS_KEY = "cache_group:join:Users:%s";
    public static final String GROUP_ONBOARDING_KEY = "cache_group:onboarding:%s";
    public static final String ATTENDANCE_SET_SCHEDULES= "fbt:attendance:set_schedules:%s:%s";
    public static final String ATTENDANCE_BASE_SETTING_CACHE_KEY = "fbt:attendance:base_setting:cache:%s";
    //fbt:attendance:user:set_schedules:租户:考勤组id:用户id
    public static final String ATTENDANCE_USER_SET_SCHEDULES= "fbt:attendance:user:set_schedules:%s:%s:%s";
    public static final String ATTENDANCE_CHANGE_SHIFT_STATUS= "fbt:attendance:change_shift_status:%s:%s";
    public static final String ATTENDANCE_CHANGE_GROUP_STATUS= "fbt:attendance:change_group_status:%s:%s";
    public static final String ATTENDANCE_UPDATE_FIXED_CLASS= "fbt:attendance:update_fixed_class:%s:%s";
    public static final String ATTENDANCE_UPDATE_SHIFT_CONFIG= "fbt:attendance:update_shift_config:%s:%s";
    public static final String ATTENDANCE_LATE_IN_LATE_OUT = "fbt:attendance:late_in_late_out:%s:%s";
    public static final String ATTENDANCE_LINE_SCHEDULING_NOTICE = "ftb:attendance:line_scheduling_notice:%s";

    // 考勤自动封账配置信息缓存
    public static final String ATTENDANCE_SEAL_SETTING = "fbt:attendance:seal_setting:%s";


    public static final String ATTENDANCE_NOTIFICATION_CLOCK_USER = "fbt:attendance:user:notification:clock:%s:%s";

    /**
     * 智能排班预排班主表暂存：租户、考勤组、排班区间（yyyy-MM-dd_yyyy-MM-dd）。
     */
    public static final String ATTENDANCE_SMART_PRE_SCHEDULE = "fbt:attendance:smart_pre_schedule:%s:%s:%s";

    /**
     * 智能排班预排班按员工视图 Redis key 固定前缀；后缀为 {@code 租户:考勤组:yyyy-MM-dd_yyyy-MM-dd}。
     */
    public static final String ATTENDANCE_SMART_PRE_SCHEDULE_BY_EMPLOYEE_PREFIX =
            "fbt:attendance:smart_pre_schedule_by_employee:%s:%s";
}
