| 123456789101112131415161718192021222324252627282930 |
- package com.njuzr.eaibackend.vo;
- import com.fasterxml.jackson.annotation.JsonIgnore;
- import com.njuzr.eaibackend.enums.ClassStudentState;
- import lombok.Data;
- @Data
- public class StudentInfoVO {
- private Long studentId;
- private String officialNumber;
- private String stuName;
- @JsonIgnore
- private ClassStudentState state;
- // 返回状态码
- public int getStateCode() {
- return state.getCode();
- }
- // 返回状态描述
- public String getStateDesc() {
- return state.getState();
- }
- public StudentInfoVO(Long studentId, String officialNumber, String stuName, ClassStudentState state) {
- this.studentId = studentId;
- this.officialNumber = officialNumber;
- this.stuName = stuName;
- this.state = state;
- }
- }
|