Swagger要传送对象作为参数,只需添加@ModelAttribute或@RequestBody
@RestController @RequestMapping("/api/json/resourceHome") @Api(value="/api/json/resourceHome",description="资源客户端首页API") public class ResourceClientHomeController { @RequestMapping(value = "/getZyHome", method ={RequestMethod.POST} ) @ApiOperation(value = "获取资源客户端首页信息", notes = "获取资源客户端首页信息") public Result<ZyHomeVo> getZyHome(@ModelAttribute AppDevice appDevice,@ModelAttribute AppUser appUser)
时间: 2024-10-19 09:06:09