| | |
| | | import org.springframework.data.mongodb.core.mapping.Document; |
| | | import org.yeshi.utils.push.entity.PushAppInfo; |
| | | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | |
| | | |
| | | @Id |
| | | private String id; |
| | | @NotEmpty(message = "appCode不能为空") |
| | | private String appCode; |
| | | @NotNull(message = "platform不能为空") |
| | | private PushPlatform platform; |
| | | @NotNull(message = "pushAppInfo不能为空") |
| | | private PushAppInfo pushAppInfo; |
| | | private Date createTime; |
| | | private Date updateTime; |
| | | |
| | | public static String createId(String appCode, PushPlatform platform) { |
| | | return appCode + "-" + platform.name(); |
| | | } |
| | | |
| | | |
| | | public String getId() { |
| | | return id; |
| | | } |