当前位置:   article > 正文

SwaggerObject类型参数以及使用反射的基本写法_c# swagger object类型

c# swagger object类型
    @ApiOperation(value = "分页查看用户列表",notes = "分页查看用户列表")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", value = "当前页码",required = true),
            @ApiImplicitParam(paramType = "query", name = "pageSize", value = "每页行数",required = true),
    })
    @PostMapping("/find/page")
    public HttpResult find(int pageNum, int pageSize, @RequestBody SysUser sysUser){
        Map<String, Object> map = new HashMap<>();
        map.put("sysUser",sysUser);
        PageRequest pageRequest = new PageRequest(pageNum, pageSize, map);
        PageResult pageResult = sysUserService.findPage(pageRequest);
        return HttpResult.ok(pageResult);
    }

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号