hejianhao
2026-08-19 4fa3099ff1d2fc02bbbfafcda7fded28f609f6ea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.tcm.training.admin.live.dto;
 
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
 
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
 
@Getter
@Setter
@NoArgsConstructor
public class HealthCourseVideoSaveRequest {
 
    private Integer courseType;
 
    private Long courseId;
 
    @NotBlank(message = "请输入小节名称")
    @Size(max = 128, message = "小节名称长度不能超过128个字符")
    private String chapterName;
 
    @NotNull(message = "请选择视频来源")
    private Integer videoSourceType;
 
    @NotBlank(message = "请输入视频地址")
    private String videoUrl;
 
    @Size(max = 255, message = "视频文件名长度不能超过255个字符")
    private String videoFileName;
 
    @NotNull(message = "请输入视频时长")
    @Min(value = 0, message = "视频时长不能小于0")
    private Integer durationSeconds;
 
    @NotNull(message = "请输入售价")
    @DecimalMin(value = "0.00", message = "售价不能小于0")
    private BigDecimal salePrice;
 
    private Integer status;
}