package cn.axzo.msg.center.service.pending.request;

import cn.axzo.core.domain.PageRequest;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author yanglin
 */
@Setter
@Getter
public class PendingMessageIterateRequest extends PageRequest {
    @NotBlank(message = "templateCode is required")
    private String templateCode;
    private String bizCode;
    // 在某个时间点后创建的 create_at <= ${cratedAtAfter}
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date cratedAtAfter;
}
