deason 2 жил өмнө
parent
commit
6883a85cf3

+ 4 - 31
examcloud-core-questions-api-client/src/main/java/cn/com/qmth/examcloud/core/questions/api/client/QuestionCloudServiceClient.java

@@ -1,14 +1,7 @@
 package cn.com.qmth.examcloud.core.questions.api.client;
 
-import org.springframework.stereotype.Service;
-
 import cn.com.qmth.examcloud.core.questions.api.QuestionCloudService;
-import cn.com.qmth.examcloud.core.questions.api.request.GetDefaultQuesionListReq;
-import cn.com.qmth.examcloud.core.questions.api.request.GetDefaultQuesionReq;
-import cn.com.qmth.examcloud.core.questions.api.request.GetDefaultQuesionsReq;
-import cn.com.qmth.examcloud.core.questions.api.response.GetCommonResp;
-import cn.com.qmth.examcloud.core.questions.api.response.GetDefaultQuesionIdResp;
-import cn.com.qmth.examcloud.core.questions.api.response.GetDefaultQuestionsResp;
+import org.springframework.stereotype.Service;
 
 /**
  * @author weiwenhai
@@ -18,29 +11,9 @@ import cn.com.qmth.examcloud.core.questions.api.response.GetDefaultQuestionsResp
  */
 @Service
 public class QuestionCloudServiceClient extends AbstractCloudClientSupport
