From 2bd2068c999cda5bda8c0787ed0dcaac6cb7afdb Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期四, 31 十月 2019 13:27:46 +0800 Subject: [PATCH] feat: add system reboot api --- controllers/sdk.go | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/controllers/sdk.go b/controllers/sdk.go index c95e36f..cc76c7b 100644 --- a/controllers/sdk.go +++ b/controllers/sdk.go @@ -5,7 +5,7 @@ uuid "github.com/satori/go.uuid" "webserver/extend/code" "webserver/extend/config" - "webserver/extend/logger" + "basic.com/valib/logger.git" "webserver/extend/util" "github.com/gin-gonic/gin" "webserver/service" @@ -34,10 +34,13 @@ Name string `json:"name"` //鍙傛暟鍚嶇О Type string `json:"type"` //鍙傛暟绫诲瀷(鏁存暟锛屽瓧绗︿覆鎴栨暟缁�) Must bool `json:"must"` //鏄惁蹇呭~ + Unit string `json:"unit"` Range string `json:"range"` //鍊肩殑鑼冨洿锛宔g锛�0,100琛ㄧず浠�0鍒�100 + DefaultValue string `json:"default_value"` Sort int `json:"sort"` //鍙傛暟椤哄簭 } +// @Security ApiKeyAuth // @Summary 绠楁硶淇濆瓨 // @Description 绠楁硶淇濆瓨 // @Produce json @@ -63,6 +66,7 @@ } } +// @Security ApiKeyAuth // @Summary 鏌ユ壘鎵�鏈夌畻娉� // @Description 鏌ユ壘鎵�鏈夌畻娉� // @Produce json @@ -79,6 +83,7 @@ util.ResponseFormat(c, code.Success, sdks) } +// @Security ApiKeyAuth // @Summary 鏍规嵁id鑾峰彇绠楁硶淇℃伅 // @Description 鏍规嵁id鑾峰彇绠楁硶淇℃伅 // @Produce json @@ -121,6 +126,7 @@ } } +// @Security ApiKeyAuth // @Summary 鏍规嵁taskId鑾峰彇绠楁硶淇℃伅 // @Description 鏍规嵁taskId鑾峰彇绠楁硶淇℃伅 // @Produce json -- Gitblit v1.8.0