|
@@ -14,8 +14,6 @@ import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
|
import cn.com.qmth.examcloud.core.print.enums.ExamType;
|
|
|
import cn.com.qmth.examcloud.core.print.service.PrintingProjectService;
|
|
|
import cn.com.qmth.examcloud.core.print.service.bean.OrgExamInfo;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -29,20 +27,23 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @since: 2018/10/31
|
|
|
*/
|
|
|
@RestController
|
|
|
-@Api(tags = "数据同步相关接口")
|
|
|
@RequestMapping("${$rmp.cloud.print}/data")
|
|
|
public class PrintingSyncCloudServiceProvider extends ControllerSupport implements HandleSyncCloudService {
|
|
|
@Autowired
|
|
|
private PrintingProjectService printingProjectService;
|
|
|
|
|
|
- @ApiOperation(value = "同步学校机构")
|
|
|
+ /**
|
|
|
+ * 同步学校机构
|
|
|
+ */
|
|
|
@PostMapping("/syncOrg")
|
|
|
public SyncOrgResp syncOrg(@RequestBody SyncOrgReq req) {
|
|
|
printingProjectService.syncPrintingProjectOrgName(req.getRootId(), req.getName());
|
|
|
return new SyncOrgResp();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "同步考试")
|
|
|
+ /**
|
|
|
+ * 同步考试
|
|
|
+ */
|
|
|
@PostMapping("syncExam")
|
|
|
public SyncExamResp syncExam(@RequestBody SyncExamReq req) {
|
|
|
printingProjectService.syncPrintingProjectOrgName(req.getId(), req.getName());
|
|
@@ -53,25 +54,33 @@ public class PrintingSyncCloudServiceProvider extends ControllerSupport implemen
|
|
|
return new SyncExamResp();
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "同步考生")
|
|
|
+ /**
|
|
|
+ * 同步考生
|
|
|
+ */
|
|
|
@PostMapping("/syncExamStudent")
|
|
|
public SyncExamStudentResp syncExamStudent(@RequestBody SyncExamStudentReq req) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "同步学生")
|
|
|
+ /**
|
|
|
+ * 同步学生
|
|
|
+ */
|
|
|
@PostMapping("/syncStudent")
|
|
|
public SyncStudentResp syncStudent(@RequestBody SyncStudentReq req) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "同步课程")
|
|
|
+ /**
|
|
|
+ * 同步专业
|
|
|
+ */
|
|
|
@PostMapping("/syncCourse")
|
|
|
public SyncCourseResp syncCourse(@RequestBody SyncCourseReq req) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "同步专业")
|
|
|
+ /**
|
|
|
+ * 同步专业
|
|
|
+ */
|
|
|
@PostMapping("syncSpecialty")
|
|
|
public SyncSpecialtyResp syncSpecialty(@RequestBody SyncSpecialtyReq req) {
|
|
|
return null;
|