package com.gic.haoban.manage.api.enums.content;

/**
 * @Author MUSI
 * @Date 2023/3/29 2:00 PM
 * @Description
 * @Version
 * 素材分享记录 枚举
 **/
public enum MaterialInteractRecordEventType {

    VISIT_MATERIAL(1, "浏览了你分享的素材"),
    VISIT_PRODUCT(2, "浏览了你分享的素材，并查看了关联商品"),
    ORDER(3, "浏览了你分享的素材，并购买了商品");

    MaterialInteractRecordEventType(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    public static MaterialInteractRecordEventType getInstance(Integer code) {
        if (code == null) {
            return null;
        }
        for (MaterialInteractRecordEventType value : values()) {
            if (value.code.equals(code)) {
                return value;
            }
        }
        return null;
    }
    private Integer code;
    private String desc;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
