package com.ycl.jxkg.domain.vo;
|
|
import com.ycl.jxkg.domain.base.AbsVo;
|
import com.ycl.jxkg.domain.entity.ClassesNotify;
|
import java.util.List;
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import java.util.Date;
|
|
/**
|
* 班级通知展示
|
*
|
* @author xp
|
* @since 2024-06-05
|
*/
|
@Data
|
public class ClassesNotifyVO extends AbsVo {
|
|
/** 班级 */
|
private Integer classesId;
|
|
/** 发出通知者 */
|
private Integer teacherId;
|
|
/** 通知内容 */
|
private String notifyContent;
|
|
/** */
|
private Date createTime;
|
|
public static ClassesNotifyVO getVoByEntity(@NonNull ClassesNotify entity, ClassesNotifyVO vo) {
|
if(vo == null) {
|
vo = new ClassesNotifyVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|