package com.gxwebsoft.love.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 会员套餐管理表
 *
 * @author 科技小王子
 * @since 2023-06-21 11:21:01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "UserPlan对象", description = "会员套餐管理表")
@TableName("love_user_plan")
public class UserPlan implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "套餐ID")
    @TableId(value = "plan_id", type = IdType.AUTO)
    private Integer planId;

    @ApiModelProperty(value = "套餐名称")
    private String name;

    @ApiModelProperty(value = "类型 0单身 1婚介")
    private Integer type;

    @ApiModelProperty(value = "副标题")
    private String subName;

    @ApiModelProperty(value = "会员身份")
    private Integer roleId;

    @ApiModelProperty(value = "会员等级")
    private Integer gradeId;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "状态, 0正常, 1冻结")
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "角色名称")
    @TableField(exist = false)
    private String roleName;

    @ApiModelProperty(value = "会员等级")
    @TableField(exist = false)
    private String gradeName;

    @ApiModelProperty(value = "套餐价格")
    @TableField(exist = false)
    private List<UserPlanPrice> price;

    @ApiModelProperty(value = "解锁的权益")
    @TableField(exist = false)
    private List<UserPlanEquity> equity;

    @ApiModelProperty(value = "购买记录")
    @TableField(exist = false)
    private List<UserPlanLog> log;

    @ApiModelProperty(value = "权益图标")
    @TableField(exist = false)
    private List<UserPlanIcon> icons;

    @ApiModelProperty(value = "过期时间")
    @TableField(exist = false)
    private String expirationTime;

}
