mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
1.13.5
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<dependency>
|
||||
<groupId>com.gitee.sop</groupId>
|
||||
<artifactId>sop-service-common</artifactId>
|
||||
<version>1.13.4-SNAPSHOT</version>
|
||||
<version>1.13.5-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
|
@@ -24,7 +24,7 @@
|
||||
<dependency>
|
||||
<groupId>com.gitee.sop</groupId>
|
||||
<artifactId>sop-service-common</artifactId>
|
||||
<version>1.13.4-SNAPSHOT</version>
|
||||
<version>1.13.5-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.gitee.sop</groupId>
|
||||
|
@@ -29,7 +29,7 @@
|
||||
<dependency>
|
||||
<groupId>com.gitee.sop</groupId>
|
||||
<artifactId>sop-service-common</artifactId>
|
||||
<version>1.13.4-SNAPSHOT</version>
|
||||
<version>1.13.5-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
|
@@ -20,7 +20,7 @@
|
||||
<dependency>
|
||||
<groupId>com.gitee.sop</groupId>
|
||||
<artifactId>sop-service-common</artifactId>
|
||||
<version>1.13.4-SNAPSHOT</version>
|
||||
<version>1.13.5-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!-- eureka 服务发现 -->
|
||||
<dependency>
|
||||
|
@@ -24,7 +24,7 @@
|
||||
<dependency>
|
||||
<groupId>com.gitee.sop</groupId>
|
||||
<artifactId>sop-service-common</artifactId>
|
||||
<version>1.13.4-SNAPSHOT</version>
|
||||
<version>1.13.5-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.gitee.sop</groupId>
|
||||
|
@@ -30,7 +30,7 @@ public class AlipayController {
|
||||
// http://localhost:2222/story_get
|
||||
// 原生的接口,可正常调用
|
||||
@RequestMapping("story_get")
|
||||
public Story getStory4() {
|
||||
public Story story_get() {
|
||||
Story story = new Story();
|
||||
story.setId(1);
|
||||
story.setName("海底小纵队(原生)");
|
||||
@@ -117,7 +117,7 @@ public class AlipayController {
|
||||
// http://localhost:2222/getStory2?version=2.1
|
||||
// 遗留接口具备开放平台能力,在原来的基础上加版本号
|
||||
@ApiAbility(version = "2.1")
|
||||
@RequestMapping("getStory2")
|
||||
@GetMapping("getStory2")
|
||||
public Story getStory2_1() {
|
||||
Story story = new Story();
|
||||
story.setId(1);
|
||||
|
@@ -37,5 +37,25 @@ public class PostJsonController {
|
||||
return story;
|
||||
}
|
||||
|
||||
/**
|
||||
* 演示客户端使用json方式请求(application/json)
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
@ApiMapping(value = "demo.post.json", version = "1.2")
|
||||
public Story postJson2(StoryParam param) {
|
||||
// 获取开放平台请求参数
|
||||
OpenContext openContext = ServiceContext.getCurrentContext().getOpenContext();
|
||||
List<Object> params = Arrays.asList(
|
||||
openContext.getAppId(),
|
||||
openContext.getMethod(),
|
||||
openContext.getVersion()
|
||||
);
|
||||
Story story = new Story();
|
||||
story.setId(1);
|
||||
story.setName("1.2 参数:" + param.getName() + ", openParams:" + StringUtils.join(params));
|
||||
return story;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user