重新封装
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package org.jiayunet.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.jiayunet.remote.jsxq.JsxqClient;
|
||||
import org.jiayunet.remote.jsxq.pojo.JsxqPage;
|
||||
@@ -9,6 +8,7 @@ import org.jiayunet.remote.jsxq.pojo.dto.MentorFullInfoDto;
|
||||
import org.jiayunet.remote.jsxq.pojo.dto.MentorItemDto;
|
||||
import org.jiayunet.remote.jsxq.pojo.dto.TeacherTalkDto;
|
||||
import org.jiayunet.remote.jsxq.pojo.param.MentorPageParam;
|
||||
import org.jiayunet.remote.jsxq.pojo.param.QrCodeParam;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -65,7 +65,7 @@ public class MentorController {
|
||||
* 获取二维码
|
||||
*/
|
||||
@PostMapping("/getQrCode")
|
||||
public Map<String, Object> getQrCode(@RequestBody JSONObject data) {
|
||||
return jsxqClient.getQrCode(data);
|
||||
public Map<String, Object> getQrCode(@Validated @RequestBody QrCodeParam param) {
|
||||
return jsxqClient.getQrCode(param);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +109,5 @@ app:
|
||||
# 简史星球开放平台配置
|
||||
jsxq:
|
||||
base-url: ${JSXQ_BASE_URL:https://jsxq.jianshixingqiu.com/api/admin}
|
||||
token: ${JSXQ_TOKEN:f69b5086-97b0-4e5e-b172-453e444d448c}
|
||||
tenant-id: ${JSXQ_TENANT_ID:1}
|
||||
client-toc: ${JSXQ_CLIENT_TOC:Y}
|
||||
|
||||
@@ -109,6 +109,5 @@ app:
|
||||
# 简史星球开放平台配置
|
||||
jsxq:
|
||||
base-url: ${JSXQ_BASE_URL:https://jsxq.jianshixingqiu.com/api/admin}
|
||||
token: ${JSXQ_TOKEN:f69b5086-97b0-4e5e-b172-453e444d448c}
|
||||
tenant-id: ${JSXQ_TENANT_ID:1}
|
||||
client-toc: ${JSXQ_CLIENT_TOC:Y}
|
||||
|
||||
@@ -110,6 +110,5 @@ app:
|
||||
# 简史星球开放平台配置
|
||||
jsxq:
|
||||
base-url: ${JSXQ_BASE_URL:https://jsxq.jianshixingqiu.com/api/admin}
|
||||
token: ${JSXQ_TOKEN:f69b5086-97b0-4e5e-b172-453e444d448c}
|
||||
tenant-id: ${JSXQ_TENANT_ID:1}
|
||||
client-toc: ${JSXQ_CLIENT_TOC:Y}
|
||||
|
||||
Reference in New Issue
Block a user