package com.doumee.dao.business.model;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.doumee.core.annotation.excel.ExcelColumn;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
* 短信验证码
|
* @author rk
|
* @date 2026/04/08
|
*/
|
@Data
|
@ApiModel("短信验证码")
|
@TableName("`smsrecord`")
|
public class Smsrecord {
|
|
@TableId(type = IdType.AUTO)
|
@ApiModelProperty(value = "主键", example = "1")
|
private Integer id;
|
|
@ApiModelProperty(value = "是否已删除 0未删除 1已删除", example = "0")
|
private Integer deleted;
|
|
@ApiModelProperty(value = "创建人编码", example = "1")
|
private Integer createUser;
|
|
@ApiModelProperty(value = "创建时间")
|
@ExcelColumn(name = "创建时间", index = 1, width = 16, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
@ApiModelProperty(value = "更新人编码", example = "1")
|
private Integer updateUser;
|
|
@ApiModelProperty(value = "更新时间")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date updateTime;
|
|
@ApiModelProperty(value = "备注")
|
private String remark;
|
|
@ApiModelProperty(value = "手机号")
|
@ExcelColumn(name = "手机号", index = 2, width = 12)
|
private String phone;
|
|
@ApiModelProperty(value = "短信内容")
|
@ExcelColumn(name = "短信内容", index = 3, width = 20)
|
private String content;
|
|
@ApiModelProperty(value = "短信类型:0=验证码", example = "0")
|
@ExcelColumn(name = "短信类型", index = 4, width = 10, valueMapping = "0=验证码;")
|
private Integer type;
|
|
@ApiModelProperty(value = "有效期")
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date validDate;
|
|
@ApiModelProperty(value = "关键字(验证码等)")
|
private String code;
|
|
@ApiModelProperty(value = "状态 0未使用 1已使用 2已过期", example = "0")
|
@ExcelColumn(name = "状态", index = 5, width = 10, valueMapping = "0=未使用;1=已使用;2=已过期;")
|
private Integer status;
|
|
}
|