package com.sonic.frog.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.sonic.frog.enums.HeartbeatLevelEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 礼物字典表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("gift_dict")
public class GiftDict {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 礼物名称
     */
    @TableField("name")
    private String name;

    /**
     * 礼物单价 对应Coin数量
     */
    @TableField("price")
    private Long price;

    /**
     * 礼物icon
     */
    @TableField("icon")
    private String icon;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 礼物说明
     */
    @TableField("`desc`")
    private String desc;


    /**
     * 发送该礼物需要的心动等级
     */
    @TableField("heartbeat_level")
    private HeartbeatLevelEnum heartbeatLevel;


    @ApiModelProperty("是否会员礼物")
    @TableField("is_member_gift")
    private Boolean isMemberGift;

    /**
     * 是否删除 (0:未删除, 1:删除)
     */
    @TableField("is_delete")
    private Boolean isDelete;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 创建人
     */
    @TableField("creator_id")
    private Long creatorId;
}