|
@@ -2426,7 +2426,7 @@ class AdminApplyCourseRequest extends TokenRequest{
|
|
|
List<String >? caseLabelCodes;
|
|
|
List<String >? courseLabelCodes;
|
|
|
List<String >? userGroupCodes;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
List<String >? courseVideoCodes;
|
|
|
List<CourseExaminationDTO >? bindExams;
|
|
|
bool isSmallClass;
|
|
@@ -2452,7 +2452,7 @@ class AdminApplyCourseRequest extends TokenRequest{
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
this.userGroupCodes,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.courseVideoCodes,
|
|
|
this.bindExams,
|
|
|
this.isSmallClass = false,
|
|
@@ -2483,7 +2483,7 @@ class AdminApplyCourseRequest 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'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
isSmallClass: map['IsSmallClass'],
|
|
@@ -2523,7 +2523,8 @@ class AdminApplyCourseRequest 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)
|
|
@@ -2660,7 +2661,7 @@ class AdminUpdateCourseRequest extends TokenRequest{
|
|
|
List<String >? caseLabelCodes;
|
|
|
List<String >? courseLabelCodes;
|
|
|
List<String >? userGroupCodes;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
List<String >? courseVideoCodes;
|
|
|
List<CourseExaminationDTO >? bindExams;
|
|
|
bool isSmallClass;
|
|
@@ -2687,7 +2688,7 @@ class AdminUpdateCourseRequest extends TokenRequest{
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
this.userGroupCodes,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.courseVideoCodes,
|
|
|
this.bindExams,
|
|
|
this.isSmallClass = false,
|
|
@@ -2719,7 +2720,7 @@ class AdminUpdateCourseRequest 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'] as List).map((e)=>CourseExaminationDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
isSmallClass: map['IsSmallClass'],
|
|
@@ -2761,7 +2762,8 @@ class AdminUpdateCourseRequest 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)
|
|
@@ -3177,7 +3179,7 @@ class CourseMigratoryInfo extends BaseDTO{
|
|
|
List<String >? caseLabelCodes;
|
|
|
List<String >? courseLabelCodes;
|
|
|
List<String >? userGroupCodes;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
List<String >? courseVideoCodes;
|
|
|
List<StudentInfoDTO >? assistants;
|
|
|
List<StudentInfoDTO >? experts;
|
|
@@ -3215,7 +3217,7 @@ class CourseMigratoryInfo extends BaseDTO{
|
|
|
this.caseLabelCodes,
|
|
|
this.courseLabelCodes,
|
|
|
this.userGroupCodes,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.courseVideoCodes,
|
|
|
this.assistants,
|
|
|
this.experts,
|
|
@@ -3260,7 +3262,7 @@ class CourseMigratoryInfo extends BaseDTO{
|
|
|
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,
|
|
|
assistants: map['Assistants'] != null ? (map['Assistants'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
experts: map['Experts'] != null ? (map['Experts'] as List).map((e)=>StudentInfoDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
@@ -3320,7 +3322,8 @@ class CourseMigratoryInfo extends BaseDTO{
|
|
|
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(assistants != null)
|
|
@@ -9548,7 +9551,7 @@ class FindCourseAlbumPageRequest extends PageRequest{
|
|
|
String? teacherCode;
|
|
|
String? teacherName;
|
|
|
CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
|
|
|
FindCourseAlbumPageRequest({
|
|
|
this.keyword,
|
|
@@ -9557,7 +9560,7 @@ class FindCourseAlbumPageRequest extends PageRequest{
|
|
|
this.teacherCode,
|
|
|
this.teacherName,
|
|
|
this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
int pageIndex = 0,
|
|
|
int pageSize = 0,
|
|
|
String? token,
|
|
@@ -9575,7 +9578,7 @@ class FindCourseAlbumPageRequest extends PageRequest{
|
|
|
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,
|
|
|
pageIndex: map['PageIndex'],
|
|
|
pageSize: map['PageSize'],
|
|
|
token: map['Token'],
|
|
@@ -9594,7 +9597,8 @@ class FindCourseAlbumPageRequest extends PageRequest{
|
|
|
if(teacherName != null)
|
|
|
map['TeacherName'] = teacherName;
|
|
|
map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -18304,7 +18308,7 @@ class CourseAlbumView extends BaseDTO{
|
|
|
String? introduction;
|
|
|
List<CourseLabelDTO >? courseLabels;
|
|
|
CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
List<StudentView >? students;
|
|
|
int sort;
|
|
|
bool isStick;
|
|
@@ -18319,7 +18323,7 @@ class CourseAlbumView extends BaseDTO{
|
|
|
this.introduction,
|
|
|
this.courseLabels,
|
|
|
this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.students,
|
|
|
this.sort = 0,
|
|
|
this.isStick = false,
|
|
@@ -18341,7 +18345,7 @@ class CourseAlbumView extends BaseDTO{
|
|
|
introduction: map['Introduction'],
|
|
|
courseLabels: map['CourseLabels'] != null ? (map['CourseLabels'] as List).map((e)=>CourseLabelDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
students: map['Students'] != null ? (map['Students'] as List).map((e)=>StudentView.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
sort: map['Sort'],
|
|
|
isStick: map['IsStick'],
|
|
@@ -18369,7 +18373,8 @@ class CourseAlbumView extends BaseDTO{
|
|
|
if(courseLabels != null)
|
|
|
map['CourseLabels'] = courseLabels;
|
|
|
map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
if(students != null)
|
|
|
map['Students'] = students;
|
|
|
map['Sort'] = sort;
|
|
@@ -19907,7 +19912,7 @@ class OnlineTrainingDTO extends BaseDTO{
|
|
|
int duration;
|
|
|
CourseStatusEnum status;
|
|
|
CourseViewRangeEnum viewRange;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
String? courseIntro;
|
|
|
CourseAudienceTypeEnum audienceType;
|
|
|
String? poster;
|
|
@@ -19956,7 +19961,7 @@ class OnlineTrainingDTO extends BaseDTO{
|
|
|
this.duration = 0,
|
|
|
this.status = CourseStatusEnum.Unknown,
|
|
|
this.viewRange = CourseViewRangeEnum.All,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.courseIntro,
|
|
|
this.audienceType = CourseAudienceTypeEnum.Unknown,
|
|
|
this.poster,
|
|
@@ -20012,7 +20017,7 @@ class OnlineTrainingDTO extends BaseDTO{
|
|
|
duration: map['Duration'],
|
|
|
status: CourseStatusEnum.values.firstWhere((e) => e.index == map['Status']),
|
|
|
viewRange: CourseViewRangeEnum.values.firstWhere((e) => e.index == map['ViewRange']),
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
courseIntro: map['CourseIntro'],
|
|
|
audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
|
|
|
poster: map['Poster'],
|
|
@@ -20068,7 +20073,8 @@ class OnlineTrainingDTO extends BaseDTO{
|
|
|
map['Duration'] = duration;
|
|
|
map['Status'] = status.index;
|
|
|
map['ViewRange'] = viewRange.index;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
if(courseIntro != null)
|
|
|
map['CourseIntro'] = courseIntro;
|
|
|
map['AudienceType'] = audienceType.index;
|
|
@@ -20886,7 +20892,7 @@ class CourseAlbumDetailDTO extends CourseAlbumDTO{
|
|
|
String? teacherCode,
|
|
|
String? teacherName,
|
|
|
CourseViewRangeEnum viewRange = CourseViewRangeEnum.All,
|
|
|
- double price = 0,
|
|
|
+ Decimal? price,
|
|
|
DateTime? createTime,
|
|
|
int sort = 0,
|
|
|
bool isStick = false,
|
|
@@ -20919,7 +20925,7 @@ class CourseAlbumDetailDTO extends CourseAlbumDTO{
|
|
|
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'],
|
|
@@ -20949,7 +20955,7 @@ class BaseCoursePageDTO {
|
|
|
CourseTypeEnum courseType;
|
|
|
CourseAudienceTypeEnum audienceType;
|
|
|
int duration;
|
|
|
- double price;
|
|
|
+ Decimal? price;
|
|
|
List<BaseUserGroupDTO >? userGroupList;
|
|
|
List<BaseCourseAlbumDTO >? courseAlbumList;
|
|
|
|
|
@@ -20965,7 +20971,7 @@ class BaseCoursePageDTO {
|
|
|
this.courseType = CourseTypeEnum.Unknown,
|
|
|
this.audienceType = CourseAudienceTypeEnum.Unknown,
|
|
|
this.duration = 0,
|
|
|
- this.price = 0,
|
|
|
+ this.price,
|
|
|
this.userGroupList,
|
|
|
this.courseAlbumList,
|
|
|
});
|
|
@@ -20983,7 +20989,7 @@ class BaseCoursePageDTO {
|
|
|
courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
|
|
|
duration: map['Duration'],
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
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,
|
|
|
);
|
|
@@ -21008,7 +21014,8 @@ class BaseCoursePageDTO {
|
|
|
map['CourseType'] = courseType.index;
|
|
|
map['AudienceType'] = audienceType.index;
|
|
|
map['Duration'] = duration;
|
|
|
- map['Price'] = price;
|
|
|
+ if(price != null)
|
|
|
+ map['Price'] = price;
|
|
|
if(userGroupList != null)
|
|
|
map['UserGroupList'] = userGroupList;
|
|
|
if(courseAlbumList != null)
|
|
@@ -21031,7 +21038,7 @@ class CoursePageDTO extends BaseCoursePageDTO{
|
|
|
CourseTypeEnum courseType = CourseTypeEnum.Unknown,
|
|
|
CourseAudienceTypeEnum audienceType = CourseAudienceTypeEnum.Unknown,
|
|
|
int duration = 0,
|
|
|
- double price = 0,
|
|
|
+ Decimal? price,
|
|
|
List<BaseUserGroupDTO >? userGroupList,
|
|
|
List<BaseCourseAlbumDTO >? courseAlbumList,
|
|
|
}) : super(
|
|
@@ -21064,7 +21071,7 @@ class CoursePageDTO extends BaseCoursePageDTO{
|
|
|
courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
|
|
|
duration: map['Duration'],
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
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,
|
|
|
);
|
|
@@ -21169,7 +21176,7 @@ class StudentInCoursePageDTO extends BaseCoursePageDTO{
|
|
|
CourseTypeEnum courseType = CourseTypeEnum.Unknown,
|
|
|
CourseAudienceTypeEnum audienceType = CourseAudienceTypeEnum.Unknown,
|
|
|
int duration = 0,
|
|
|
- double price = 0,
|
|
|
+ Decimal? price,
|
|
|
List<BaseUserGroupDTO >? userGroupList,
|
|
|
List<BaseCourseAlbumDTO >? courseAlbumList,
|
|
|
}) : super(
|
|
@@ -21204,7 +21211,7 @@ class StudentInCoursePageDTO extends BaseCoursePageDTO{
|
|
|
courseType: CourseTypeEnum.values.firstWhere((e) => e.index == map['CourseType']),
|
|
|
audienceType: CourseAudienceTypeEnum.values.firstWhere((e) => e.index == map['AudienceType']),
|
|
|
duration: map['Duration'],
|
|
|
- price: double.parse(map['Price'].toString()),
|
|
|
+ price: map['Price'] != null ? Decimal.fromJson(map['Price']) : null,
|
|
|
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,
|
|
|
);
|