// // PBNetworkTools.h // IphoneBIMe // // Created by zjf on 2018/7/13. // Copyright © 2018年 ProBIM. All rights reserved. // #import typedef enum : NSUInteger { GET, POST } RequestType; @interface PBNetworkTools : AFHTTPSessionManager + (instancetype)sharedTools; #pragma mark =================================新接口======================================= // 登录 - (void)loginWithUserName:(NSString *)userName andPassword:(NSString *)password andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; //账号注销 - (void)RemoveTokenAndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取某人指定项目的权限数据 - (void)GetUserOrgFuncAuthWithOrganizeID:(NSString *)organizeId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 测试token验证 - (void)getOnlyTestTokenAndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 通过项目ID获取机构ID - (void)getProjectParentIDWithProjectID:(NSString *)projectId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取此项目下问题追踪的状态 - (void)getIssueStatusWithCompanyId:(NSString *)companyId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取此项目下问题追踪的类型 - (void)getIssueTypesWithCompanyId:(NSString *)companyId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack ; // 获取问题列表 - (void)getIssueListWithOrganizeId:(NSString *)organizeId andIssueStatusId:(NSString *)statuId andIssueTypeId:(NSString *)typeId andArchiveId:(NSString *)archiveId andKeyword:(NSString *)keyword andUserType:(NSString *)userType andPageIndex:(NSInteger)pageIndex andPageSize:(NSInteger)pageSize andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 文档文件夹一级目录 - (void)GetDocRolesAuthByNameWithOrgID:(NSString *)orgId andBIMComposerID:(NSString *)bimcomposerId andFolderID:(NSString *)folderId andAuthName:(NSString *)authName andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 问题归档 - (void)SetIssueDeleteMarkWithIssueID:(NSString *)issueId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 根据企业编码获取服务地址 - (void)RequestGetUrlsByCodeWithCode:(NSString *)code andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 登录 - (void)RequestLoginWithUserName:(NSString *)userName andPassword:(NSString *)password andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 修改密码 - (void)RequestSubmitResetPasswordWithOldPassword:(NSString *)oldPassword NewPassword:(NSString *)newPassword andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; #pragma makr - 项目 模型 相关接口 // 获取项目列表 - (void)getProjectListWithKeyword:(NSString *)keyword andIsPublic:(NSString *)isPublic andSort:(NSString *)sort andSkip:(NSString *)skip andtake:(NSString *)take andOnlyFavorite:(NSString *)onlyFavorite andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 设置添加或移除项目收藏 - (void)editFavoriteWithOrganizeId:(NSString *)organizeId andAddOrRm:(NSString *)addOrRm andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取登陆人在此项目下权限信息(Access) - (void)RequestGetAccessWithOrganizeId:(NSString *)organizeId andisPublic:(BOOL)isPublic andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取项目的项目阶段 - (void)RequestGetProjectConfigWithProjectID:(NSString *)projectID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取项目所有模型 - (void)RequestGetProjectAllModelsWithProjectID:(NSString *)projectID andKeyword:(NSString *)keyword andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取指定阶段所有模型 - (void)RequestGetProjectStageAllModelsWithProjectID:(NSString *)projectID andPhase:(NSString *)Phase andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取模型的所有视图 - (void)RequestGetAllViewsWithProjectID:(NSString *)projectID andModelID:(NSString *)modelID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取模型文件 - 二维图纸 - (void)RequestGetFIleWithProjectID:(NSString *)projectID andModelID:(NSString *)modelID andVersionNO:(NSString *)versionNO andFileType:(NSString *)fileType andFileName:(NSString *)fileName andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取模型下所有视点 - (void)RequestGetAllViewpointWithProjectId:(NSString *)ProjectId andModelId:(NSString *)modelId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取视点信息(大图) - (void)RequestGetFullViewpointWithProjectID:(NSString *)projectID andViewpointID:(NSString *)viewpointID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 设置模型默认视点 - (void)RequestSetDefaultViewpointWithProjectID:(NSString *)projectID andModelId:(NSString *)modelId andViewpointID:(NSString *)viewpointID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 设置模型默认视图 - (void)RequestSetDefaultViewsWithProjectID:(NSString *)projectID andModelId:(NSString *)modelId andViewID:(NSString *)ViewID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 删除视点 - (void)RequestDeleteViewpointWithProjectID:(NSString *)projectID andViewpointID:(NSString *)viewpointID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 加载模型获取session //- (void)RequestGetSessionIDWithProjectID:(NSString *)projectID andBIM365ProjectID:(NSString *)BIM365ProjectID andProjectType:(NSString *)projectType andModelID:(NSString *)modelID andProjectName:(NSString *)projectName andVersionNO:(NSString *)versionNO andViewpointID:(NSString *)viewpointID andSnapshot:(NSString *)snapshot andTexture:(NSString *)texture andUserName:(NSString *)userName andUserNameCN:(NSString *)userNameCN andViewID:(NSString *)viewID andAccess:(NSString *)access andWorkflow:(NSString *)workflow andMarkupCategory:(NSString *)markupCategory andViewpointCategory:(NSString *)viewpointCategory andCategory:(NSString *)category andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; //根据modelID获取模型信息 - (void)RequestGetModelWithProjectID:(NSString *)projectID andModelID:(NSString *)modelID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; #pragma mark- 文档相关接口 // 获取项目角色 - (void)RequestGetserProjectRoleWithOrganizeId:(NSString *)organizeId andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 获取指定项目的所有一级子项 - (void)RequestGetAllFolderAndFileByProjectIDWithProjectID:(NSString *)projectID andLikeName:(NSString *)likeName andNormalOrDrawings:(NSString *)normalOrDrawings andRoleId:(NSString *)roleId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取指定文件夹的所有一级子项 - (void)RequestGetAllFolderAndFileByFolderIDWithProjectID:(NSString *)projectID andFolderID:(NSString *)folderID andLikeName:(NSString *)likeName andNormalOrDrawings:(NSString *)normalOrDrawings andRoleId:(NSString *)roleId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取 文件/ 文件夹 权限 - (void)RequestGetprivilegeListWithProjectID:(NSString *)projectID andFileID:(NSString *)fileId andRoleId:(NSString *)roleId andCategory:(NSString *)category andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 删除文件或文件夹 - (void)RequestDeleteFileOrFolderWithIsFolder:(BOOL)isFolder andProjectID:(NSString *)project andFileID:(NSString *)fileId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 文件搜索 - (void)RequestDocSearchWithProjectID:(NSString *)projectID andLikeName:(NSString *)likeName andNormalOrDrawings:(NSString *)normalOrDrawings andRoleId:(NSString *)roleId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // dwg文件下载 - (void)RequestDownLoadDwgFileWithProjectID:(NSString *)projectID andFileID:(NSString *)fileID andExtension:(NSString *)extension andCallBack:(void (^) (NSURLResponse *response, NSURL *filePath, NSError *error))callBack; // 文件查看请求信息 //- (void)RequestGetDocumentVersionWithProjectID:(NSString *)projectID andFileID:(NSString *)fileId andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; - (void)RequestGetDocumentVersionWithProjectID:(NSString *)projectID andFileID:(NSString *)fileId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 文件下载(问题追踪附件dwg) - (void)RequestDownLoadIssueDwgFileWithProjectID:(NSString *)projectID andFileID:(NSString *)fileID andExtension:(NSString *)extension andCallBack:(void (^) (NSURLResponse *response, NSURL *filePath, NSError *error))callBack; #pragma mark - 问题追踪相关接口 // 获取 状态、类型 相关数据 - (void)RequestGetIssueConditionItemsWithProjectID:(NSString *)projectID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取问题追踪列表 - (void)RequestGetIssueListWithProjectID:(NSString *)projectID andIssueTypeId:(NSString *)issueTypeId andIssueStatusId:(NSString *)issueStatusId andKeyword:(NSString *)keyword andUserType:(NSString *)userType andPageIndex:(NSInteger)pageIndex andPageSize:(NSInteger)pageSize andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 删除问题追踪 - (void)RequestDeleteIssueWithIssueID:(NSString *)issueId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取项目内所有人员 - (void)RequestGetToAddIssueJoinersWithProjectID:(NSString *)projectID andEncodedKeyWord:(NSString *)encodedKeyWord andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; - (void)RequestGetToAddIssueJoiners_WithOperatorWithProjectID:(NSString *)projectID andEncodedKeyWord:(NSString *)encodedKeyWord andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 上传文档到隐藏文档库 //- (void)UploadFileToHideFolderWithProjectID:(NSString *)projectID andFileType:(NSString*)fileType andFiles:(NSArray *)files andAudioFileName:(NSString *)audioFileName andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; //// 上传文档到隐藏文档库(质检安检上传) //- (void)Upload1FileToHideFolderWithProjectID:(NSString *)projectID andFileType:(NSString*)fileType andFiles:(NSArray *)files andAudioFileName:(NSString *)audioFileName andExamineID:(NSString *)examineID andCallBack:(void (^) (NSURLSessionDataTask *task,id response,NSMutableArray *fileInfoArr,NSError *error))callBack; // 新增问题追踪 - (void)RequestSaveIssueWithData:(NSMutableDictionary *)dataM andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 新建问题需将图片上传 - (void)UploadImagesWithFiles:(NSArray *)files andIssueID:(NSString *)issueId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 删除关联图片 - (void)RemoveIssueDocRelWithIssueID:(NSString *)issueId andFileId:(NSString *)FileId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取问题详情 - (void)RequestGetIssueDetailByIdWithIssueID:(NSString *)issueId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取问题标签数据 - (void)RequestGetIssueOrganizeTags:(NSString *)organizeId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 修改问题分类 - (void)ModifyIssueTypeWithIssueID:(NSString *)IssueId andID:(NSString *)typeID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 修改问题状态 - (void)ModifyIssueStatusWithIssueID:(NSString *)IssueId andID:(NSString *)statuID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 添加参与人 - (void)AddIssueJoinerWithIssueID:(NSString *)IssueId andID:(NSString *)JoinerID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 移除参与人 - (void)RemoveIssueJoinerWithIssueID:(NSString *)IssueId andID:(NSString *)JoinerID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 修改问题截止日期 - (void)ModifyIssueEndDateWithIssueID:(NSString *)IssueId andEndData:(NSString *)endData andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 设置问题的标签 - (void)OverrideIssueTagWithIssueID:(NSString *)IssueId andRit_tagIds:(NSString *)rit_tagIds andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 根据文档关联ID获取文档详情 - (void)RequestGetAllDocInfoByIDsByRelationIDsWithProjectID:(NSString *)projectId andFileIDs:(NSString *)fileIDs andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 批量新增关联 - (void)RequestSaveRelationMultWithArr:(NSArray *)arr andIssueID:(NSString *)issueId andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 删除关联 - (void)RequestDeleteRelationWithRelationID:(NSString *)relationID andIssueID:(NSString *)issueId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 修改问题文本数据 - (void)RequestUpdateIssueWithIssueID:(NSString *)issueId andIssueStatusID:(NSString *)IssueStatusID andIssueTypeID:(NSString *)IssueTypeID andRUserIDStr:(NSString *)RUserIDStr andLUserIDStr:(NSString *)LUserIDStr andEndDate:(NSString *)EndDate andViewPoint:(NSDictionary *)viewPointDic andDraw:(NSDictionary *)drawDic andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack ; // 获取评论列表 - (void)RequestGetIssueCommentsByIdWithIssueId:(NSString *)issueId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // issue删除评论 - (void)RequestDeleteMessageWithMessageID:(NSString *)messageID andIssueID:(NSString *)issueId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 新增文字评论 - (void)AddCommentWithIssueId:(NSString *)issueId andOrganizeId:(NSString *)organizeId andText:(NSString *)text andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 新增图片评论 - (void)AddImageCommentWithIssueId:(NSString *)issueId andFileID:(NSString *)fileId andFielName:(NSString *)name andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 评论图片上传 - (void)UploadFileToHideFolder_MulPropWithImage:(UIImage *)image andProjectID:(NSString *)ProjectID andFileType:(NSString *)type andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取通知列表 - (void)RequestGetNotReadMsgWithPageIndex:(NSInteger)pageIndex andPageSize:(NSInteger)pageSize andIsRead:(NSString *)isRead andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 将消息设为已读 - (void)RequestSetReadWithMu_guid:(NSString *)guid andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; //未读消息列表全部标为已读 - (void)RequestSetMsgTypeReadWithMsgType:(NSString *)mesType andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; //删除单条消息 - (void)RequestComm_DeleteWithmuguid:(NSString *)muguid andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 模型分享时获取URL - (void)RequestShareUrlWithProjectId:(NSString *)ProjectId andModelId:(NSString *)modelId andViewID:(NSString *)viewID andViewpointID:(NSString *)ViewpointID andHasRandomPwd:(NSString *)hasRandomPwd andDaycount:(NSString *)daycount andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 文档分享时获取URL - (void)RequestShareUrlWithBIMComposerID:(NSString *)BIMComposerID andPrivilegeStr:(NSString *)privilegeStr andDocIds:(NSString *)DocIds andHasRandomPwd:(NSString *)hasRandomPwd andDaycount:(NSString *)daycount andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 分享文档时DWG Url - (void)RequestIDocViewWithProjectID:(NSString *)ProjectId andFileID:(NSString *)fileId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 文档分享时获取文档分享信息 - (void)GetDocumentVersionWithProjectID:(NSString *)projectID andFileID:(NSString *)fileID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; #pragma mark - 现场数据接口 //现场数据列表 - (void)RequestExamineListWithBIMComposerId:(NSString *)bimComposerId andSearchValue:(NSString *)searchValue andStateType:(NSString *)stateType andAuthorType:(NSString *)authorType andSeveritylevel:(NSString *)severitylevel andTypes:(NSString *)types andSortField:(NSString *)sortField andSortIsAsc:(NSString *)sortIsAsc andPageIndex:(NSInteger)pageIndex andPageSize:(NSInteger)pageSise andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 移除现场数据 - (void)RequestRemoveItemsWithId:(NSString *)examineId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 关闭现场数据 - (void)RequestCloseItemsWithId:(NSString *)examineId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取某项目的现场分类数据 - (void)RequestExam_GetExamTypesWithOrganizeId:(NSString *)organizeId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 现场数据详情 - (void)RequestGetItemWithExamineID:(NSString *)examineID andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 检查人修改整改的信息 - (void)modifyMissionMemberWithExamineID:(NSString *)examineID andOrganizeId:(NSString *)organizeId andData:(NSMutableDictionary *)dictM andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 检查人修改严重等级信息 - (void)ModifySeveritylevelWithExamineID:(NSString *)examineID andOrganizeId:(NSString *)organizeId andSeveritylevel:(NSString *)severitylevel andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 检查人提交接口 - (void)checkMissionWithExamineID:(NSString *)examineID andOrganizeId:(NSString *)organizeId andData:(NSMutableDictionary *)dictM andImageArr:(NSArray *)imageArr andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 申请验收 - (void)ApplyToAcceptanceWithExamineID:(NSString *)examineID andOrganizeId:(NSString *)organizeId andRectificationRemark:(NSString *)rectificationRemark andImageArr:(NSArray *)imageArr andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 验收情况 - (void)tryToAcceptanceWithExamineID:(NSString *)examineID andOrganizeId:(NSString *)organizeId andRectificationRemark:(NSString *)rectificationRemark andIsPassed:(NSString *)isPassed andImageArr:(NSArray *)imageArr andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取项目人员数据(分组) - (void)GetProjectUserSortByLetterRoleId:(NSString *)roleId andOrganizeID:(NSString *)organizeId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取指定项目的所有有效角色及相关人员 - (void)GetProjectRolesAndUsersOrganizeID:(NSString *)organizeId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取根基任务 - (void)GetCheckTaskWithOrganizeId:(NSString *)organizeId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取任务内部数据 - (void)GetTaskItemDataWithPlanId:(NSString *)planId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取根基构件 - (void)GetCategoriesWithOrganizeId:(NSString *)organizeId andBaseCode:(NSString *)baseCode andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 构件内数据 - (void)GetMaterialListWithOrganizeId:(NSString *)organizeId andBc_guid:(NSString *)guid andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; //发起检查任务 - (void)AddMissionWithDictM:(NSMutableDictionary *)dictM andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 修改检查任务 - (void)ModifyMissionInfoWithDictM:(NSMutableDictionary *)dictM andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 修改检查人 - (void)ModifyMissionCheckerWithExamineID:(NSString *)examineId andOrganizeId:(NSString *)organizeId andCheckerUserId:(NSString *)checkerUserId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 根据构件ID获取所有上层分类(按编码排序) - (void)GetCategoryArrayByBmGuidWithGuid:(NSString *)guid andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 现场数据添加验收记录或整改记录 - (void)RequestExam_AddRecordWithExamineID:(NSString *)examineID andResult:(NSString *)result andRemark:(NSString *)remark andFlag:(NSString *)flag andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 加载某项目下现场数据结构的第一级 - (void)RequestGetQualitySafeCategoriesWithOrganizeId:(NSString *)organizeId andType:(NSString *)type andLikepara:(NSString *)likepara andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 新增现场数据 - (void)RequestAddItemsWithData:(NSMutableDictionary *)dictM andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 修改现场数据 - (void)RequestModifyItemWithData:(NSMutableDictionary *)dictM andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 现场数据详情图片删除 - (void)RequestExam_RmAttachmentsWithAttachmentIDs:(NSString *)attachmentIds andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 现场数据详情图片添加 - (void)RequestExam_AddAttachmentsWithData:(NSMutableDictionary *)dictM andIamges:(NSArray *)imageArr andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取质量检查列表 - (void)RequestExamineListWithProjectId:(NSString *)ProjectId andLinkType:(NSString *)linkType TypeValue:(NSString *)typeValue andSearchValue:(NSString *)searchValue andExamineResult:(NSString *)examineResult andPageIndex:(NSInteger)pageIndex andPageSize:(NSInteger)pageSise andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 保存质量检查接口 - (void)Greate_2ExamineWithData:(NSDictionary *)data andDrawPosData:(NSArray *)drawPosData andExamineAttachment:(NSArray *)attachment andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 删除某条质检信息 - (void)RequestDeleteExamineWithExamineID:(NSString *)examineID andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 获取检查图纸定位信息 - (void)RequestGetdrawposWithExamineID:(NSString *)examineID andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 删除某条检查图纸信息 - (void)RequestDeleteDrawposWithExamineID:(NSString *)examineID andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 新增某条检查的图纸信息 - (void)RequestCreateDrawposWithDrawposData:(NSDictionary *)drawposData andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 根据ExamineID获取详情 - (void)RequestGetExamineDetailWithExamineID:(NSString *)examineID andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 获取检查附件信息 - (void)RequestGetexamineattachWithExamineID:(NSString *)examineID andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 删除检查附件 - (void)RequestDeleteExamineattachWithExamineID:(NSString *)examineID andExamineAttachmentID:(NSString *)examineAttachmentID andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 新增检查附件(需先上传到文件库 在关联) - (void)RequestExamineattachCreate_2WithAttachArr:(NSArray *)attachArr andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 修改检查文本数据 - (void)RequestModifyExamineWithExamineModifyData:(NSDictionary *)modifydata andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取整改记录 - (void)RequestGetExaminerectificationListWithExamineID:(NSString *)examineID andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 提交申请/复检整改信息接口 - (void)RequestExaminerectificationCreateWithFlag:(NSString *)flag andExamineID:(NSString *)ExamineID andRectificationID:(NSString *)rectificationID andRectificationCheckDate:(NSString *)RectificationCheckDate andRectificationCheckResult:(NSString *)RectificationCheckResult andRectificationRemark:(NSString *)RectificationRemark andCreateDate:(NSString *)createDate andAttachment:(NSArray *)attachment andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; #pragma mark ======================流程 相关接口======================== - (void)GetFlowInstances_CondWithOrganizeId:(NSString *)organizeId andAuthorType:(NSString *)authorType andKeyword:(NSString *)keyword andStartTime:(NSString *)startTime andEndTime:(NSString *)endTime andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 进度计划列表 - (void)GetSchedualTreeWithOrganizeId:(NSString *)organizeId andUid:(NSString *)uid andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取任务计划累计 - (void)GetMobileAddWithTreeID:(NSString *)treeId andPlanId:(NSString *)planId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 任务计划保存 - (void)AddMobileJSONWithOrganizeId:(NSString *)organizeId andMobile:(NSDictionary *)mobile andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取任务计划信息 - (void)GetMobileJSONWithUnittime:(NSString *)unittime andCreateuserId:(NSString *)createuserId andPlanID:(NSString *)planId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 任务进度计划图片上传 - (void)scheduleUploadImagesWithFiles:(NSArray *)files andNames:(NSArray *)names andPlanID:(NSString *)planId andUnittime:(NSString *)unittime andorganizeId:(NSString *)organizeId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBackk; // 任务删除图片 - (void)DelteImageWithGuid:(NSString *)guid andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 督导会保存 - (void)AddMobileSuperviseJSONWithOrganizeId:(NSString *)organizeId andMobile:(NSArray *)mobile andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取督导会信息 - (void)GetMobileSuperviseJSONWithUnittime:(NSString *)unittime andCreateuserId:(NSString *)createuserId andPlanID:(NSString *)planId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 质量安全保存 - (void)AddMobileSafeJSONWithOrganizeId:(NSString *)organizeId andMobile:(NSArray *)mobile andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取质量安全信息 - (void)GetMobileSafeJSONWithUnittime:(NSString *)unittime andCreateuserId:(NSString *)createuserId andPlanID:(NSString *)planId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取人员清单 - (void)GetMobileUserWithOrganizeId:(NSString *)organizeId andMobileUserDetial_ProjectID:(NSString *)planID andMobile_UserType:(NSString *)usertype andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 现场人员保存 - (void)AddMobileUserJSONWithOrganizeId:(NSString *)organizeId andMobile:(NSArray *)mobile andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取现场人员信息 - (void)GetMobileUserJSONWithUnittime:(NSString *)unittime andCreateuserId:(NSString *)createuserId andPlanID:(NSString *)planId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取现场人员扫描信息 - (void)GetFillUserInfoWithID:(NSString *)guid andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 现场人员填报 - (void)aEntryOrExitWithOrganizeId:(NSString *)organizeId andFillingUserId:(NSString *)fillingUserId andProgressParentId:(NSString *)progressParentId andProgressTreeId:(NSString *)progressTreeId andProgressProjectId:(NSString *)progressProjectId andAddress:(NSString *)address andType:(NSInteger)type andCallBack:(void (^) (NSURLResponse *response, id responseObject, NSError *error))callBack; // 获取现场人员列表 - (void)GetFillingUserLogPagedWithPageIndex:(NSString *)pageIndex andPageSize:(NSString *)pageSize andOrganizeId:(NSString *)organizeId andProgressProjectId:(NSString *)progressProjectId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取视频列表 - (void)GetVideoWithOrganizeId:(NSString *)organizeId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取机械清单(organizeId有值为机械列表 其它值不传 则没有累计数据) - (void)GetMaterialsWithOrganizeId:(NSString *)organizeId andMobileUserDetial_ProjectID:(NSString *)planID andMobile_UserType:(NSString *)usertype andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 现场机械保存 - (void)AddMaterialsJSONWithOrganizeId:(NSString *)organizeId andMobile:(NSArray *)mobile andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取现场机械信息 - (void)GetMaterialsJSONWithUnittime:(NSString *)unittime andCreateuserId:(NSString *)createuserId andPlanID:(NSString *)planId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取材料清单(organizeId有值为机械列表 其它值不传 则没有累计数据) - (void)GetMachineWithOrganizeId:(NSString *)organizeId andMobileUserDetial_ProjectID:(NSString *)planID andMobile_UserType:(NSString *)usertype andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 现场材料保存 - (void)AddMachineJSONWithOrganizeId:(NSString *)organizeId andMobile:(NSArray *)mobile andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取现场机械信息 - (void)GetMachineJSONWithUnittime:(NSString *)unittime andCreateuserId:(NSString *)createuserId andPlanID:(NSString *)planId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取总列表 - (void)GetMobilePASONWithOrganizeId:(NSString *)organizeId andMobilePA_ProjectID:(NSString *)planId andMobilePA_state:(NSString *)state AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 列表数据删除 - (void)DelMobilePAWithPlanId:(NSString *)planId andCreateuserId:(NSString *)CreateuserId andUnittime:(NSString *)Unittime andOrganizeId:(NSString *)organizeId AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取列表 填写状态 - (void)GetSearchstateWithPlanId:(NSString *)planid andUnittime:(NSString *)Unittime andCreateuserid:(NSString *)Createuserid AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 预览发布 - (void)UpdateStatesWithPlanId:(NSString *)planid andUnittime:(NSString *)Unittime andCreateUserId:(NSString *)createUserId andStatus:(NSString *)status andOrganizeId:(NSString *)organizeId AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; #pragma mark ======================全景图 相关接口======================== // 获取全景图集 - (void)GetListByLabelGroupWithOrganizeId:(NSString *)organizeId andLabelId:(NSString *)labelId andPbName:(NSString *)pbName AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取全景图label - (void)GetLabelListWithOrganizeId:(NSString *)organizeId AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取制定全景图集下所有图 - (void)GetScenesByPbGuidWithPb_guid:(NSString *)pb_guid AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; - (void)GetPanoramaSceneListWithPb_guid:(NSString *)pb_guid AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 删除指定全景图集 - (void)RemoveItemWithPbGuid:(NSString *)PbGuid andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 删除指定全景图item - (void)RemoveSceneWithPbGuid:(NSString *)PbGuid andSceneName:(NSString *)scenename andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 获取标签绑定图片列表 - (void)GetLabelFileWithOrganizeId:(NSString *)organizeId andLabelId:(NSString *)labelId AndCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; // 上传全景图 - (void)UploadPanoramaImagesWithFile:(NSData *)file andfileName:(NSString *)fileName andTargetPatchGuid:(NSString *)targetPatchGuid andOrganizeId:(NSString *)organizeId andPbname:(NSString *)Pbname andLabelId:(NSString *)labelId andModelId:(NSString *)modelId andViewId:(NSString *)viewId andCallBack:(void (^) (NSURLSessionDataTask *task,id response, NSError *error))callBack; @end