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