| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- package com.chuanghai.entity;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import lombok.Data;
- import javax.validation.constraints.Pattern;
- import java.io.Serializable;
- import java.time.LocalDateTime;
- import java.util.Date;
- /**
- * @Author: binguo
- * @Date: 2022/12/29 星期四 10:41
- * @Description: com.chuanghai.entity
- * @Version: 1.0
- */
- @Data
- public class PushProject implements Serializable {
- private static final long serialVersionUID = 3851799424004024204L;
- /**
- * 主键
- */
- private Long id;
- /**
- * 推送地址
- */
- private String url;
- /**
- * 推送项目
- */
- private String project;
- /**
- * 创建时间
- */
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
- private LocalDateTime createTime;
- /**
- * 状态 0(有效) 1(无效)
- */
- @Pattern(regexp = "[0-1]", message = "是否可用只能为0或者为1")
- private Integer statu;
- }
|