From 1773bcb483d0a1c06e45a6e748719cb24818ee4a Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 01 十一月 2023 11:41:50 +0800 Subject: [PATCH] fix --- api/v1/device.go | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/v1/device.go b/api/v1/device.go index ab7f965..ee652be 100644 --- a/api/v1/device.go +++ b/api/v1/device.go @@ -16,14 +16,14 @@ type DeviceApi struct{} -// Set +// SetCurrentDeviceId // @Tags 璁惧 // @Summary 璁剧疆褰撳墠璁惧id // @Produce application/json // @Param object body request.SetCurrentDevice true "鏌ヨ鍙傛暟" // @Success 200 {object} contextx.Response{} "鎴愬姛" -// @Router /v1/device/set [post] -func (slf *DeviceApi) Set(c *gin.Context) { +// @Router /v1/device/setCurrentDeviceId [post] +func (slf *DeviceApi) SetCurrentDeviceId(c *gin.Context) { var params request.SetCurrentDevice ctx, ok := contextx.NewContext(c, ¶ms) if !ok { @@ -57,11 +57,11 @@ } // DeviceList -// @Tags Device +// @Tags 璁惧 // @Summary 鑾峰彇褰撳墠闈㈡澘缁戝畾鐨勮澶囧垪琛� // @Produce application/json // @Success 200 {object} contextx.Response{data=response.DeviceListResponse} "鎴愬姛" -// @Router /v1/device/list [post] +// @Router /v1/device/list [get] func (slf *DeviceApi) DeviceList(c *gin.Context) { ctx, ok := contextx.NewContext(c, nil) if !ok { -- Gitblit v1.8.0