package com.czg.system.dto;

import com.czg.validator.group.Group;
import com.czg.validator.group.UpdateGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author GYJoker
 */
@Data
public class VersionDTO {

    @NotNull(message = "版本id不能为空", groups = {UpdateGroup.class})
    private Long id;

    @NotBlank(message = "渠道不能为空", groups = {Group.class})
    private String source;

    @NotBlank(message = "版本类型不能为空", groups = {Group.class})
    private String type;

    @NotBlank(message = "版本号不能为空", groups = {Group.class})
    private String version;

    private Integer isForce = 0;
    private String message;

    @NotBlank(message = "下载地址不能为空", groups = {Group.class})
    private String url;
}
