pull/1/head
tanghc 5 years ago
parent bfe09e26a6
commit 51ca5ba319
  1. 1
      sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/AlipayController.java
  2. 5
      sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/param/CategoryParam.java

@ -231,6 +231,7 @@ public class AlipayController {
@ApiOperation(value = "获取分类信息", notes = "演示表格树") @ApiOperation(value = "获取分类信息", notes = "演示表格树")
@ApiMapping(value = "alipay.category.get", method = RequestMethod.POST) @ApiMapping(value = "alipay.category.get", method = RequestMethod.POST)
public CategoryResult getCategory(CategoryParam param) { public CategoryResult getCategory(CategoryParam param) {
System.out.println(param);
StoryResult result = new StoryResult(); StoryResult result = new StoryResult();
result.setId(1L); result.setId(1L);
result.setName("白雪公主"); result.setName("白雪公主");

@ -3,11 +3,16 @@ package com.gitee.sop.storyweb.controller.param;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.Date;
@Data @Data
public class CategoryParam { public class CategoryParam {
@ApiModelProperty(value = "分类名称", example = "娱乐") @ApiModelProperty(value = "分类名称", example = "娱乐")
private String categoryName; private String categoryName;
@ApiModelProperty(value = "创建时间", example = "2019-09-25 17:12:52")
private Date createTime;
@ApiModelProperty(value = "分类故事") @ApiModelProperty(value = "分类故事")
private StoryParam storyParam; private StoryParam storyParam;
} }
Loading…
Cancel
Save