mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
文档结果支持树状结构
This commit is contained in:
@@ -30,6 +30,7 @@ public class AlipayController {
|
||||
|
||||
@ApiOperation(value="获取故事信息", notes = "说明接口的详细信息,介绍,用途,注意事项等。")
|
||||
@ApiMapping(value = "alipay.story.find")
|
||||
// 参数必须封装在类中
|
||||
public StoryVO getStory2(StoryParam story) {
|
||||
StoryVO storyVO = new StoryVO();
|
||||
storyVO.id = 1L;
|
||||
@@ -43,6 +44,24 @@ public class AlipayController {
|
||||
return story;
|
||||
}
|
||||
|
||||
/**
|
||||
* 演示文档表格树
|
||||
* @param story
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value="获取分类信息", notes = "演示表格树")
|
||||
@ApiMapping(value = "alipay.category.get")
|
||||
public Category getCategory(Category story) {
|
||||
StoryVO storyVO = new StoryVO();
|
||||
storyVO.id = 1L;
|
||||
storyVO.name = "白雪公主";
|
||||
storyVO.gmt_create = new Date();
|
||||
Category category = new Category();
|
||||
category.setCategoryName("娱乐");
|
||||
category.setStory(storyVO);
|
||||
return category;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class StoryVO {
|
||||
@ApiModelProperty(value = "故事ID", example = "1")
|
||||
@@ -52,4 +71,13 @@ public class AlipayController {
|
||||
@ApiModelProperty(value = "创建时间", example = "2019-04-14 19:02:12")
|
||||
private Date gmt_create;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class Category {
|
||||
@ApiModelProperty(value = "分类名称", example = "娱乐")
|
||||
private String categoryName;
|
||||
|
||||
@ApiModelProperty(value = "分类故事")
|
||||
private StoryVO story;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user