前言
- 若依(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