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.ClassesUser;
|
|
import java.util.Date;
|
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;
|
|
/**
|
* 班级与用户关联表展示
|
*
|
* @author xp
|
* @since 2024-06-04
|
*/
|
@Data
|
public class ClassesUserVO extends AbsVo {
|
|
/**
|
* 班级ID
|
*/
|
private Integer classesId;
|
|
/**
|
* 用户ID
|
*/
|
private Integer userId;
|
|
/**
|
* 真实姓名
|
*/
|
private String realName;
|
|
/**
|
* 年龄
|
*/
|
private Integer sex;
|
|
/**
|
* 电话
|
*/
|
private String phone;
|
|
/**
|
* 加入时间
|
*/
|
private Date createTime;
|
/**
|
* 电话
|
*/
|
private String userName;
|
/**
|
* 电话
|
*/
|
private String age;
|
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
private Date birthDay;
|
private Integer status;
|
|
public static ClassesUserVO getVoByEntity(@NonNull ClassesUser entity, ClassesUserVO vo) {
|
if (vo == null) {
|
vo = new ClassesUserVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|