From fc91703f3cbee4dac9e56c3da694fccb386f4ce3 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期三, 29 七月 2020 19:30:54 +0800 Subject: [PATCH] add showInstallInfo --- controllers/sdk.go | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/controllers/sdk.go b/controllers/sdk.go index d51c02c..3327309 100644 --- a/controllers/sdk.go +++ b/controllers/sdk.go @@ -275,6 +275,26 @@ } // @Security ApiKeyAuth +// @Summary 涓婁紶瀹屾垚鑾峰彇瀹夎淇℃伅 +// @Description 涓婁紶瀹屾垚鑾峰彇瀹夎淇℃伅 +// @Produce json +// @Tags 绠楁硶 +// @Param identifier formData string true "鏁翠釜鏂囦欢鐨勫敮涓�鏍囪瘑锛岀洰鍓嶆槸md5" +// @Success 200 {string} json "{"code":200, msg:"", success:true}" +// @Failure 500 {string} json "{"code":500, msg:"", success:false}" +// @Router /data/api-v/sdk/showInstallInfo [post] +func (sc SdkController) ShowInstallInfo(c *gin.Context) { + identifier := c.Request.FormValue("identifier") + var sv service.SdkInstallService + b,d := sv.ShowInstallInfo(identifier) + if b { + util.ResponseFormat(c,code.Success, d) + } else { + util.ResponseFormat(c,code.ComError, "鑾峰彇澶辫触") + } +} + +// @Security ApiKeyAuth // @Summary 涓婁紶瀹屾垚寮�濮嬪畨瑁� // @Description 涓婁紶瀹屾垚寮�濮嬪畨瑁� // @Produce json -- Gitblit v1.8.0