|
@@ -279,14 +279,14 @@
|
|
|
/// @param success 成功
|
|
|
/// @param faliure 失败
|
|
|
+ (void)multiImageUpload:(NSString *)post imgDataArray:(NSArray *)pics success:(void (^)(NSArray * _Nonnull))success faliure:(void (^)(NSError * _Nonnull))faliure {
|
|
|
- NSString* url = [NSString stringWithFormat:@"%@%@",hostURL,@"/api-user/uploadFile"];
|
|
|
+ NSString* url = [NSString stringWithFormat:@"%@%@",hostURL,@"/api-student/uploadFile"];
|
|
|
NSString *type = [UIImage typeForImageData:[pics lastObject]];
|
|
|
[self uploadMultiFileWithFileArray:pics andWithUrl:url parameters:nil type:type name:@"file" mimeType:[NSString stringWithFormat:@"Image/%@",type] progress:nil success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
|
// 证件照上传
|
|
|
+ (void)cardImageUpload:(NSString *)post imgData:(NSData *)imageData success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
- NSString* url = [NSString stringWithFormat:@"%@%@",hostURL,@"/api-user/examRegistration/ocr"];
|
|
|
+ NSString* url = [NSString stringWithFormat:@"%@%@",hostURL,@"/api-student/examRegistration/ocr"];
|
|
|
NSString *type = [UIImage typeForImageData:imageData];
|
|
|
NSDictionary *parm = @{@"idCardSide" : @"front"};
|
|
|
[self uploadFileWithFileData:imageData andWithUrl:url parameters:parm type:type name:@"file" mimeType:[NSString stringWithFormat:@"Image/%@",type] progress:nil success:success faliure:faliure];
|
|
@@ -309,7 +309,7 @@
|
|
|
/// @param faliure 失败
|
|
|
+ (void)recordFileUpload:(NSString *)post fileData:(NSData *)fileData success:(void (^)(NSDictionary * _Nonnull))success faliure:(void (^)(NSError * _Nonnull))faliure {
|
|
|
|
|
|
- NSString* url = [NSString stringWithFormat:@"%@%@",hostURL,@"/api-user/uploadFile"];
|
|
|
+ NSString* url = [NSString stringWithFormat:@"%@%@",hostURL,@"/api-student/uploadFile"];
|
|
|
[self uploadFileWithFileData:fileData andWithUrl:url parameters:nil type:@".aac" name:@"file" mimeType:[NSString stringWithFormat:@"Image/.aac"] progress:nil success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
@@ -324,7 +324,7 @@
|
|
|
+ (void)videoFileUpload:(NSString *)post fileData:(NSData *)fileData progress:(void (^)(int64_t, int64_t))progress success:(void (^)(NSDictionary * _Nonnull))success faliure:(void (^)(NSError * _Nonnull))faliure {
|
|
|
|
|
|
[self configRequestMethodJSON];
|
|
|
- NSString* url = [NSString stringWithFormat:@"%@%@",hostURL,@"/api-user/uploadFile"];
|
|
|
+ NSString* url = [NSString stringWithFormat:@"%@%@",hostURL,@"/api-student/uploadFile"];
|
|
|
[self uploadFileWithFileData:fileData andWithUrl:url parameters:nil type:@".mp4" name:@"file" mimeType:[NSString stringWithFormat:@"Image/.mp4"] progress:progress success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
@@ -564,7 +564,7 @@
|
|
|
[self request:get url:url parm:nil success:success faliure:faliure];
|
|
|
}
|
|
|
#pragma mark --- 个人信息
|
|
|
-// /api-user/student/getStudent
|
|
|
+// /api-student/student/getStudent
|
|
|
/**
|
|
|
获取个人信息
|
|
|
|
|
@@ -574,11 +574,11 @@
|
|
|
*/
|
|
|
+ (void)queryUserInfo:(NSString *)get success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-user/student/getStudent"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-student/student/getStudent"];
|
|
|
[self request:get url:url parm:nil success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
|
-// /api-user/student/updateInfo
|
|
|
+// /api-student/student/updateInfo
|
|
|
|
|
|
/// 用户设置
|
|
|
/// @param post post
|
|
@@ -599,11 +599,11 @@
|
|
|
[parm setValue:birthdate forKey:@"birthdate"];
|
|
|
[parm setValue:nation forKey:@"nation"];
|
|
|
[parm setValue:avatar forKey:@"certificatePhoto"];
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-user/student/updateInfo"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-student/student/updateInfo"];
|
|
|
[self request:post url:url parm:parm success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
|
-// /api-user/suggestion/add
|
|
|
+// /api-student/suggestion/add
|
|
|
|
|
|
/**
|
|
|
新增建议
|
|
@@ -619,7 +619,7 @@
|
|
|
NSMutableDictionary *parm = [NSMutableDictionary dictionary];
|
|
|
[parm setValue:content forKey:@"content"];
|
|
|
[parm setValue:mobileNo forKey:@"mobileNo"];
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-user/suggestion/add"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-student/suggestion/add"];
|
|
|
[self request:post url:url parm:parm success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
@@ -673,7 +673,7 @@
|
|
|
}
|
|
|
|
|
|
#pragma mark ----- 准考证服务
|
|
|
-// /api-user/examCertification/queryCertificationPage
|
|
|
+// /api-student/examCertification/queryCertificationPage
|
|
|
|
|
|
/// 获取学员准考证列表
|
|
|
/// @param get get
|
|
@@ -682,13 +682,13 @@
|
|
|
/// @param faliure 失败
|
|
|
+ (void)queryCertificationPageRequest:(NSString *)get examRegistrationId:(NSString *)examRegistrationId success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-user/examCertification/queryCertificationPage"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-student/examCertification/queryCertificationPage"];
|
|
|
NSMutableDictionary *parm = [NSMutableDictionary dictionary];
|
|
|
[parm setValue:examRegistrationId forKey:@"examRegistrationId"];
|
|
|
[self request:get url:url parm:parm success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
|
-// /api-user/examCertification/needCheckingDetail
|
|
|
+// /api-student/examCertification/needCheckingDetail
|
|
|
|
|
|
/// 待考详情
|
|
|
/// @param get get
|
|
@@ -696,13 +696,13 @@
|
|
|
/// @param success 成功
|
|
|
/// @param faliure 失败
|
|
|
+ (void)needCheckingDetailRequest:(NSString *)get examRegistrationId:(NSString *)examRegistrationId success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-user/examCertification/needCheckingDetail"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-student/examCertification/needCheckingDetail"];
|
|
|
NSMutableDictionary *parm = [NSMutableDictionary dictionary];
|
|
|
[parm setValue:examRegistrationId forKey:@"examRegistrationId"];
|
|
|
[self request:get url:url parm:parm success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
|
-// /api-user/examRoomStudentRelation/signIn
|
|
|
+// /api-student/examRoomStudentRelation/signIn
|
|
|
|
|
|
/// 签到
|
|
|
/// @param post post
|
|
@@ -711,25 +711,25 @@
|
|
|
/// @param faliure 失败
|
|
|
+ (void)signInRequest:(NSString *)post examRegistrationId:(NSString *)examRegistrationId success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
[self configRequestMethodForm];
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-user/examRoomStudentRelation/signIn"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@",hostURL, @"/api-student/examRoomStudentRelation/signIn"];
|
|
|
NSMutableDictionary *parm = [NSMutableDictionary dictionary];
|
|
|
[parm setValue:examRegistrationId forKey:@"examRegistrationId"];
|
|
|
[self request:post url:url parm:parm success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
|
#pragma mark ---- 曲库
|
|
|
-// /api-user/examRegistration/studentBaseExams
|
|
|
+// /api-student/examRegistration/studentBaseExams
|
|
|
|
|
|
/// 获取考级项目
|
|
|
/// @param get get
|
|
|
/// @param success 成功
|
|
|
/// @param faliure 失败
|
|
|
+ (void)studentBaseExamsRequest:(NSString *)get success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-user/examRegistration/studentBaseExams"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-student/examRegistration/studentBaseExams"];
|
|
|
[self request:get url:url parm:nil success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
|
-// /api-user/subject/studentQueryPage
|
|
|
+// /api-student/subject/studentQueryPage
|
|
|
|
|
|
/// 获取学生曲库科目
|
|
|
/// @param get get
|
|
@@ -737,14 +737,14 @@
|
|
|
/// @param success 成功
|
|
|
/// @param faliure 失败
|
|
|
+ (void)musicLibraryPageRequest:(NSString *)get tenantId:(NSString *)tenantId success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-user/subject/studentQueryPage"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-student/subject/studentQueryPage"];
|
|
|
NSMutableDictionary *parm = [NSMutableDictionary dictionary];
|
|
|
// [parm setValue:@"0" forKey:@"parentId"];
|
|
|
[parm setValue:tenantId forKey:@"tenantId"];
|
|
|
[self request:get url:url parm:parm success:success faliure:faliure];
|
|
|
}
|
|
|
|
|
|
-// /api-user/examSong/queryPage
|
|
|
+// /api-student/examSong/queryPage
|
|
|
|
|
|
/// 分页查询曲目
|
|
|
/// @param get get
|
|
@@ -756,7 +756,7 @@
|
|
|
/// @param success 成功
|
|
|
/// @param faliure 失败
|
|
|
+ (void)musicSongListRequest:(NSString *)get tenantId:(NSString *)tenantId subjectList:(NSString *)subjectList level:(NSString *)level page:(NSString *)page rows:(NSString *)rows success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-user/examSong/queryPage"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-student/examSong/queryPage"];
|
|
|
NSMutableDictionary *parm = [NSMutableDictionary dictionary];
|
|
|
[parm setValue:tenantId forKey:@"tenantId"];
|
|
|
[parm setValue:subjectList forKey:@"subjectList"];
|
|
@@ -775,7 +775,7 @@
|
|
|
/// @param success 成功
|
|
|
/// @param faliure 失败
|
|
|
+ (void)stuRecordDetailRequest:(NSString *)get examRegistrationId:(NSString *)examRegistrationId success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-user/examRoomStudentRelation/stuRecordDetail"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-student/examRoomStudentRelation/stuRecordDetail"];
|
|
|
NSMutableDictionary *parm = [NSMutableDictionary dictionary];
|
|
|
[parm setValue:examRegistrationId forKey:@"examRegistrationId"];
|
|
|
[self request:get url:url parm:parm success:success faliure:faliure];
|
|
@@ -791,7 +791,7 @@
|
|
|
/// @param faliure 失败
|
|
|
+ (void)stuEndRecordFinishRequest:(NSString *)post examRegistrationId:(NSString *)examRegistrationId videoUrl:(NSString *)videoUrl success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
|
|
|
[self configRequestMethodForm];
|
|
|
- NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-user/examRoomStudentRelation/stuEndRecord"];
|
|
|
+ NSString *url = [NSString stringWithFormat:@"%@%@", hostURL, @"/api-student/examRoomStudentRelation/stuEndRecord"];
|
|
|
NSMutableDictionary *parm = [NSMutableDictionary dictionary];
|
|
|
[parm setValue:examRegistrationId forKey:@"examRegistrationId"];
|
|
|
[parm setValue:videoUrl forKey:@"videoUrl"];
|