package com.iformall.domain.po;

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;

@TableName(value = "wx_msg_limit")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class WxMsgLimit extends BaseEntity {

    protected Long id;

    @io.swagger.annotations.ApiModelProperty(value="租户ID",name="tenantId")
	private String tenantId;
    @io.swagger.annotations.ApiModelProperty(value="1: 短信-验证码（24小时10条）2：短信-营销(24小时3条) 11:prepay_id(7天内3次), 12:form_id(7天内1次), 13.open_id for 小程序统一消息限制(2天内1次),14.open_id for 公众号模板消息限制(2天内1次)",name="type")
    private Integer type;
	@io.swagger.annotations.ApiModelProperty(value="限制ID",name="limitId")
	private String limitId;
	@io.swagger.annotations.ApiModelProperty(value="限制次数",name="limitNum")
	private Integer limitNum;
	@io.swagger.annotations.ApiModelProperty(value="限制时间(type=1,2时,24小时； tyep=11，12，13时，为自然日结束时间)",name="limitDate")
	private Date limitDate;

	@TableField(exist = false)
    @io.swagger.annotations.ApiModelProperty(value="过期时间(一般为当前时间)",name="expireDate")
    private Date expireDate;

}
