mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
2.5.3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user