package com.ruoyi.web.modules.goods.constant;

/**
 * 商品常量
 */
public final class GoodsConstants
{
    private GoodsConstants()
    {
    }

    public static final String STATUS_DRAFT = "0";

    public static final String STATUS_PENDING = "1";

    public static final String STATUS_ON_SALE = "2";

    public static final String STATUS_REJECTED = "3";

    public static final String STATUS_OFF_SHELF = "4";

    public static final String DEL_NORMAL = "0";

    public static final String DEL_DELETED = "2";

    public static final String REDIS_SN_PREFIX = "agri:goods:sn:";

    public static final String MSG_ILLEGAL_STATUS_CHANGE = "请通过提交上架、审核或下架变更商品状态";

    public static final String MSG_CANNOT_REVERT_DRAFT = "当前状态不可改为未上架";

    public static final String MSG_NO_SHOP = "请先选择当前店铺";

    public static final String MSG_GOODS_NOT_FOUND = "商品不存在";

    public static final String MSG_NOT_OWNER = "无权操作该商品";

    public static final String MSG_CATEGORY_INVALID = "请选择平台二级分类";

    public static final String MSG_SUBMIT_INVALID = "当前状态不可提交上架";

    public static final String MSG_AUDIT_INVALID = "仅待审核商品可审核";

    public static final String MSG_REJECT_REASON = "请填写驳回原因";

    public static final String MSG_OFF_SHELF_INVALID = "仅出售中商品可下架";

    public static final String MSG_BATCH_FAIL = "部分商品不满足操作条件，操作已取消";

    public static final String MSG_SERVICE_INVALID = "存在无效的商品服务项";

    public static final String MSG_SHOP_CATEGORY_INVALID = "请选择本店店铺商品二级分类";

    public static final String MSG_ATTR_TEMPLATE_INVALID = "请选择本店有效属性模版";

    public static final String MSG_ATTR_ITEM_NAME_REQUIRED = "请输入属性项/规格项名称";

    public static final String MSG_ATTR_ITEM_NAME_DUPLICATE = "属性项/规格项名称不可重复";

    public static final String MSG_ATTR_CROSS_ITEM_NAME = "属性项与规格项名称不可相同";

    public static final String MSG_ATTR_VALUE_REQUIRED = "请为每项至少添加一个属性值/规格值";

    public static final String MSG_ATTR_VALUE_DUPLICATE = "同一项下属性值/规格值不可重复";

    public static final String MSG_DELETE_INVALID = "当前状态不可删除";

    public static final String MSG_UNFINISHED_ORDER = "该商品存在未完成订单，无法下架";

    public static final String MSG_SELECT_GOODS = "请选择要操作的商品";

    public static final int MAX_SUB_PIC_COUNT = 10;

    public static final String MSG_SUB_PIC_TOO_MANY = "商品副图最多10张";

    public static final String MSG_SUB_PIC_TOO_LONG = "副图地址过长";

    public static final String MSG_FREIGHT_TYPE_REQUIRED = "请选择配送运费方式";

    public static final String MSG_FIXED_FREIGHT_REQUIRED = "请输入固定运费";

    public static final String MSG_FIXED_FREIGHT_NEGATIVE = "固定运费不能为负数";

    public static final String MSG_FREIGHT_TEMPLATE_REQUIRED = "请选择运费模版";

    public static final String MSG_FREIGHT_TEMPLATE_INVALID = "请选择本店有效运费模版";

    public static final String DICT_GOODS_STATUS = "goods_status";
}
