Преглед изворни кода

完成通知后台代码
完成通知自动服务

lideyin пре 6 година
родитељ
комит
60b4f0d74a

+ 3 - 0
examcloud-core-examwork-api-client/src/main/java/cn/com/qmth/examcloud/examwork/api/client/AbstractCloudClientSupport.java

@@ -24,4 +24,7 @@ public abstract class AbstractCloudClientSupport extends CloudClientSupport {
 		return super.post(APP_NAME, requestMappingSuffix, body, responseType);
 	}
 
+	protected void post(String requestMappingSuffix) {
+		super.post(APP_NAME, requestMappingSuffix);
+	}
 }

+ 22 - 0
examcloud-core-examwork-api-client/src/main/java/cn/com/qmth/examcloud/examwork/api/client/NoticeCloudServiceClient.java

@@ -0,0 +1,22 @@
+package cn.com.qmth.examcloud.examwork.api.client;
+
+import cn.com.qmth.examcloud.examwork.api.NoticeCloudService;
+import org.springframework.stereotype.Service;
+
+@Service
+public class NoticeCloudServiceClient extends AbstractCloudClientSupport
+        implements
+        NoticeCloudService {
+
+    private static final long serialVersionUID = -8874453764538303046L;
+
+    @Override
+    public void disposePublishingUserNotice() {
+        post("notice/disposePublishingUserNotice");
+    }
+
+    @Override
+    public void disposeOverdueNotice() {
+        post("notice/disposeOverdueNotice");
+    }
+}

+ 14 - 0
examcloud-core-examwork-api/src/main/java/cn/com/qmth/examcloud/examwork/api/NoticeCloudService.java

@@ -0,0 +1,14 @@
+package cn.com.qmth.examcloud.examwork.api;
+
+import cn.com.qmth.examcloud.api.commons.CloudService;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.web.bind.annotation.PostMapping;
+
+public interface NoticeCloudService extends CloudService {
+
+    @ApiOperation(value = "处理发布中的用户通知数据")
+    void disposePublishingUserNotice();
+
+    @ApiOperation(value = "清理过期的通知数据")
+    void disposeOverdueNotice();
+}