|
@@ -6,6 +6,7 @@ import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.commons.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.core.oe.student.api.OeScorePushCloudService;
|
|
import cn.com.qmth.examcloud.core.oe.student.api.OeScorePushCloudService;
|
|
|
|
+import cn.com.qmth.examcloud.core.oe.student.api.request.SaveExamScoreQueueReq;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
public class OeScorePushCloudServiceClient extends BasicCloudClientSupport implements OeScorePushCloudService{
|
|
public class OeScorePushCloudServiceClient extends BasicCloudClientSupport implements OeScorePushCloudService{
|
|
@@ -21,11 +22,6 @@ public class OeScorePushCloudServiceClient extends BasicCloudClientSupport imple
|
|
@Autowired
|
|
@Autowired
|
|
private RedisClient redisClient;
|
|
private RedisClient redisClient;
|
|
|
|
|
|
- @Override
|
|
|
|
- public void scorePush() {
|
|
|
|
- post("oeScorePush", null);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@Override
|
|
@Override
|
|
protected RestTemplate getRestTemplate() {
|
|
protected RestTemplate getRestTemplate() {
|
|
return restTemplate;
|
|
return restTemplate;
|
|
@@ -35,5 +31,15 @@ public class OeScorePushCloudServiceClient extends BasicCloudClientSupport imple
|
|
protected RedisClient getRedisClient() {
|
|
protected RedisClient getRedisClient() {
|
|
return redisClient;
|
|
return redisClient;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void disposeScoreQueue() {
|
|
|
|
+ post("oeScorePush/disposeScoreQueue", null);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void saveExamScoreQueue(SaveExamScoreQueueReq req) {
|
|
|
|
+ post("oeScorePush/saveExamScoreQueue", req);
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|