package com.wisewoods.base.bean;

import com.blankj.utilcode.util.GsonUtils;
import com.google.gson.reflect.TypeToken;

import java.util.ArrayList;
import java.util.List;

public class TeacherInfo extends Results<TeacherInfo.DataBean> {
    public static class CourseBean {
        public long courseId;
        public String courseName;
    }

    public static class RegionBean {
        public String name;
    }

    public static class DataBean {

        public String address;
        public int auditStatus;
        public String bankDeposit;
        public String cardNumber;
        public String certificate;
        public List<String> certificateList;
        public String course;
        public List<CourseBean> courseList;
        public String createBy;
        public String createTime;
        public String duty;
        public List dutyList;
        public String honoraryTitle;
        public long id;
        public String idCard;
        public String idCardFront;
        public String idCardSide;
        public String bankCardSide;
        public String bankCardFront;
        public String idCardFrontBase64;
        public String idCardSideBase64;
        public String bankCardFrontBase64;
        public String bankCardSideBase64;

        public String joinDate;
        public String nation;
        public Object params;
        public String photoUrl;

        public int ranks;
        public String region;
        public List<String> regionList;
        public List<RegionBean> regionName;
        public String researchFields;
        public List<String> researchFieldsList;

        public String sex;
        public int teacherCategory;
        public String teacherName;
        public String teacherProfile;
        public String teacherUuid;
        public String telephone;
        public String unit;
        public String updateTime;
        public long userId;

        public String getBaseRegion() {
            StringBuffer sb = new StringBuffer();
            for (String id : regionList) {
                sb.append(id+',');
            }
            return sb.length() > 0 ? sb.substring(0, sb.length() - 1) : "";
        }


    }
}
