This commit is contained in:
tanghc
2019-11-13 16:30:54 +08:00
parent 64cb58a9ca
commit f8ff5e7e8e
4 changed files with 14 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
package com.gitee.sop.storyweb.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gitee.sop.servercommon.annotation.ApiAbility;
import com.gitee.sop.servercommon.annotation.ApiMapping;
import com.gitee.sop.servercommon.bean.OpenContext;
@@ -17,6 +18,7 @@ import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@@ -132,10 +134,10 @@ public class AlipayController {
// 遗留接口具备开放平台能力
@ApiAbility
@GetMapping("getStory2")
public StoryResult getStory2_0() {
public StoryResult getStory2_0(@RequestBody JSONObject param) {
StoryResult story = new StoryResult();
story.setId(1L);
story.setName("海底小纵队(默认版本号)");
story.setName("海底小纵队(默认版本号),param:" + param);
return story;
}

View File

@@ -3,6 +3,8 @@ spring.application.name=story-service
# nacos注册中心
spring.cloud.nacos.discovery.server-addr=127.0.0.1:8848
# 如果有context-path必须配下面这句
#spring.cloud.nacos.discovery.metadata.server.servlet.context-path=/story-service
# dubbo配置
dubbo.protocol.name=dubbo