package com.ruoyi.goods.api.domain; import com.baomidou.mybatisplus.annotations.TableField; import com.baomidou.mybatisplus.annotations.TableId; import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.enums.IdType; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; import java.time.LocalDateTime; /** * @author zhibing.pu * @Date 2025/5/12 10:34 */ @Data @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) @TableName("t_user_lottery_event") public class TUserLotteryEvent { /** * 主键 */ @TableId(value = "id", type = IdType.INPUT) private String id; /** * 用户id */ @TableField(value = "user_id") private Long userId; /** * 抽奖id */ @TableField(value = "lottery_event_id") private String lotteryEventId; /** * 抽奖奖品id */ @TableField(value = "lottery_event_prize_id") private String lotteryEventPrizeId; /** * 奖品类型(1=优惠券,2=平台商品,3=线下商品,4=积分,5=未中奖) */ @TableField(value = "prize_type") private Integer prizeType; /** * 奖品id */ @TableField(value = "object_id") private String objectId; /** * 奖品名称 */ @TableField(value = "object_name") private String objectName; /** * 奖品数量 */ @TableField(value = "number") private Integer number; /** * 中奖时间 */ @TableField(value = "create_time") private LocalDateTime createTime; /** * 订单id */ @TableField(value = "orderId") private String orderId; }