liuxiaolong
2020-06-09 2bccdd76da9afabd1af9f1a640c083d9881fb17f
add swagger
1个文件已修改
9 ■■■■■ 已修改文件
controllers/sdk.go 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/sdk.go
@@ -274,6 +274,15 @@
    }
}
// @Security ApiKeyAuth
// @Summary 从商城下载或升级算法
// @Description 从商城下载或升级算法
// @Produce json
// @Tags sysset
// @Param path query string true "算法id"
// @Success 200 {string} json "{"code":200, msg:"", success:true}"
// @Failure 500 {string} json "{"code":500, msg:"", success:false}"
// @Router /data/api-v/sdk/sdkDownload [get]
func (sc SdkController) SdkDownLoad(c *gin.Context) {
    sdkId, exist := c.GetQuery("path")
    if !exist {