weiwenhai %!s(int64=6) %!d(string=hai) anos
pai
achega
f3ffa0abb1

+ 5 - 0
examcloud-core-questions-api-client/src/main/java/cn/com/qmth/examcloud/core/questions/api/client/ExtractConfigCloudServiceClient.java

@@ -75,4 +75,9 @@ public class ExtractConfigCloudServiceClient extends BasicCloudClientSupport imp
 		return post("extract_config/getBaseQuestion", req, GetQuestionResp.class);
 	}
 
+	@Override
+	public GetQuestionListResp getQuestionStructure(GetBasePaperReq req) {
+		return post("extract_config/getQuestionStructure", req, GetQuestionListResp.class);
+	}
+
 }

+ 7 - 0
examcloud-core-questions-api/src/main/java/cn/com/qmth/examcloud/core/questions/api/ExtractConfigCloudService.java

@@ -61,4 +61,11 @@ public interface ExtractConfigCloudService extends CloudService{
 	 * @return
 	 */
 	GetQuestionResp getBaseQuestion(GetQuestionReq req);
+	
+	/**
+	 * 根据试卷id查询主观题与客观题数量
+	 * @param req
+	 * @return
+	 */
+	GetQuestionListResp getQuestionStructure(GetBasePaperReq req);
 }

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

@@ -10,6 +10,8 @@ public class GetQuestionListResp extends BaseResponse{
 	private static final long serialVersionUID = 5831902383553781609L;
 
 	private Map<String, DefaultQuestion> map;
+	
+	private String json;
 
 	public Map<String, DefaultQuestion> getMap() {
 		return map;
@@ -19,4 +21,11 @@ public class GetQuestionListResp extends BaseResponse{
 		this.map = map;
 	}
 
+	public String getJson() {
+		return json;
+	}
+
+	public void setJson(String json) {
+		this.json = json;
+	}
 }