MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetRatioConfig

Function GetRatioConfig

controller/ratio_config.go:10–24  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

8)
9
10func 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}

Callers

nothing calls this directly

Calls 2

IsExposeRatioEnabledFunction · 0.92
GetExposedDataFunction · 0.92

Tested by

no test coverage detected