|
@@ -1,5 +1,10 @@
|
|
|
package cn.com.qmth.examcloud.task.api.provider;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
import cn.com.qmth.examcloud.commons.web.support.ControllerSupport;
|
|
|
import cn.com.qmth.examcloud.task.api.DataSyncCloudService;
|
|
|
import cn.com.qmth.examcloud.task.api.request.SyncCourseReq;
|
|
@@ -12,38 +17,41 @@ import cn.com.qmth.examcloud.task.api.response.SyncSpecialtyResp;
|
|
|
import cn.com.qmth.examcloud.task.api.response.SyncStudentResp;
|
|
|
|
|
|
/**
|
|
|
- * 类注释
|
|
|
+ * 数据同步
|
|
|
*
|
|
|
* @author WANGWEI
|
|
|
* @date 2018年8月2日
|
|
|
* @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
|
*/
|
|
|
+@RestController
|
|
|
+@RequestMapping("${$rmp.cloud.task}" + "dataSync")
|
|
|
public class DataSyncCloudServiceProvider extends ControllerSupport
|
|
|
implements
|
|
|
DataSyncCloudService {
|
|
|
|
|
|
private static final long serialVersionUID = -2880611326177571371L;
|
|
|
|
|
|
+ @PostMapping("syncCourse")
|
|
|
@Override
|
|
|
- public SyncCourseResp syncCourse(SyncCourseReq req) {
|
|
|
+ public SyncCourseResp syncCourse(@RequestBody SyncCourseReq req) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("syncOrg")
|
|
|
@Override
|
|
|
- public SyncOrgResp syncOrg(SyncOrgReq req) {
|
|
|
- // TODO Auto-generated method stub
|
|
|
+ public SyncOrgResp syncOrg(@RequestBody SyncOrgReq req) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("syncStudent")
|
|
|
@Override
|
|
|
- public SyncStudentResp syncStudent(SyncStudentReq req) {
|
|
|
- // TODO Auto-generated method stub
|
|
|
+ public SyncStudentResp syncStudent(@RequestBody SyncStudentReq req) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("syncSpecialty")
|
|
|
@Override
|
|
|
- public SyncSpecialtyResp syncSpecialty(SyncSpecialtyReq req) {
|
|
|
- // TODO Auto-generated method stub
|
|
|
+ public SyncSpecialtyResp syncSpecialty(@RequestBody SyncSpecialtyReq req) {
|
|
|
return null;
|
|
|
}
|
|
|
|