From aae455cee49fdfb3d61d1388f7d286ae83dd6ee1 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 10 十一月 2023 14:20:49 +0800 Subject: [PATCH] 引入pprof分析性能 --- api/v1/device.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/v1/device.go b/api/v1/device.go index eb079eb..e2d0385 100644 --- a/api/v1/device.go +++ b/api/v1/device.go @@ -56,14 +56,14 @@ ctx.Ok() } -// SetDeviceConfig +// Config // @Tags 璁惧 // @Summary 璁剧疆璁惧涓�浜涢厤缃� // @Produce application/json // @Param object body request.DeviceConfig true "鏌ヨ鍙傛暟" // @Success 200 {object} contextx.Response{} "鎴愬姛" // @Router /v1/device/config [post] -func (slf *DeviceApi) config(c *gin.Context) { +func (slf *DeviceApi) Config(c *gin.Context) { var params request.DeviceConfig ctx, ok := contextx.NewContext(c, ¶ms) if !ok { -- Gitblit v1.8.0