mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
2.0
This commit is contained in:
@@ -17,7 +17,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 支付宝服务端,假设签名验证通过后,到达这里进行具体的业务处理。
|
||||
@@ -180,6 +182,23 @@ public class AlipayController {
|
||||
return storyVO;
|
||||
}
|
||||
|
||||
@ApiOperation(value = "返回数组结果", notes = "返回数组结果")
|
||||
@ApiMapping(value = "alipay.story.find2")
|
||||
public List<StoryVO> getStory3(StoryParam story) {
|
||||
int index = 0;
|
||||
StoryVO storyVO = new StoryVO();
|
||||
storyVO.id = 1L;
|
||||
storyVO.name = "白雪公主, index:" + index++;
|
||||
storyVO.gmt_create = new Date();
|
||||
|
||||
StoryVO storyVO2 = new StoryVO();
|
||||
storyVO2.id = 1L;
|
||||
storyVO2.name = "白雪公主, index:" + index++;
|
||||
storyVO2.gmt_create = new Date();
|
||||
|
||||
return Arrays.asList(storyVO, storyVO2);
|
||||
}
|
||||
|
||||
/**
|
||||
* 演示文档表格树
|
||||
* @param story
|
||||
|
@@ -1,5 +1,6 @@
|
||||
package com.gitee.sop.storyweb.vo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -25,8 +26,11 @@ public class FileUploadVO {
|
||||
public FileMeta() {
|
||||
}
|
||||
|
||||
@ApiModelProperty(value = "文件名称", example = "1.txt")
|
||||
private String filename;
|
||||
@ApiModelProperty(value = "文件大小", example = "109")
|
||||
private long size;
|
||||
@ApiModelProperty(value = "文件内容", example = "啊啊啊")
|
||||
private String content;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user