This commit is contained in:
tanghc
2019-12-19 11:30:50 +08:00
parent f2d3ee1af9
commit fdd5d3b00d
2 changed files with 28 additions and 0 deletions

View File

@@ -18,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.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@@ -141,6 +142,17 @@ public class AlipayController {
return story;
}
// http://localhost:2222/getStory33
// 遗留接口具备开放平台能力
@ApiAbility
@PostMapping("getStory33")
public StoryResult getStory22(@RequestBody StoryParam param) {
StoryResult story = new StoryResult();
story.setId(1L);
story.setName("遗留接口,param:" + param);
return story;
}
// http://localhost:2222/getStory2?version=2.1
// 遗留接口具备开放平台能力,在原来的基础上加版本号
@ApiAbility(version = "2.1")