package com.cyksj.model.entity;

import lombok.Getter;
import lombok.Setter;

/*
 *项目名: netflix
 *文件名: LuckyDrawRecord
 *创建者: JavaZou
 *创建时间:2022/12/28 14:49
 */
@Getter
@Setter
public class LuckyDrawRecord extends BaseEntity{
	private LuckyDraw.Type type;

	private Long userId;

	private Long drawId;

	private Long orderId;

	private String name;

	private Integer points;

	private Long couponId;

	private Long goodsId;

	private Long skuId;

	private Integer days;

	private Integer cost;

	/**
	 * 兑换码
	 */
	private String exCode;

	private String picture;

	private LuckyDraw.DrawType drawType;

	private Status status;

	@Getter
	public enum Status{
		pending("待领取"),
		success("已领取");
		;

		String desc;

		Status(String desc) {
			this.desc = desc;
		}
	}
}
