package com.iformall.domain.po.msg;

import com.baomidou.mybatisplus.annotation.TableField;
import com.iformall.domain.po.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


/**
 * @author luozukai
 * @date 2019/3/7 10:05
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class BaseMsg extends BaseEntity {
    private static final long serialVersionUID = 923764283764823L;

    @io.swagger.annotations.ApiModelProperty(value="域0全部 1sys 2a端 3c端 4b端",name="domain")
    @TableField(exist = false)
    private Integer domain = 0;

    @io.swagger.annotations.ApiModelProperty(value="租户id",name="tenantId")
    @TableField(exist = false)
    private String tenantId;

    @io.swagger.annotations.ApiModelProperty(value="唯一标识",name="uuid")
    @TableField(exist = false)
    private String uuid;

    @io.swagger.annotations.ApiModelProperty(value="接收人,手机号邮件地址等",name="receiver")
    @TableField(exist = false)
    private String receiver;

    @io.swagger.annotations.ApiModelProperty(value="消息类型 1短信 2回调短信 3邮件 4微信小程序模板 5微信公众号模板 6系统通知 7websocket",name="msgType")
    @TableField(exist = false)
    private Integer msgType;

    @io.swagger.annotations.ApiModelProperty(value="消息状态 0默认1发送成功2消费成功3消费失败",name="msgStatus")
    @TableField(exist = false)
    private Integer msgStatus;

    @io.swagger.annotations.ApiModelProperty(value="结果信息",name="statusMessage")
    @TableField(exist = false)
    private String statusMessage;

    @io.swagger.annotations.ApiModelProperty(value="延迟重试消息 1s，5s，10s，30s，1m，2m，3m，4m，5m，6m，7m，8m，9m，10m，20m，30m，1h，2h",name="delayTimeLevel")
    @TableField(exist = false)
    private Integer delayTimeLevel = 0;

}
