From c46f49af9e766aed0ba583fce0efab98ebcdf76c Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期二, 18 六月 2024 17:12:06 +0800 Subject: [PATCH] 管理员增加学生端权限 --- src/main/java/com/ycl/jxkg/domain/vo/ClassesVO.java | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/domain/vo/ClassesVO.java b/src/main/java/com/ycl/jxkg/domain/vo/ClassesVO.java index 8d51133..89ba6eb 100644 --- a/src/main/java/com/ycl/jxkg/domain/vo/ClassesVO.java +++ b/src/main/java/com/ycl/jxkg/domain/vo/ClassesVO.java @@ -1,15 +1,14 @@ package com.ycl.jxkg.domain.vo; +import com.fasterxml.jackson.annotation.JsonFormat; import com.ycl.jxkg.domain.base.AbsVo; import com.ycl.jxkg.domain.entity.Classes; -import java.time.LocalDateTime; import java.util.Date; -import java.util.List; + +import com.ycl.jxkg.enums.general.ClassesStatusEnum; import org.springframework.lang.NonNull; import org.springframework.beans.BeanUtils; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** @@ -26,19 +25,33 @@ /** 鍒涘缓浜� */ private Integer createUser; + private String createUserName; + private String teacherPhone; /** 鍒涘缓鏃堕棿 */ + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createTime; /** 鐝骇浜烘暟 */ private Integer classesNumber; /** 鐝骇鐘舵�� */ - private String status; + private ClassesStatusEnum status; /** 楠岃瘉鐘舵�� */ private String verifyStatus; + /** 寮�濮嬫椂闂� */ + @JsonFormat(pattern = "yyyy-MM-dd") + private Date startTime; + + /** 缁撴潫鏃堕棿 */ + @JsonFormat(pattern = "yyyy-MM-dd") + private Date endTime; + + /** 澶囨敞 */ + private String remark; + public static ClassesVO getVoByEntity(@NonNull Classes entity, ClassesVO vo) { if(vo == null) { vo = new ClassesVO(); -- Gitblit v1.8.0