|
@@ -78,8 +78,8 @@ class CourseLabelDTO extends BaseLabelInfoDTO{
|
|
|
LabelTypeEnum type;
|
|
|
OrganizationPatientTypeEnum useObjectType;
|
|
|
bool isLastLevel;
|
|
|
- List<CourseLabelDTO>? childLabels;
|
|
|
- List<LabelLanguageConfigDTO>? labelLanguageConfigs;
|
|
|
+ List<CourseLabelDTO >? childLabels;
|
|
|
+ List<LabelLanguageConfigDTO >? labelLanguageConfigs;
|
|
|
|
|
|
CourseLabelDTO({
|
|
|
this.languageCode,
|
|
@@ -183,6 +183,38 @@ enum CourseAudienceTypeEnum {
|
|
|
PrivateClass,
|
|
|
}
|
|
|
|
|
|
+class ValueType {
|
|
|
+
|
|
|
+ ValueType();
|
|
|
+
|
|
|
+ factory ValueType.fromJson(Map<String, dynamic> map) {
|
|
|
+ return ValueType(
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+class Decimal extends ValueType{
|
|
|
+
|
|
|
+ Decimal(
|
|
|
+ ) : super(
|
|
|
+ );
|
|
|
+
|
|
|
+ factory Decimal.fromJson(Map<String, dynamic> map) {
|
|
|
+ return Decimal(
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = super.toJson();
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
enum CourseAppearTypeEnum {
|
|
|
Unknown,
|
|
|
Independent,
|
|
@@ -199,18 +231,18 @@ class ApplyCourseRequest extends TokenRequest{
|
|
|
CourseTypeEnum courseType;
|
|
|
CourseAudienceTypeEnum audienceType;
|
|
|
String? coursewareToken;
|
|
|
- List<String>? caseLabelCodes;
|
|
|
- List<String>? courseLabelCodes;
|
|
|
- List<String>? userGroupCodes;
|
|
|
- double price;
|
|
|
- List<String>? courseVideoCodes;
|
|
|
- List<String>? courseMaterialCodes;
|
|
|
- List<String>? bindExams;
|
|
|
+ List<String >? caseLabelCodes;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
+ List<String >? userGroupCodes;
|
|
|
+ Decimal? price;
|
|
|
+ List<String >? courseVideoCodes;
|
|
|
+ List<String >? courseMaterialCodes;
|
|
|
+ List<String >? bindExams;
|
|
|
bool isSmallClass;
|
|
|
- List<String>? assistants;
|
|
|
- List<String>? experts;
|
|
|
+ List<String >? assistants;
|
|
|
+ List<String >? experts;
|
|
|
bool isAgentCourse;
|
|
|
- List<String>? courseAlbumCodes;
|
|
|
+ List<String >? courseAlbumCodes;
|
|
|
CourseAppearTypeEnum courseAppearType;
|
|
|
|
|
|
ApplyCourseRequest({
|
|
@@ -226,7 +258,7 @@ class ApplyCourseRequest extends TokenRequest{
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
this.userGroupCodes,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.courseVideoCodes,
|
|
|
this.courseMaterialCodes,
|
|
|
this.bindExams,
|
|
@@ -255,7 +287,7 @@ class ApplyCourseRequest extends TokenRequest{
|
|
|
caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
|
|
|
courseMaterialCodes: map['CourseMaterialCodes'] != null ? map['CourseMaterialCodes'].cast<String>().toList() : null,
|
|
|
bindExams: map['BindExams'] != null ? map['BindExams'].cast<String>().toList() : null,
|
|
@@ -292,7 +324,8 @@ class ApplyCourseRequest extends TokenRequest{
|
|
|
map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
if(userGroupCodes != null)
|
|
|
map['UserGroupCodes'] = userGroupCodes;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
if(courseVideoCodes != null)
|
|
|
map['CourseVideoCodes'] = courseVideoCodes;
|
|
|
if(courseMaterialCodes != null)
|
|
@@ -457,8 +490,8 @@ class CourseExaminationQuestionDTO {
|
|
|
String? code;
|
|
|
String? stem;
|
|
|
QuestionTypeEnum questionType;
|
|
|
- List<QuestionOptionDTO>? questionOptionList;
|
|
|
- List<QuestionFileDTO>? fileList;
|
|
|
+ List<QuestionOptionDTO >? questionOptionList;
|
|
|
+ List<QuestionFileDTO >? fileList;
|
|
|
bool trueOrFalse;
|
|
|
double score;
|
|
|
|
|
@@ -502,7 +535,7 @@ class CourseExaminationQuestionDTO {
|
|
|
}
|
|
|
|
|
|
class CourseExaminationDTO extends BaseCourseExaminationDTO{
|
|
|
- List<CourseExaminationQuestionDTO>? questionList;
|
|
|
+ List<CourseExaminationQuestionDTO >? questionList;
|
|
|
int submitLimitCount;
|
|
|
int passingScore;
|
|
|
|
|
@@ -669,18 +702,18 @@ class BaseCourseInfoDTO {
|
|
|
String? creatorCode;
|
|
|
String? organizationCode;
|
|
|
DateTime? createTime;
|
|
|
- double price;
|
|
|
- List<String>? courseLabelCodes;
|
|
|
- List<String>? caseLabelCodes;
|
|
|
- List<String>? userGroupCodes;
|
|
|
- List<String>? courseVideoCodes;
|
|
|
- List<String>? courseMaterialCodes;
|
|
|
- List<CourseExaminationDTO>? bindExams;
|
|
|
+ Decimal? price;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
+ List<String >? caseLabelCodes;
|
|
|
+ List<String >? userGroupCodes;
|
|
|
+ List<String >? courseVideoCodes;
|
|
|
+ List<String >? courseMaterialCodes;
|
|
|
+ List<CourseExaminationDTO >? bindExams;
|
|
|
bool isSmallClass;
|
|
|
- List<StudentInfoDTO>? assistants;
|
|
|
- List<StudentInfoDTO>? experts;
|
|
|
+ List<StudentInfoDTO >? assistants;
|
|
|
+ List<StudentInfoDTO >? experts;
|
|
|
bool isAgentCourse;
|
|
|
- List<String>? courseAlbumCodes;
|
|
|
+ List<String >? courseAlbumCodes;
|
|
|
CourseAppearTypeEnum courseAppearType;
|
|
|
bool isStick;
|
|
|
int sort;
|
|
@@ -710,7 +743,7 @@ class BaseCourseInfoDTO {
|
|
|
this.creatorCode,
|
|
|
this.organizationCode,
|
|
|
this.createTime,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.courseLabelCodes,
|
|
|
this.caseLabelCodes,
|
|
|
this.userGroupCodes,
|
|
@@ -753,7 +786,7 @@ class BaseCourseInfoDTO {
|
|
|
creatorCode: map['CreatorCode'],
|
|
|
organizationCode: map['OrganizationCode'],
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
|
|
@@ -810,7 +843,8 @@ class BaseCourseInfoDTO {
|
|
|
map['OrganizationCode'] = organizationCode;
|
|
|
if(createTime != null)
|
|
|
map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
if(courseLabelCodes != null)
|
|
|
map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
if(caseLabelCodes != null)
|
|
@@ -1030,12 +1064,12 @@ class BaseCourseAlbumDTO {
|
|
|
}
|
|
|
|
|
|
class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
- List<BaseLabelInfoDTO>? caseLabels;
|
|
|
- List<BaseLabelInfoDTO>? courseLabels;
|
|
|
- List<BaseUserGroupDTO>? userGroups;
|
|
|
- List<VideoInfoDTO>? courseVideos;
|
|
|
- List<VideoInfoDTO>? courseMaterials;
|
|
|
- List<BaseCourseAlbumDTO>? courseAlbums;
|
|
|
+ List<BaseLabelInfoDTO >? caseLabels;
|
|
|
+ List<BaseLabelInfoDTO >? courseLabels;
|
|
|
+ List<BaseUserGroupDTO >? userGroups;
|
|
|
+ List<VideoInfoDTO >? courseVideos;
|
|
|
+ List<VideoInfoDTO >? courseMaterials;
|
|
|
+ List<BaseCourseAlbumDTO >? courseAlbums;
|
|
|
bool needPay;
|
|
|
StudentCourseStatusEnum signCourseStatus;
|
|
|
bool isPay;
|
|
@@ -1076,18 +1110,18 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
String? creatorCode,
|
|
|
String? organizationCode,
|
|
|
DateTime? createTime,
|
|
|
- double price = 0,
|
|
|
- List<String>? courseLabelCodes,
|
|
|
- List<String>? caseLabelCodes,
|
|
|
- List<String>? userGroupCodes,
|
|
|
- List<String>? courseVideoCodes,
|
|
|
- List<String>? courseMaterialCodes,
|
|
|
- List<CourseExaminationDTO>? bindExams,
|
|
|
+ Decimal? price,
|
|
|
+ List<String >? courseLabelCodes,
|
|
|
+ List<String >? caseLabelCodes,
|
|
|
+ List<String >? userGroupCodes,
|
|
|
+ List<String >? courseVideoCodes,
|
|
|
+ List<String >? courseMaterialCodes,
|
|
|
+ List<CourseExaminationDTO >? bindExams,
|
|
|
bool isSmallClass = false,
|
|
|
- List<StudentInfoDTO>? assistants,
|
|
|
- List<StudentInfoDTO>? experts,
|
|
|
+ List<StudentInfoDTO >? assistants,
|
|
|
+ List<StudentInfoDTO >? experts,
|
|
|
bool isAgentCourse = false,
|
|
|
- List<String>? courseAlbumCodes,
|
|
|
+ List<String >? courseAlbumCodes,
|
|
|
CourseAppearTypeEnum courseAppearType = CourseAppearTypeEnum.Unknown,
|
|
|
bool isStick = false,
|
|
|
int sort = 0,
|
|
@@ -1172,7 +1206,7 @@ class CourseInfoDetailDTO extends BaseCourseInfoDTO{
|
|
|
creatorCode: map['CreatorCode'],
|
|
|
organizationCode: map['OrganizationCode'],
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
|
|
@@ -1231,7 +1265,7 @@ enum QueryCourseApprovalStatusEnum {
|
|
|
|
|
|
class FindCoursePagesRequest extends PageRequest{
|
|
|
String? keyword;
|
|
|
- List<String>? courseLabels;
|
|
|
+ List<String >? courseLabels;
|
|
|
DateTime? startTime;
|
|
|
DateTime? endTime;
|
|
|
String? teacherCode;
|
|
@@ -1330,19 +1364,19 @@ class UpdateCourseRequest extends TokenRequest{
|
|
|
CourseTypeEnum courseType;
|
|
|
CourseAudienceTypeEnum audienceType;
|
|
|
String? coursewareToken;
|
|
|
- List<String>? caseLabelCodes;
|
|
|
- List<String>? courseLabelCodes;
|
|
|
- List<String>? userGroupCodes;
|
|
|
- double price;
|
|
|
- List<String>? courseVideoCodes;
|
|
|
- List<String>? bindExams;
|
|
|
+ List<String >? caseLabelCodes;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
+ List<String >? userGroupCodes;
|
|
|
+ Decimal? price;
|
|
|
+ List<String >? courseVideoCodes;
|
|
|
+ List<String >? bindExams;
|
|
|
bool isSmallClass;
|
|
|
- List<String>? assistants;
|
|
|
- List<String>? experts;
|
|
|
+ List<String >? assistants;
|
|
|
+ List<String >? experts;
|
|
|
bool isAgentCourse;
|
|
|
- List<String>? courseAlbumCodes;
|
|
|
+ List<String >? courseAlbumCodes;
|
|
|
CourseAppearTypeEnum courseAppearType;
|
|
|
- List<String>? courseMaterialCodes;
|
|
|
+ List<String >? courseMaterialCodes;
|
|
|
|
|
|
UpdateCourseRequest({
|
|
|
this.code,
|
|
@@ -1358,7 +1392,7 @@ class UpdateCourseRequest extends TokenRequest{
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
this.userGroupCodes,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.courseVideoCodes,
|
|
|
this.bindExams,
|
|
|
this.isSmallClass = false,
|
|
@@ -1388,7 +1422,7 @@ class UpdateCourseRequest extends TokenRequest{
|
|
|
caseLabelCodes: map['CaseLabelCodes'] != null ? map['CaseLabelCodes'].cast<String>().toList() : null,
|
|
|
courseLabelCodes: map['CourseLabelCodes'] != null ? map['CourseLabelCodes'].cast<String>().toList() : null,
|
|
|
userGroupCodes: map['UserGroupCodes'] != null ? map['UserGroupCodes'].cast<String>().toList() : null,
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
courseVideoCodes: map['CourseVideoCodes'] != null ? map['CourseVideoCodes'].cast<String>().toList() : null,
|
|
|
bindExams: map['BindExams'] != null ? map['BindExams'].cast<String>().toList() : null,
|
|
|
isSmallClass: map['IsSmallClass'],
|
|
@@ -1427,7 +1461,8 @@ class UpdateCourseRequest extends TokenRequest{
|
|
|
map['CourseLabelCodes'] = courseLabelCodes;
|
|
|
if(userGroupCodes != null)
|
|
|
map['UserGroupCodes'] = userGroupCodes;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
if(courseVideoCodes != null)
|
|
|
map['CourseVideoCodes'] = courseVideoCodes;
|
|
|
if(bindExams != null)
|
|
@@ -1514,13 +1549,13 @@ class FindMyCoursePagesRequest extends PageRequest{
|
|
|
|
|
|
class CourseAlbumDTO extends BaseCourseAlbumDTO{
|
|
|
String? cover;
|
|
|
- List<String>? courseCodes;
|
|
|
+ List<String >? courseCodes;
|
|
|
String? introduction;
|
|
|
- List<String>? courseLabelCodes;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
String? teacherCode;
|
|
|
String? teacherName;
|
|
|
CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
DateTime? createTime;
|
|
|
int sort;
|
|
|
bool isStick;
|
|
@@ -1533,7 +1568,7 @@ class CourseAlbumDTO extends BaseCourseAlbumDTO{
|
|
|
this.teacherCode,
|
|
|
this.teacherName,
|
|
|
this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.createTime,
|
|
|
this.sort = 0,
|
|
|
this.isStick = false,
|
|
@@ -1553,7 +1588,7 @@ class CourseAlbumDTO extends BaseCourseAlbumDTO{
|
|
|
teacherCode: map['TeacherCode'],
|
|
|
teacherName: map['TeacherName'],
|
|
|
viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
sort: map['Sort'],
|
|
|
isStick: map['IsStick'],
|
|
@@ -1577,7 +1612,8 @@ class CourseAlbumDTO extends BaseCourseAlbumDTO{
|
|
|
if(teacherName != null)
|
|
|
map['TeacherName'] = teacherName;
|
|
|
map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
if(createTime != null)
|
|
|
map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
map['Sort'] = sort;
|
|
@@ -1590,7 +1626,7 @@ class UserGroupDTO extends BaseUserGroupDTO{
|
|
|
int maxPeople;
|
|
|
String? creatorCode;
|
|
|
String? creatorName;
|
|
|
- List<StudentInfoDTO>? students;
|
|
|
+ List<StudentInfoDTO >? students;
|
|
|
int courseCount;
|
|
|
int practiceCount;
|
|
|
int examCount;
|
|
@@ -1698,8 +1734,8 @@ class UserGroupRequest extends TokenRequest{
|
|
|
String? name;
|
|
|
int maxPeople;
|
|
|
String? creatorCode;
|
|
|
- List<StudentInfoDTO>? students;
|
|
|
- List<String>? removeStudentCodes;
|
|
|
+ List<StudentInfoDTO >? students;
|
|
|
+ List<String >? removeStudentCodes;
|
|
|
bool isAgent;
|
|
|
bool notValidateRepeat;
|
|
|
|
|
@@ -1754,7 +1790,7 @@ class UserGroupFilterRequest extends TokenRequest{
|
|
|
String? userGroupCode;
|
|
|
String? creatorCode;
|
|
|
String? keyword;
|
|
|
- List<String>? studentCodes;
|
|
|
+ List<String >? studentCodes;
|
|
|
|
|
|
UserGroupFilterRequest({
|
|
|
this.userGroupCode,
|
|
@@ -2264,8 +2300,8 @@ class FindCourseExaminationPaperByCodeRequest extends TokenRequest{
|
|
|
class StudentSetExaminationAnswerDTO {
|
|
|
String? questionCode;
|
|
|
String? answer;
|
|
|
- List<String>? files;
|
|
|
- List<String>? optionCodeList;
|
|
|
+ List<String >? files;
|
|
|
+ List<String >? optionCodeList;
|
|
|
|
|
|
StudentSetExaminationAnswerDTO({
|
|
|
this.questionCode,
|
|
@@ -2300,7 +2336,7 @@ class StudentSetExaminationAnswerDTO {
|
|
|
class SubmitCourseExaminationPaperRequest extends TokenRequest{
|
|
|
String? courseCode;
|
|
|
String? code;
|
|
|
- List<StudentSetExaminationAnswerDTO>? answers;
|
|
|
+ List<StudentSetExaminationAnswerDTO >? answers;
|
|
|
|
|
|
SubmitCourseExaminationPaperRequest({
|
|
|
this.courseCode,
|
|
@@ -2412,8 +2448,8 @@ class ExaminationAnswerDTO {
|
|
|
String? questionCode;
|
|
|
QuestionTypeEnum questionType;
|
|
|
String? answer;
|
|
|
- List<String>? files;
|
|
|
- List<String>? optionCodeList;
|
|
|
+ List<String >? files;
|
|
|
+ List<String >? optionCodeList;
|
|
|
bool isCorrect;
|
|
|
double score;
|
|
|
|
|
@@ -2458,7 +2494,7 @@ class ExaminationAnswerDTO {
|
|
|
|
|
|
class StudentExaminationDetailDTO extends BaseStudentExaminationDTO{
|
|
|
CourseExaminationDTO? examination;
|
|
|
- List<ExaminationAnswerDTO>? studentAnswers;
|
|
|
+ List<ExaminationAnswerDTO >? studentAnswers;
|
|
|
|
|
|
StudentExaminationDetailDTO({
|
|
|
this.examination,
|
|
@@ -2554,7 +2590,7 @@ class TeacherSetExaminationAnswerDTO {
|
|
|
|
|
|
class SubmitReviewStudentExaminationRequest extends TokenRequest{
|
|
|
String? code;
|
|
|
- List<TeacherSetExaminationAnswerDTO>? answers;
|
|
|
+ List<TeacherSetExaminationAnswerDTO >? answers;
|
|
|
|
|
|
SubmitReviewStudentExaminationRequest({
|
|
|
this.code,
|
|
@@ -2671,7 +2707,7 @@ class InitiateLiveCourseResult extends LiveCourseBaseResult{
|
|
|
int appId;
|
|
|
String? userSign;
|
|
|
int heartRateInterval;
|
|
|
- List<LiveCourseMember>? memberLiveDatas;
|
|
|
+ List<LiveCourseMember >? memberLiveDatas;
|
|
|
LiveDataDTO? courseChannel;
|
|
|
LiveDataDTO? othersScreenSharingChannel;
|
|
|
ScreenSharingChannelDTO? rtcScreenSharingChannel;
|
|
@@ -2761,8 +2797,8 @@ class JoinLiveCourseResult extends LiveCourseBaseResult{
|
|
|
TransactionStatusEnum liveProtocol;
|
|
|
int appId;
|
|
|
String? userSign;
|
|
|
- List<LiveCourseMember>? memberLiveDatas;
|
|
|
- List<LiveCourseMember>? deviceLiveDatas;
|
|
|
+ List<LiveCourseMember >? memberLiveDatas;
|
|
|
+ List<LiveCourseMember >? deviceLiveDatas;
|
|
|
int heartRateInterval;
|
|
|
LiveDataDTO? courseChannel;
|
|
|
ShareInfoDTO? shareInfo;
|
|
@@ -3014,7 +3050,7 @@ class SetVideoLiveCourseRequest extends InitiateLiveCourseRequest{
|
|
|
}
|
|
|
|
|
|
class ControlParameterInCourseRequest extends InitiateLiveCourseRequest{
|
|
|
- List<AdditionParameterDTO>? parameters;
|
|
|
+ List<AdditionParameterDTO >? parameters;
|
|
|
ControlDeviceParameterEnum controlType;
|
|
|
|
|
|
ControlParameterInCourseRequest({
|
|
@@ -3348,16 +3384,16 @@ class StudyCompletedRequest {
|
|
|
|
|
|
class AddCourseAlbumRequest extends TokenRequest{
|
|
|
String? name;
|
|
|
- List<String>? courseCodes;
|
|
|
+ List<String >? courseCodes;
|
|
|
String? cover;
|
|
|
String? introduction;
|
|
|
- List<String>? courseLabelCodes;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
int sort;
|
|
|
bool isStick;
|
|
|
String? teacherCode;
|
|
|
String? teacherName;
|
|
|
CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
|
|
|
AddCourseAlbumRequest({
|
|
|
this.name,
|
|
@@ -3370,7 +3406,7 @@ class AddCourseAlbumRequest extends TokenRequest{
|
|
|
this.teacherCode,
|
|
|
this.teacherName,
|
|
|
this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -3388,7 +3424,7 @@ class AddCourseAlbumRequest extends TokenRequest{
|
|
|
teacherCode: map['TeacherCode'],
|
|
|
teacherName: map['TeacherName'],
|
|
|
viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
@@ -3412,7 +3448,8 @@ class AddCourseAlbumRequest extends TokenRequest{
|
|
|
if(teacherName != null)
|
|
|
map['TeacherName'] = teacherName;
|
|
|
map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -3441,14 +3478,14 @@ class DeleteCourseAlbumRequest {
|
|
|
class CourseCommonInfoDTO extends BaseCourseAlbumDTO{
|
|
|
String? cover;
|
|
|
String? introduction;
|
|
|
- List<String>? courseLabels;
|
|
|
+ List<String >? courseLabels;
|
|
|
String? teacherCode;
|
|
|
String? teacherName;
|
|
|
CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
CourseTypeEnum courseType;
|
|
|
- List<BaseUserGroupDTO>? userGroupList;
|
|
|
- List<BaseCourseAlbumDTO>? courseAlbumList;
|
|
|
+ List<BaseUserGroupDTO >? userGroupList;
|
|
|
+ List<BaseCourseAlbumDTO >? courseAlbumList;
|
|
|
StudentCourseStatusEnum signCourseStatus;
|
|
|
bool isPay;
|
|
|
DateTime? createTime;
|
|
@@ -3460,7 +3497,7 @@ class CourseCommonInfoDTO extends BaseCourseAlbumDTO{
|
|
|
this.teacherCode,
|
|
|
this.teacherName,
|
|
|
this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.courseType = CourseTypeEnum.Unknown,
|
|
|
this.userGroupList,
|
|
|
this.courseAlbumList,
|
|
@@ -3482,7 +3519,7 @@ class CourseCommonInfoDTO extends BaseCourseAlbumDTO{
|
|
|
teacherCode: map['TeacherCode'],
|
|
|
teacherName: map['TeacherName'],
|
|
|
viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
userGroupList: map['UserGroupList'] != null ? (map['UserGroupList'] as List).map((e)=>BaseUserGroupDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
courseAlbumList: map['CourseAlbumList'] != null ? (map['CourseAlbumList'] as List).map((e)=>BaseCourseAlbumDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
@@ -3507,7 +3544,8 @@ class CourseCommonInfoDTO extends BaseCourseAlbumDTO{
|
|
|
if(teacherName != null)
|
|
|
map['TeacherName'] = teacherName;
|
|
|
map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
map['CourseType'] = courseType.index;
|
|
|
if(userGroupList != null)
|
|
|
map['UserGroupList'] = userGroupList;
|
|
@@ -3522,17 +3560,17 @@ class CourseCommonInfoDTO extends BaseCourseAlbumDTO{
|
|
|
}
|
|
|
|
|
|
class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
- List<CourseInfoDetailDTO>? courseInfos;
|
|
|
+ List<CourseInfoDetailDTO >? courseInfos;
|
|
|
int signInCount;
|
|
|
String? cover;
|
|
|
- List<String>? courseCodes;
|
|
|
+ List<String >? courseCodes;
|
|
|
String? introduction;
|
|
|
- List<String>? courseLabelCodes;
|
|
|
- List<String>? courseLabelNames;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
+ List<String >? courseLabelNames;
|
|
|
String? teacherCode;
|
|
|
String? teacherName;
|
|
|
CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
DateTime? createTime;
|
|
|
int sort;
|
|
|
bool isStick;
|
|
@@ -3550,7 +3588,7 @@ class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
this.teacherCode,
|
|
|
this.teacherName,
|
|
|
this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.createTime,
|
|
|
this.sort = 0,
|
|
|
this.isStick = false,
|
|
@@ -3575,7 +3613,7 @@ class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
teacherCode: map['TeacherCode'],
|
|
|
teacherName: map['TeacherName'],
|
|
|
viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
createTime: map['CreateTime'] != null ? DateTime.parse(map['CreateTime']) : null,
|
|
|
sort: map['Sort'],
|
|
|
isStick: map['IsStick'],
|
|
@@ -3606,7 +3644,8 @@ class CourseAlbumExtendDTO extends BaseCourseAlbumDTO{
|
|
|
if(teacherName != null)
|
|
|
map['TeacherName'] = teacherName;
|
|
|
map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
if(createTime != null)
|
|
|
map['CreateTime'] = JsonRpcUtils.dateFormat(createTime!);
|
|
|
map['Sort'] = sort;
|
|
@@ -3649,7 +3688,7 @@ class FindCourseAlbumByCodeRequest extends TokenRequest{
|
|
|
|
|
|
class TeacherAddStudentsInUserGroupsRequest extends TokenRequest{
|
|
|
String? userGroupCode;
|
|
|
- List<String>? studentCodes;
|
|
|
+ List<String >? studentCodes;
|
|
|
|
|
|
TeacherAddStudentsInUserGroupsRequest({
|
|
|
this.userGroupCode,
|
|
@@ -3679,7 +3718,7 @@ class TeacherAddStudentsInUserGroupsRequest extends TokenRequest{
|
|
|
|
|
|
class JoinClassApprovedRequest extends TokenRequest{
|
|
|
String? userGroupCode;
|
|
|
- List<String>? students;
|
|
|
+ List<String >? students;
|
|
|
|
|
|
JoinClassApprovedRequest({
|
|
|
this.userGroupCode,
|
|
@@ -3709,7 +3748,7 @@ class JoinClassApprovedRequest extends TokenRequest{
|
|
|
|
|
|
class JoinClassRejectedRequest extends TokenRequest{
|
|
|
String? userGroupCode;
|
|
|
- List<String>? students;
|
|
|
+ List<String >? students;
|
|
|
|
|
|
JoinClassRejectedRequest({
|
|
|
this.userGroupCode,
|
|
@@ -3816,7 +3855,7 @@ class FindStudentListRequest extends TokenRequest{
|
|
|
}
|
|
|
|
|
|
class CreateVideosRequest extends TokenRequest{
|
|
|
- List<SaveVideoRequest>? videoList;
|
|
|
+ List<SaveVideoRequest >? videoList;
|
|
|
|
|
|
CreateVideosRequest({
|
|
|
this.videoList,
|
|
@@ -3844,7 +3883,7 @@ class GetUserPagesRequest extends PageRequest{
|
|
|
String? queryType;
|
|
|
String? keyword;
|
|
|
String? queryState;
|
|
|
- List<String>? excludeUserCodes;
|
|
|
+ List<String >? excludeUserCodes;
|
|
|
String? languageCode;
|
|
|
|
|
|
GetUserPagesRequest({
|
|
@@ -4045,16 +4084,16 @@ class DeviceLeaveLiveCourseRequest extends JoinLiveCourseRequest{
|
|
|
class UpdateCourseAlbumRequest extends TokenRequest{
|
|
|
String? name;
|
|
|
String? courseAlbumCode;
|
|
|
- List<String>? courseCodes;
|
|
|
+ List<String >? courseCodes;
|
|
|
String? cover;
|
|
|
String? introduction;
|
|
|
- List<String>? courseLabelCodes;
|
|
|
+ List<String >? courseLabelCodes;
|
|
|
int sort;
|
|
|
bool isStick;
|
|
|
String? teacherCode;
|
|
|
String? teacherName;
|
|
|
CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
|
|
|
UpdateCourseAlbumRequest({
|
|
|
this.name,
|
|
@@ -4068,7 +4107,7 @@ class UpdateCourseAlbumRequest extends TokenRequest{
|
|
|
this.teacherCode,
|
|
|
this.teacherName,
|
|
|
this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
String? token,
|
|
|
}) : super(
|
|
|
token: token,
|
|
@@ -4087,7 +4126,7 @@ class UpdateCourseAlbumRequest extends TokenRequest{
|
|
|
teacherCode: map['TeacherCode'],
|
|
|
teacherName: map['TeacherName'],
|
|
|
viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
token: map['Token'],
|
|
|
);
|
|
|
}
|
|
@@ -4113,7 +4152,8 @@ class UpdateCourseAlbumRequest extends TokenRequest{
|
|
|
if(teacherName != null)
|
|
|
map['TeacherName'] = teacherName;
|
|
|
map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
return map;
|
|
|
}
|
|
|
}
|