package com.iformall.domain.po;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * @author gongbiao
 */
@TableName(value = "wx_activity_join")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class WxActivityJoin extends BaseEntity {

    protected Long id;

    @io.swagger.annotations.ApiModelProperty(value = "租户ID", name = "tenantId")
    private String tenantId;

    @io.swagger.annotations.ApiModelProperty(value = "C端用户ID", name = "userId")
    private Long userId;
    @io.swagger.annotations.ApiModelProperty(value = "活动ID", name = "activityId")
    private Long activityId;

    @Excel(name = "姓名", width = 10, orderNum = "1")
    @io.swagger.annotations.ApiModelProperty(value = "姓名", name = "name")
    private String name;

    @Excel(name = "微信昵称", width = 10, orderNum = "4")
    @io.swagger.annotations.ApiModelProperty(value = "昵称", name = "nickName")
    private String nickName;

    @Excel(name = "生日", format = "yyyy-MM-dd", width = 10, orderNum = "5")
    @io.swagger.annotations.ApiModelProperty(value = "生日", name = "birthday")
    private Date birthday;

    @Excel(name = "性别", replace = {"保密_0", "男_1", "女_2"}, width = 10, orderNum = "3")
    @io.swagger.annotations.ApiModelProperty(value = "性别0保密1男2女", name = "sex")
    private Integer sex;

    @io.swagger.annotations.ApiModelProperty(value = "地址", name = "address")
    private String address;

    @Excel(name = "电话号码", width = 10, orderNum = "2")
    @io.swagger.annotations.ApiModelProperty(value = "手机", name = "phone")
    private String phone;

    @Excel(name = "调查问券", width = 10, orderNum = "50")
    @io.swagger.annotations.ApiModelProperty(value = "调查问券", name = "answer")
    private String answer;
    @Excel(name = "活动签到", replace = {"未签到_0", "已签到_1"}, width = 10, orderNum = "7")
    @io.swagger.annotations.ApiModelProperty(value = "签到状态1签到0未签到", name = "signIn")
    private Integer signIn;
    @Excel(name = "报名状态", replace = {"未确认_0", "已确认_1", "报名失败_2", "活动过期_3"}, width = 10, orderNum = "8")
    @io.swagger.annotations.ApiModelProperty(value = "状态0未确认-报名中1确认-报名成功2取消-报名失败3过期", name = "status")
    private Integer status;
    @Excel(name = "报名时间", format = "yyyy-MM-dd HH:mm:ss", width = 10, orderNum = "6")
    @io.swagger.annotations.ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;
    @io.swagger.annotations.ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

    @io.swagger.annotations.ApiModelProperty(value = "是否发送短信1是0否", name = "sendMsg")
    private Integer sendMsg;

    @io.swagger.annotations.ApiModelProperty(value = "图片", name = "imgUrl")
    private String imgUrl;

    @TableField(exist = false)
    @io.swagger.annotations.ApiModelProperty(value = "状态", name = "statusStr")
    private String statusStr;

    @Excel(name = "联系电话", width = 10, orderNum = "9")
    @io.swagger.annotations.ApiModelProperty(value = "联系电话", name = "telphone")
    private String telphone;

}
