|
|
package com.br_technology.securitytrain_master.ui.bean
|
|
|
|
|
|
/**
|
|
|
* Author by YSir
|
|
|
* Date on 2022/1/8.
|
|
|
* description
|
|
|
* PS: Not easy to write code, please indicate.
|
|
|
*/
|
|
|
/**
|
|
|
* 我的任务(课程)
|
|
|
*/
|
|
|
open class LessonList(
|
|
|
var lesson_class_user: Int, // 已学课时
|
|
|
var lesson_class_count: Int, // 总课时
|
|
|
var list: List<LessonBean>
|
|
|
)
|
|
|
|
|
|
open class LessonBean(
|
|
|
var id: Int, // 课程id
|
|
|
var class_id: Int, // 视频/班级课程id,对应课程进度的class_id
|
|
|
var class_name: String, // 班级名称
|
|
|
var train_class_id: Int, // 班级课程id
|
|
|
var train_id: Int, // 培训计划id
|
|
|
var sort_id: String, // 课程分类:1=视频课,2=直播课,3=线下培训,4=文本课
|
|
|
var name: String, // 课程名称
|
|
|
var des: String, // 描述
|
|
|
var image: String, // 图片
|
|
|
var status: String, // 状态0=未完成1=已完成
|
|
|
var class_hours: Int, // 课时
|
|
|
var user_hours: Int, // 已学习课时
|
|
|
var user_status: Int, // 是否进行过学习0=否1=是
|
|
|
var create_time_text: String // 时间
|
|
|
)
|
|
|
|
|
|
/**
|
|
|
* 我的任务(练习)
|
|
|
*/
|
|
|
open class PractiseBean(
|
|
|
var id: Int,
|
|
|
var name: String, // 练习名称
|
|
|
var is_complete: String, // 答题状态0=未完成1=已完成
|
|
|
var count: Int, // 题目数量
|
|
|
var correct_count: Int, // 答对题目数量
|
|
|
var create_time: String, // 创建时间
|
|
|
var sub_time: String, // 考试时间,需要is_complete为1
|
|
|
var exam_score: String, // 分数,需要is_complete为1
|
|
|
var is_pass: String // 是否通过,需要is_complete为1
|
|
|
)
|
|
|
|
|
|
/**
|
|
|
* 我的任务(考试)
|
|
|
*/
|
|
|
open class ExamBean(
|
|
|
var id: Int,
|
|
|
var name: String, // 考试名称
|
|
|
var pos_name: String, // 工种
|
|
|
var answer_count: Int, // 做过的人数
|
|
|
var is_complete: String, // 答题状态0=未完成1=已完成
|
|
|
var count: Int, // 题目数量
|
|
|
var correct_count: Int, // 答对题目数量
|
|
|
var create_time: String,// 创建时间
|
|
|
var sub_time: String, // 考试时间,需要is_complete为1 废弃
|
|
|
var exam_end_time: String, // 2021-12-09 13:45:00" //培训考试开始时间
|
|
|
var exam_score: Int, //分数
|
|
|
var exam_start_time: String, //2021-12-08 15:45:00"
|
|
|
var is_pass: String, // 是否通过,需要is_complete为1
|
|
|
var content: String //考试规则内容" // 考试规则
|
|
|
)
|
|
|
|
|
|
/**
|
|
|
* 考试详情
|
|
|
*/
|
|
|
open class ExamDetail(
|
|
|
var id: Int,
|
|
|
var name: String, //测试", // 考试名称
|
|
|
var times: String, // 考试时间(分钟)
|
|
|
var count: Int, // 考试题数
|
|
|
var pass: Int, // 合格标准分数
|
|
|
var content: String//2021-10-10" // 考试规则
|
|
|
)
|
|
|
|
|
|
/**
|
|
|
* 学情反馈item
|
|
|
*/
|
|
|
open class TrainChatItem(
|
|
|
var id: Int, // 班级id
|
|
|
var name: Int, // 班级名称
|
|
|
var image: String, //http://security.cn/assets/img/avatar.png", // 图片
|
|
|
var class_hours: Int, // 已学课时
|
|
|
var content: String, // 评析内容
|
|
|
var is_read: Int // 阅读状态0=未读1=已读
|
|
|
)
|
|
|
|
|
|
/**
|
|
|
* 学情反馈详情
|
|
|
*/
|
|
|
open class TrainDetail(
|
|
|
var id: Int, // 班级id
|
|
|
var name: Int, // 班级名称
|
|
|
var image: String, //http://security.cn/assets/img/avatar.png", // 图片
|
|
|
var class_hours: Int, // 已学课时
|
|
|
var content: String, // 评析内容
|
|
|
var is_read: Int // 阅读状态0=未读1=已读
|
|
|
)
|
|
|
|
|
|
/**
|
|
|
* 成长报告
|
|
|
*/
|
|
|
open class TrainReport(
|
|
|
var user: TrainReportUser,//上报人信息
|
|
|
var create_time_text: String,//var 2021-10-30 09:35", // 答题开始时间
|
|
|
var update_time_text: String,//var 2021-10-30 09:35" // 答题结束时间
|
|
|
var study_list: List<TrainReportStudy>,
|
|
|
var trainclass: TrainReportClass,
|
|
|
var exam_list: List<TrainReportExam>
|
|
|
)
|
|
|
|
|
|
open class TrainReportUser(
|
|
|
var id: Int,
|
|
|
var nickname: String, // 姓名
|
|
|
var mobile: String,//手机号", // 手机号
|
|
|
var gender: Int, // 性别1=男2=女
|
|
|
var avatar: String,//"https://security.brofirst.cn/uploads/20211030/e777a39142bf8ab8dd3e02b6eb9f9d9f.jpg", // 头像
|
|
|
var score: Int, // 积分
|
|
|
var identity: String, // 身份证号
|
|
|
var user_id: Int,
|
|
|
var createtime: Long, // 建档日期
|
|
|
var class_hours_count: Int, // 培训总学时
|
|
|
var item_count: Int, // 练习题量
|
|
|
var lessons: String, // 结业课程
|
|
|
var is_end: Int, // 是否结业0=否1=是
|
|
|
var class_name: String, // 班级名称
|
|
|
var train_sort_name: String, // 培训类型
|
|
|
var time: String, // 时间
|
|
|
var train_name: String, // 培训单位
|
|
|
var class_hours: Int, // 培训学时
|
|
|
)
|
|
|
|
|
|
open class TrainStudyTrain(
|
|
|
var id: Int,
|
|
|
var company_id: Int,
|
|
|
var pid: Int,
|
|
|
var train_sort_id: Int,
|
|
|
var name: String, // 培训名称
|
|
|
var depart_ids: String,
|
|
|
var pos_ids: String,
|
|
|
var plan_num: Int,
|
|
|
var plan_num_complete: Int,
|
|
|
var start_time: Long,
|
|
|
var end_time: Long,
|
|
|
var status: String
|
|
|
)
|
|
|
|
|
|
open class TrainStudySort(
|
|
|
var id: Int,
|
|
|
var company_id: Int,
|
|
|
var name: String, // 培训类型
|
|
|
var weigh: Int
|
|
|
)
|
|
|
|
|
|
open class TrainReportStudy(
|
|
|
var id: Int,
|
|
|
var distance: String,
|
|
|
var status: String, // 结业状态0=未结业1=已结业
|
|
|
var view_len: Int,
|
|
|
var class_name: String, // 课程名称
|
|
|
var update_time: String, // 时间
|
|
|
var class_hours: Int, // 学时
|
|
|
var train: TrainStudyTrain,
|
|
|
var trainsort: TrainStudySort
|
|
|
)
|
|
|
|
|
|
open class TrainReportClass(
|
|
|
var id: Int,
|
|
|
var name: String, // 培训班级名称
|
|
|
var sort_id: String,
|
|
|
var students: Int,
|
|
|
var lesson_ids: String,
|
|
|
var lessons: Int,
|
|
|
var des: String,
|
|
|
var status: String,
|
|
|
var lesson_times: Int,
|
|
|
)
|
|
|
|
|
|
open class TrainReportExam(
|
|
|
var id: Int,
|
|
|
var title: String,
|
|
|
var count: Int,
|
|
|
var correct: Int,
|
|
|
var is_complete: String, // 是否完成0=否1=是
|
|
|
var date: String,
|
|
|
var score: Int, // 积分
|
|
|
var is_pass: String, //是否通过0=否1=是
|
|
|
var trainexam: TrainReportExamMsg
|
|
|
)
|
|
|
|
|
|
open class TrainReportExamMsg(
|
|
|
var id: Int,
|
|
|
var name: String, // 考试名称
|
|
|
var times: Int,
|
|
|
var start_time: Int,
|
|
|
var end_time: Int,
|
|
|
var score: Int, // 总分
|
|
|
var pass: Int, // 通过分数
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
...
|
...
|
|