当前位置:   article > 正文

swagger json参数动态注解@DynamicParameters

@dynamicparameters

@DynamicParameters、@DynamicParameter

  1. @ApiOperation("批量更新")
  2. @DynamicParameters(name = "jsonObject",properties = {
  3. @DynamicParameter(name = "serviceId",value = "应用id,多个用逗号分隔",required = true,dataTypeClass = String.class),
  4. @DynamicParameter(name = "userIds",value = "用户id,多个用逗号分隔",required = true,dataTypeClass = String.class),
  5. @DynamicParameter(name = "status",value = "授权状态:0拒绝,1允许",required = true,example = "1",dataTypeClass = Integer.class),
  6. })
  7. @PostMapping(value = "/update")
  8. public Result<?> update(@RequestBody JSONObject jsonObject)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/897755
推荐阅读
相关标签
  

闽ICP备14008679号