(c *gin.Context)
| 8 | ) |
| 9 | |
| 10 | func GetRatioConfig(c *gin.Context) { |
| 11 | if !ratio_setting.IsExposeRatioEnabled() { |
| 12 | c.JSON(http.StatusForbidden, gin.H{ |
| 13 | "success": false, |
| 14 | "message": "倍率配置接口未启用", |
| 15 | }) |
| 16 | return |
| 17 | } |
| 18 | |
| 19 | c.JSON(http.StatusOK, gin.H{ |
| 20 | "success": true, |
| 21 | "message": "", |
| 22 | "data": ratio_setting.GetExposedData(), |
| 23 | }) |
| 24 | } |
nothing calls this directly
no test coverage detected