package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 短信发送表
 * </p>
 *
 * @author XKF
 * @since 2025-02-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SMSCOLLECTION")
@ApiModel(value="Smscollection对象", description="短信发送表")
public class Smscollection extends Model<Smscollection> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "消息编号")
    private Long msgid;

    @ApiModelProperty(value = "模板ID")
    @TableField("TEMPLID")
    private Long templid;

    @ApiModelProperty(value = "消息类型")
    @TableField("MSGTYPE")
    private Integer msgtype;

    @ApiModelProperty(value = "发送状态 - 1：待发送 0\3：已发送 -1\4：发送失败")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "错误信息")
    @TableField("ERRINFO")
    private String errinfo;

    @ApiModelProperty(value = "优先级别 - 1：正常 2：加急 3：紧急")
    @TableField("PRIORITY")
    private Integer priority;

    @ApiModelProperty(value = "FailedPhone")
    @TableField("FAILEDPHONE")
    private String failedphone;

    @ApiModelProperty(value = "接收手机号")
    @TableField("RECVPHONE")
    private String recvphone;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;

    @ApiModelProperty(value = "数据是否已加密 - 0:未加密 1:已加密")
    @TableField("HASENCRYPT")
    private Integer hasencrypt;

    @ApiModelProperty(value = "短信内容(加密存储)")
    @TableField("MSGCONTENT")
    private String msgcontent;


    @Override
    public Serializable pkVal() {
        return this.msgid;
    }

}
