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(), "")
    ,PARTNER_NAME(3, "partnerName", new TypeReference<String>(){}.getType(), "")
    ,STORE_ID(4, "storeId", new TypeReference<String>(){}.getType(), "")
    ,STORE_NAME(5, "storeName", new TypeReference<String>(){}.getType(), "")
    ,CREATE_TIME(6, "createTime", new TypeReference<Long>(){}.getType(), 0L)
    ,EXPIRE_TIME(7, "expireTime", new TypeReference<Long>(){}.getType(), 0L)
    ,STATUS(8, "status", new TypeReference<Integer>(){}.getType(), 0)
    ,ORDER_CODE(9, "orderCode", new TypeReference<String>(){}.getType(), "")
    ;

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

}
