【若依(ruoyi)】swagger 接口 @ApiModelProperty 添加枚举值说明
生活随笔
收集整理的這篇文章主要介紹了
【若依(ruoyi)】swagger 接口 @ApiModelProperty 添加枚举值说明
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
前言
- 若依(ruoyi): v4.3
- swagger 1.5.21 (https://github.com/swagger-api/swagger-core)
- 在 @ApiModelProperty 中該如何添加枚舉值說明。比如,這樣:
@ApiModelProperty
@ApiModelProperty(value = "單據狀態( 0,全部;1, 審批中;2, 已審批)", required = true, allowableValues = "0,1,2") private Integer status = 0;參考
https://juejin.im/post/6844903845697421319
https://blog.csdn.net/jinhf10/article/details/106212531
總結
以上是生活随笔為你收集整理的【若依(ruoyi)】swagger 接口 @ApiModelProperty 添加枚举值说明的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ROG 八爪鱼 7 Wi-Fi 7 路由
- 下一篇: 消息称字节跳动旗下 PICO 第一方 V