@RestController @ControllerAdvice @RequestMapping(value="/feign") public class TestFeign extends Object
@API(title="Feign\u6d4b\u8bd5",param={@ApiParam(name="uri",title="\u6570\u636eURI",memo="\u5e94\u7528\u540d\u79f0+API\u63a5\u53e3\u5730\u5740"),@ApiParam(name="method",title="\u8bf7\u6c42\u65b9\u6cd5",memo="GET\u3001POST\u3001PUT\u3001DELETE")}) @RequestMapping(value="/test") public Results test()
@API(title="\u4e0a\u4f20\u6587\u4ef6",memo="\u4e0a\u4f20\u6587\u4ef6\u64cd\u4f5c\uff0c\u8fd4\u56de\u4e0a\u4f20\u6210\u529f\u7684\u6587\u4ef6\u8bbf\u95ee\u8def\u5f84",param={@ApiParam(name="server_name",title="\u5e94\u7528\u540d\u79f0"),@ApiParam(name="file",title="\u6587\u4ef6",type=FILE,length=-1,memo="\u4e0a\u4f20\u6587\u4ef6\u64cd\u4f5c\uff0c\u8fd4\u56de\u4e0a\u4f20\u6210\u529f\u7684\u6587\u4ef6\u8bbf\u95ee\u8def\u5f84"),@ApiParam(name="cover",title="\u5c01\u9762",type=FILE,length=-1,memo="\u4e0a\u4f20\u6587\u4ef6\u7684\u5c01\u9762\uff0c\u5f53file\u4e3a\u56fe\u7247\u7c7b\u578b\u65f6\u4e0d\u9700\u8981\u4e0a\u4f20cover\u56fe\u7247\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6839\u636efile\u56fe\u7247\u751f\u6210\u5bf9\u5e94\u7684\u7f29\u7565\u56fe\uff0c\u5982\u4e0a\u4f20cover\u65f6\uff0c\u7cfb\u7edfwf\u6839\u636e\u5bf9\u5e94\u53c2\u6570\u751f\u6210\u76f8\u5e94\u5927\u5c0f\u7f29\u7565\u56fe")}) @PostMapping(value="/upload") @ResponseBody public bee.cloud.engine.util.Result upload(@RequestPart(value="file") org.springframework.web.multipart.MultipartFile file, @RequestPart(value="cover") org.springframework.web.multipart.MultipartFile cover)
Copyright © 2023. All rights reserved.