| | |
| | | Name string `json:"name"` //参数名称 |
| | | Type string `json:"type"` //参数类型(整数,字符串或数组) |
| | | Must bool `json:"must"` //是否必填 |
| | | Unit string `json:"unit"` |
| | | Range string `json:"range"` //值的范围,eg:0,100表示从0到100 |
| | | DefaultValue string `json:"default_value"` |
| | | Sort int `json:"sort"` //参数顺序 |
| | | } |
| | | |
| | |
| | | |
| | | // @Router /data/api-v/sdkArg/getSdkArgs [get] |
| | | func (sc SdkController) GetSdkArgs(c *gin.Context) { |
| | | sdkId := c.Param("sdkId") |
| | | scope := c.Param("scope") |
| | | sdkId := c.Query("sdkId") |
| | | scope := c.Query("scope") |
| | | if sdkId== "" || scope == ""{ |
| | | util.ResponseFormat(c,code.RequestParamError,"参数有误") |
| | | return |