mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-23 11:09:29 +08:00
课时管理
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user