package com.freemud.sdk.api.assortment.shoppingcart.constant;

import com.alibaba.fastjson.TypeReference;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.lang.reflect.Type;

/**
 * All rights Reserved, Designed By www.freemud.cn
 *
 * @version V1.0.0
 * @Description:
 * @author: hui.miao
 * @date: 2020-09-27 18:20
 * @Copyright: 2020 www.freemud.cn Inc. All rights reserved.
 * 注意：本内容仅限于上海非码科技内部传阅，禁止外泄以及用于其他的商业目
 */
@Getter
@AllArgsConstructor
public enum CollageOrderCacheFields {
    COLLAGE_ID(0, "collageId", new TypeReference<String>(){}.getType(), "")
    ,CREATE_COLLAGE_USER_ID(1, "createCollageUserId", new TypeReference<String>(){}.getType(), "")
    ,PARTNER_ID(2, "partnerId", new TypeReference<String>(){}.getType(), "")
    ,STORE_ID(3, "storeId", new TypeReference<String>(){}.getType(), "")
    ,CREATE_TIME(4, "createTime", new TypeReference<Long>(){}.getType(), 0L)
    ,EXPIRE_TIME(5, "expireTime", new TypeReference<Long>(){}.getType(), 0L)
    ;

    private Integer index;
    private String key;
    private Type type;
    private Object defaultValue;

}
