课时管理

This commit is contained in:
none
2023-02-26 18:25:15 +08:00
parent 3974f068e0
commit dd7bed66b5
16 changed files with 535 additions and 16 deletions

View File

@@ -0,0 +1,36 @@
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;
}

View File

@@ -1,5 +1,6 @@
package xyz.playedu.api.request.backend;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import xyz.playedu.api.request.backend.types.ImageCaptchaRequestInterface;
@@ -20,8 +21,10 @@ public class LoginRequest implements Serializable, ImageCaptchaRequestInterface
public String password;
@NotNull(message = "请输入图形验证码")
@JsonProperty("captcha_value")
public String captchaValue;
@NotNull(message = "captchaKey参数为空")
@JsonProperty("captcha_key")
public String captchaKey;
}