PlayEdu/src/main/java/xyz/playedu/api/request/backend/CourseHourRequest.java
2023-02-26 18:25:15 +08:00

37 lines
915 B
Java

package xyz.playedu.api.request.backend;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.util.Date;
/**
* @Author 杭州白书科技有限公司
* @create 2023/2/26 18:00
*/
@Data
public class CourseHourRequest {
@NotNull(message = "chapter_id参数不存在")
@JsonProperty("chapter_id")
private Integer chapterId;
@NotNull(message = "title参数不存在")
@NotBlank(message = "请输入课时标题")
private String title;
@NotNull(message = "type参数不存在")
@NotBlank(message = "请选择课时类型")
private String type;
@NotNull(message = "duration参数不存在")
private Integer duration;
@NotNull(message = "published_at参数不存在")
@JsonProperty("published_at")
private Date publishedAt;
}