This commit is contained in:
tanghc
2019-09-10 15:51:29 +08:00
parent b859e8b88f
commit d32d3931a1
4 changed files with 48 additions and 7 deletions

View File

@@ -10,6 +10,7 @@ import com.gitee.sop.storyweb.controller.param.CategoryParam;
import com.gitee.sop.storyweb.controller.param.StoryParam;
import com.gitee.sop.storyweb.controller.result.CategoryResult;
import com.gitee.sop.storyweb.controller.result.StoryResult;
import com.gitee.sop.storyweb.controller.result.TreeResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
@@ -240,6 +241,18 @@ public class AlipayController {
return categoryResult;
}
/**
* 树状返回
*
* @param param
* @return
*/
@ApiOperation(value = "树状返回", notes = "树状返回")
@ApiMapping(value = "alipay.tree.get", method = RequestMethod.POST)
public TreeResult tree(StoryParam param) {
return new TreeResult();
}
// 测试参数绑定http://localhost:2222/story/getStory4?biz_content=%7b%22id%22%3a1%2c%22name%22%3a%22aaaa%22%7d
@ApiAbility
@GetMapping("getStory4")

View File

@@ -0,0 +1,24 @@
package com.gitee.sop.storyweb.controller.result;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.List;
/**
* @author tanghc
*/
@Data
public class TreeResult {
@ApiModelProperty(value = "id")
private Integer id;
@ApiModelProperty(value = "名称")
private String name;
@ApiModelProperty(value = "父id")
private Integer pid;
@ApiModelProperty(value = "子节点")
private List<TreeResult> children;
}