package shop.alien.storeplatform.util;

/**
 * 通用常量配置
 * @author zhangchen
 * @since 2025/7/1
 */
public class CommonConstant {

    /**
     * 是否删除，0：未删除，2：已删除
     */
    public static final Integer DELETE_FLAG_UNDELETE = 0;
    public static final Integer DELETE_FLAG_DELETED = 1;

    /**
     * 优惠券类型，1-代金券  2-团购（套餐）
     */
    public static final Integer LIFE_COUPON_TYPE = 1;
    public static final Integer LIFE_GROUP_TYPE = 2;

    /**
     * 优惠券状态，-1：待审核，-2：审核不通过，0：未使用，1：使用中，2：暂停，3：已结束
     */
    public static final Integer LIFE_COUPON_STATUS_PENDING_APPROVAL = -1;
    public static final Integer LIFE_COUPON_STATUS_REJECTED = -2;
    public static final Integer LIFE_COUPON_STATUS_UNUSED = 0;
    public static final Integer LIFE_COUPON_STATUS_USING = 1;
    public static final Integer LIFE_COUPON_STATUS_PAUSE = 2;
    public static final Integer LIFE_COUPON_STATUS_END = 3;

    /**
     * 新建/更新返回值，0：失败，1：成功
     */
    public static final Integer ERROR_CODE_VALID_PARAMS = 1;
    public static final Integer ERROR_CODE_INVALID_PARAMS = 0;

    /**
     * 标签类型 1:套餐, 2:门店
     */
    public static final String LABEL_TYPE_MENU = "1";
    public static final String LABEL_TYPE_SHOP = "2";

    /**
     * 图片类型，0:其他, 1:入口图, 2:相册, 3:菜品, 4:环境, 5:价目表, 6:推荐菜, 7:菜单, 8:用户评论, 9:商家申诉,10:商家头像,11:店铺轮播图,12:联名卡图片,13:动态折扣，14：营业执照，15：合同照片,17:打卡广场小人图片 18: 二手商品发布图片, 19:二手商品与用户举报图片
     */
    public static final Integer STORE_IMG_OTHER = 1;
    public static final Integer STORE_IMG_ALBUM = 2;

    public static final String STORE_DICT_TYPENAME = "storeArea,businessStatus,week,specialDate,business_section,fine_food";

    /**
     * 门店经营许可证到期状态管理 0:已到期 1:即将到期 2:未到期
     */
    public static final String FOOD_LICENCE_EXPIRE_STATUS = "0";
    public static final String FOOD_LICENCE_ABOUT_TO_EXPIRE_STATUS = "1";
    public static final String FOOD_LICENCE_NOT_EXPIRED_STATUS = "2";
}
