修改代码bug增加业务逻辑
parent
722a09b369
commit
d681195c43
@ -1,27 +1,24 @@
|
||||
package com.baiye.modules.distribute.dto;
|
||||
|
||||
import com.baiye.validation.group.CreateGroup;
|
||||
import com.baiye.validation.group.UpdateGroup;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ReadFileDTO {
|
||||
|
||||
@Schema(title = "记录ID")
|
||||
@NotNull(message = "记录ID不能为空", groups = { CreateGroup.class })
|
||||
private Long recordId;
|
||||
|
||||
@Schema(title = "渠道名称")
|
||||
@NotBlank(message = "渠道名称不能为空", groups = { CreateGroup.class })
|
||||
@NotBlank(message = "渠道名称不能为空", groups = {CreateGroup.class})
|
||||
private String channelName;
|
||||
|
||||
@Schema(title = "分发人用户ID集合")
|
||||
@NotEmpty(message = "用户不能为空", groups = { CreateGroup.class })
|
||||
@NotEmpty(message = "用户不能为空", groups = {CreateGroup.class})
|
||||
private List<Long> distributorsUserIdList;
|
||||
}
|
||||
|
Loading…
Reference in New Issue