package com.stylefeng.guns.modular.system.model;
|
|
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 com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
* 平台协议
|
*/
|
@TableName("t_invite")
|
@Data
|
public class Invite{
|
|
@TableId(value = "id", type = IdType.AUTO)
|
@TableField("id")
|
private Integer id;
|
// 邀请人id
|
@TableField("inviteUserId")
|
private Integer inviteUserId;
|
// 被邀请人id
|
@TableField("userId")
|
private Integer userId;
|
/**
|
* 添加时间
|
*/
|
@TableField("registerTime")
|
@ApiModelProperty("注册时间")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date registerTime;
|
/**
|
* 使用范围(1=用户,2=司机)
|
*/
|
@TableField("userType")
|
private Integer userType;
|
|
@TableField(exist = false)
|
@ApiModelProperty("头像")
|
private String avatar;
|
|
@ApiModelProperty("手机号")
|
@TableField(exist = false)
|
private String phone;
|
}
|