Merge remote-tracking branch 'origin/master'
commit
9d7ff32697
@ -0,0 +1,104 @@
|
|||||||
|
package com.sztzjy.financial_bigdata.entity.resource_entity;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
|
public class TestSysKnowledgeSummary {
|
||||||
|
@ApiModelProperty("知识概要ID")
|
||||||
|
private String knowledgeSummaryId;
|
||||||
|
|
||||||
|
@ApiModelProperty("一级标签ID")
|
||||||
|
private String oneTagId;
|
||||||
|
|
||||||
|
@ApiModelProperty("一级标签名称")
|
||||||
|
private String oneTagName;
|
||||||
|
|
||||||
|
@ApiModelProperty("二级标签ID")
|
||||||
|
private String twoTagId;
|
||||||
|
|
||||||
|
@ApiModelProperty("二级标签名称")
|
||||||
|
private String twoTagName;
|
||||||
|
|
||||||
|
@ApiModelProperty("三级标签ID")
|
||||||
|
private String threeTagId;
|
||||||
|
|
||||||
|
@ApiModelProperty("三级标签名称")
|
||||||
|
private String threeTagName;
|
||||||
|
|
||||||
|
@ApiModelProperty("管理员/学校ID")
|
||||||
|
private String source;
|
||||||
|
|
||||||
|
@ApiModelProperty("内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
public String getKnowledgeSummaryId() {
|
||||||
|
return knowledgeSummaryId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKnowledgeSummaryId(String knowledgeSummaryId) {
|
||||||
|
this.knowledgeSummaryId = knowledgeSummaryId == null ? null : knowledgeSummaryId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOneTagId() {
|
||||||
|
return oneTagId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOneTagId(String oneTagId) {
|
||||||
|
this.oneTagId = oneTagId == null ? null : oneTagId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOneTagName() {
|
||||||
|
return oneTagName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOneTagName(String oneTagName) {
|
||||||
|
this.oneTagName = oneTagName == null ? null : oneTagName.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTwoTagId() {
|
||||||
|
return twoTagId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTwoTagId(String twoTagId) {
|
||||||
|
this.twoTagId = twoTagId == null ? null : twoTagId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTwoTagName() {
|
||||||
|
return twoTagName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTwoTagName(String twoTagName) {
|
||||||
|
this.twoTagName = twoTagName == null ? null : twoTagName.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getThreeTagId() {
|
||||||
|
return threeTagId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setThreeTagId(String threeTagId) {
|
||||||
|
this.threeTagId = threeTagId == null ? null : threeTagId.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getThreeTagName() {
|
||||||
|
return threeTagName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setThreeTagName(String threeTagName) {
|
||||||
|
this.threeTagName = threeTagName == null ? null : threeTagName.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource() {
|
||||||
|
return source;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource(String source) {
|
||||||
|
this.source = source == null ? null : source.trim();
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContent(String content) {
|
||||||
|
this.content = content == null ? null : content.trim();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,37 @@
|
|||||||
|
package com.sztzjy.financial_bigdata.resourceCenterAPI;
|
||||||
|
|
||||||
|
import cn.hutool.json.JSONObject;
|
||||||
|
import com.google.common.reflect.TypeToken;
|
||||||
|
import com.google.gson.Gson;
|
||||||
|
import com.google.gson.GsonBuilder;
|
||||||
|
import com.sztzjy.financial_bigdata.config.Constant;
|
||||||
|
import com.sztzjy.financial_bigdata.entity.resource_entity.SysTwoCatalog;
|
||||||
|
import com.sztzjy.financial_bigdata.entity.resource_entity.TestSysKnowledgeSummary;
|
||||||
|
import com.sztzjy.financial_bigdata.util.HttpUtils;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.reflect.Type;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class KnowledgeSummaryApi {
|
||||||
|
private final static String getSysKnowledgeSummary = Constant.API_URL + "/api/stu/knowledgeNote/getSysKnowledgeSummary";
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* local:知识概要查询
|
||||||
|
*/
|
||||||
|
public static TestSysKnowledgeSummary getSysKnowledgeSummary(String courseId,String chapterId, String schoolId, String systemOwner) throws IOException {
|
||||||
|
String requestBody="systemOwner="+systemOwner+"&schoolId="+schoolId+"&chapterId="+chapterId+"&courseId="+courseId;
|
||||||
|
JSONObject object = HttpUtils.sendPost(
|
||||||
|
getSysKnowledgeSummary,
|
||||||
|
requestBody);
|
||||||
|
Gson gson = new GsonBuilder()
|
||||||
|
.registerTypeAdapter(Date.class, new DateTypeAdapter())
|
||||||
|
.create();
|
||||||
|
Type listType = new TypeToken<TestSysKnowledgeSummary>() {}.getType();
|
||||||
|
TestSysKnowledgeSummary knowledgeSummarie = gson.fromJson(object.get("respString").toString(), listType);
|
||||||
|
return knowledgeSummarie;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue