sunty
2019-08-02 69267f038f87f411edb92daed0ae67d93ca6c5fd
controllers/sdk.go
@@ -100,6 +100,23 @@
   }
}
// @Router /data/api-v/sdkArg/getSdkArgs [get]
func (sc SdkController) GetSdkArgs(c *gin.Context) {
   sdkId := c.Query("sdkId")
   scope := c.Query("scope")
   if sdkId== "" || scope == ""{
      util.ResponseFormat(c,code.RequestParamError,"参数有误")
      return
   }
   var api dbapi.SdkApi
   b,d := api.GetSdkArgs(sdkId, scope)
   if b{
      util.ResponseFormat(c,code.Success,d)
   } else {
      util.ResponseFormat(c,code.ComError,"查询失败")
   }
}
// @Summary 根据taskId获取算法信息
// @Description 根据taskId获取算法信息
// @Produce json