package com.yonge.cooleshow.api.feign.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 学生封装类
 * Created by Eric.Shang on 2023/1/6.
 */
public class StudentWrapper {

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class UnionStudent implements Serializable {

        private Long unionId;

        private String token;

        private String mobile;

        private String subjectName;

        private String username;

        private Integer gender;

        private Boolean tokenCheck;


        private Integer lockFlag;
    }

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class UnionStudentResp implements Serializable {

        private Long unionId;

        private String mobile;

        private Long userId;

        private String username;

        private Boolean updateFlag;

        private Object sysUser;
        public UnionStudentResp userId(Long userId) {
            this.userId = userId;
            return this;
        }

        public UnionStudentResp username(String username) {
            this.username = username;
            return this;
        }
    }
}