-		implements
-			QuestionCloudService {
-
-	private static final long serialVersionUID = 309315715614556772L;
-
-	@Override
-	public GetDefaultQuesionIdResp saveQuestion(GetDefaultQuesionReq req) {
-		return post("default_question/save", req, GetDefaultQuesionIdResp.class);
-	}
-
-	@Override
-	public GetDefaultQuesionIdResp updateQuestion(GetDefaultQuesionReq req) {
-		return post("default_question/update", req, GetDefaultQuesionIdResp.class);
-	}
-
-	@Override
-	public GetDefaultQuestionsResp findQuestions(GetDefaultQuesionsReq req) {
-		return post("default_question/find", req, GetDefaultQuestionsResp.class);
-	}
+        implements
+        QuestionCloudService {
 
-	@Override
-	public GetCommonResp saveQuestionList(GetDefaultQuesionListReq req) {
-		return post("default_question/save_list", req, GetCommonResp.class);
-	}
+    private static final long serialVersionUID = 309315715614556772L;
 
 }

+ 5 - 38
examcloud-core-questions-api/src/main/java/cn/com/qmth/examcloud/core/questions/api/QuestionCloudService.java

@@ -1,46 +1,13 @@
 package cn.com.qmth.examcloud.core.questions.api;
 
 import cn.com.qmth.examcloud.api.commons.CloudService;
-import cn.com.qmth.examcloud.core.questions.api.request.GetDefaultQuesionListReq;
-import cn.com.qmth.examcloud.core.questions.api.request.GetDefaultQuesionReq;
-import cn.com.qmth.examcloud.core.questions.api.request.GetDefaultQuesionsReq;
-import cn.com.qmth.examcloud.core.questions.api.response.GetCommonResp;
-import cn.com.qmth.examcloud.core.questions.api.response.GetDefaultQuesionIdResp;
-import cn.com.qmth.examcloud.core.questions.api.response.GetDefaultQuestionsResp;
 
 /**
- * @author 		weiwenhai
- * @date		2018.9.10
- * @company		qmth
- * @description	试题对象远程调用请求接口
+ * @author weiwenhai
+ * @date 2018.9.10
+ * @company qmth
+ * @description 试题对象远程调用请求接口
  */
-public interface QuestionCloudService extends CloudService{
+public interface QuestionCloudService extends CloudService {
 
-	/**
-	 * 保存单个试题对象
-	 * @param req
-	 * @return
-	 */
-	GetDefaultQuesionIdResp saveQuestion(GetDefaultQuesionReq req);
-	
-	/**
-	 * 修改单个试题对象
-	 * @param req
-	 * @return
-	 */
-	GetDefaultQuesionIdResp updateQuestion(GetDefaultQuesionReq req);
-	
-	/**
-	 * 查询试题集合
-	 * @param req
-	 * @return
-	 */
-	GetDefaultQuestionsResp findQuestions(GetDefaultQuesionsReq req);
-	
-	/**
-	 * 保存多个试题对象
-	 * @param req
-	 * @return
-	 */
-	GetCommonResp saveQuestionList(GetDefaultQuesionListReq req);
 }

+ 0 - 31
examcloud-core-questions-api/src/main/java/cn/com/qmth/examcloud/core/questions/api/response/GetDefaultQuestionsResp.java

@@ -1,31 +0,0 @@
-package cn.com.qmth.examcloud.core.questions.api.response;
-
-import org.springframework.data.domain.Page;
-
-import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
-import cn.com.qmth.examcloud.question.commons.core.question.DefaultQuestion;
-
-/**
- * @author 		weiwenhai
- * @date		2018.9.11
- * @company		qmth
- * @describle	试题集合响应对象
- */
-public class GetDefaultQuestionsResp extends BaseResponse{
-
-	private static final long serialVersionUID = 2009749603594065484L;
-	
-	/**
-	 * 试题集合
-	 */
-	private Page<DefaultQuestion> defaultQuestions;
-
-	public Page<DefaultQuestion> getDefaultQuestions() {
-		return defaultQuestions;
-	}
-
-	public void setDefaultQuestions(Page<DefaultQuestion> defaultQuestions) {
-		this.defaultQuestions = defaultQuestions;
-	}
-
-}

+ 0 - 35
examcloud-exchange-inner-api-client/src/main/java/cn/com/qmth/examcloud/exchange/inner/api/client/UpyunCloudServiceClient.java

@@ -1,35 +0,0 @@
-package cn.com.qmth.examcloud.exchange.inner.api.client;
-
-import org.springframework.stereotype.Service;
-
-import cn.com.qmth.examcloud.exchange.inner.api.UpyunCloudService;
-import cn.com.qmth.examcloud.exchange.inner.api.request.DeleteFileReq;
-import cn.com.qmth.examcloud.exchange.inner.api.request.PutFileReq;
-import cn.com.qmth.examcloud.exchange.inner.api.response.DeleteFileResp;
-import cn.com.qmth.examcloud.exchange.inner.api.response.PutFileResp;
-
-/**
- * 类注释
- *
- * @author WANGWEI
- * @date 2018年11月27日
- * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
- */
-@Service
-public class UpyunCloudServiceClient extends AbstractCloudClientSupport
-		implements
-			UpyunCloudService {
-
-	private static final long serialVersionUID = -7928075025404055161L;
-
-	@Override
-	public PutFileResp putFile(PutFileReq req) {
-		return postForm("upyun/putFile", req, PutFileResp.class);
-	}
-
-	@Override
-	public DeleteFileResp deleteFile(DeleteFileReq req) {
-		return post("upyun/deleteFile", req, DeleteFileResp.class);
-	}
-
-}

+ 0 - 36
examcloud-exchange-inner-api/src/main/java/cn/com/qmth/examcloud/exchange/inner/api/UpyunCloudService.java

@@ -1,36 +0,0 @@
-package cn.com.qmth.examcloud.exchange.inner.api;
-
-import cn.com.qmth.examcloud.api.commons.CloudService;
-import cn.com.qmth.examcloud.exchange.inner.api.request.DeleteFileReq;
-import cn.com.qmth.examcloud.exchange.inner.api.request.PutFileReq;
-import cn.com.qmth.examcloud.exchange.inner.api.response.DeleteFileResp;
-import cn.com.qmth.examcloud.exchange.inner.api.response.PutFileResp;
-
-/**
- * 类注释
- *
- * @author WANGWEI
- * @date 2018年11月27日
- * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
- */
-public interface UpyunCloudService extends CloudService {
-
-	/**
-	 * 方法注释
-	 *
-	 * @author WANGWEI
-	 * @param req
-	 * @return
-	 */
-	PutFileResp putFile(PutFileReq req);
-
-	/**
-	 * 方法注释
-	 *
-	 * @author WANGWEI
-	 * @param req
-	 * @return
-	 */
-	DeleteFileResp deleteFile(DeleteFileReq req);
-
-}

+ 0 - 32
examcloud-exchange-inner-api/src/main/java/cn/com/qmth/examcloud/exchange/inner/api/request/DeleteFileReq.java

@@ -1,32 +0,0 @@
-package cn.com.qmth.examcloud.exchange.inner.api.request;
-
-import cn.com.qmth.examcloud.api.commons.exchange.BaseRequest;
-
-public class DeleteFileReq extends BaseRequest {
-
-	private static final long serialVersionUID = -3216431881302614864L;
-
-	private String siteId;
-
-	/**
-	 * 顶级机构
-	 */
-	private String filePath;
-
-	public String getSiteId() {
-		return siteId;
-	}
-
-	public void setSiteId(String siteId) {
-		this.siteId = siteId;
-	}
-
-	public String getFilePath() {
-		return filePath;
-	}
-
-	public void setFilePath(String filePath) {
-		this.filePath = filePath;
-	}
-
-}

+ 0 - 153
examcloud-exchange-inner-api/src/main/java/cn/com/qmth/examcloud/exchange/inner/api/request/PutFileReq.java

@@ -1,153 +0,0 @@
-package cn.com.qmth.examcloud.exchange.inner.api.request;
-
-import org.springframework.web.multipart.MultipartFile;
-
-import cn.com.qmth.examcloud.api.commons.exchange.FormRequest;
-
-/**
- * 类注释
- *
- * @author WANGWEI
- * @date 2018年11月27日
- * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
- */
-public class PutFileReq extends FormRequest {
-
-	private static final long serialVersionUID = 6724768358354616915L;
-
-	private String siteId;
-
-	private Long rootOrgId;
-
-	private String rootOrgDomain;
-
-	private Long userId;
-
-	private String fileSuffix;
-
-	private String relativePath;
-
-	private MultipartFile file;
-
-	/**
-	 * 扩展属性
-	 */
-	private String ext1;
-
-	/**
-	 * 扩展属性
-	 */
-	private String ext2;
-
-	/**
-	 * 扩展属性
-	 */
-	private String ext3;
-
-	/**
-	 * 扩展属性
-	 */
-	private String ext4;
-
-	/**
-	 * 扩展属性
-	 */
-	private String ext5;
-
-	public String getSiteId() {
-		return siteId;
-	}
-
-	public void setSiteId(String siteId) {
-		this.siteId = siteId;
-	}
-
-	public Long getRootOrgId() {
-		return rootOrgId;
-	}
-
-	public void setRootOrgId(Long rootOrgId) {
-		this.rootOrgId = rootOrgId;
-	}
-
-	public String getRootOrgDomain() {
-		return rootOrgDomain;
-	}
-
-	public void setRootOrgDomain(String rootOrgDomain) {
-		this.rootOrgDomain = rootOrgDomain;
-	}
-
-	public Long getUserId() {
-		return userId;
-	}
-
-	public void setUserId(Long userId) {
-		this.userId = userId;
-	}
-
-	public String getFileSuffix() {
-		return fileSuffix;
-	}
-
-	public void setFileSuffix(String fileSuffix) {
-		this.fileSuffix = fileSuffix;
-	}
-
-	public String getRelativePath() {
-		return relativePath;
-	}
-
-	public void setRelativePath(String relativePath) {
-		this.relativePath = relativePath;
-	}
-
-	public MultipartFile getFile() {
-		return file;
-	}
-
-	public void setFile(MultipartFile file) {
-		this.file = file;
-	}
-
-	public String getExt1() {
-		return ext1;
-	}
-
-	public void setExt1(String ext1) {
-		this.ext1 = ext1;
-	}
-
-	public String getExt2() {
-		return ext2;
-	}
-
-	public void setExt2(String ext2) {
-		this.ext2 = ext2;
-	}
-
-	public String getExt3() {
-		return ext3;
-	}
-
-	public void setExt3(String ext3) {
-		this.ext3 = ext3;
-	}
-
-	public String getExt4() {
-		return ext4;
-	}
-
-	public void setExt4(String ext4) {
-		this.ext4 = ext4;
-	}
-
-	public String getExt5() {
-		return ext5;
-	}
-
-	public void setExt5(String ext5) {
-		this.ext5 = ext5;
-	}
-
-}

+ 0 - 9
examcloud-exchange-inner-api/src/main/java/cn/com/qmth/examcloud/exchange/inner/api/response/DeleteFileResp.java

@@ -1,9 +0,0 @@
-package cn.com.qmth.examcloud.exchange.inner.api.response;
-
-import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
-
-public class DeleteFileResp extends BaseResponse {
-
-	private static final long serialVersionUID = 6997649224779442640L;
-
-}

+ 0 - 36
examcloud-exchange-inner-api/src/main/java/cn/com/qmth/examcloud/exchange/inner/api/response/PutFileResp.java

@@ -1,36 +0,0 @@
-package cn.com.qmth.examcloud.exchange.inner.api.response;
-
-import cn.com.qmth.examcloud.api.commons.exchange.BaseResponse;
-
-/**
- * 类注释
- *
- * @author WANGWEI
- * @date 2018年11月27日
- * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
- */
-public class PutFileResp extends BaseResponse {
-
-	private static final long serialVersionUID = 8104484024663316592L;
-
-	private String url;
-
-	private String relativePath;
-
-	public String getUrl() {
-		return url;
-	}
-
-	public void setUrl(String url) {
-		this.url = url;
-	}
-
-	public String getRelativePath() {
-		return relativePath;
-	}
-
-	public void setRelativePath(String relativePath) {
-		this.relativePath = relativePath;
-	}
-
-}