From f4508a84236a4aff1c7b5bfa17a14a8ff95728ba Mon Sep 17 00:00:00 2001
From: yinbentan <yinbentan@live.com>
Date: 星期一, 08 七月 2024 09:45:10 +0800
Subject: [PATCH] 接口调用报错处理

---
 controllers/attribute.go |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/controllers/attribute.go b/controllers/attribute.go
index a2cc273..6949c1f 100644
--- a/controllers/attribute.go
+++ b/controllers/attribute.go
@@ -144,14 +144,14 @@
 
 // ListAttribute
 // @Tags      灞炴�у�煎拰瀵硅薄
-// @Summary   鏌ヨ灞炴�у�煎拰瀵硅薄
+// @Summary   娣诲姞灞炴�у�煎拰瀵硅薄
 // @Produce   application/json
-// object  body  request.GetAttributeList true  "鏌ヨ鍙傛暟"
+// @Param     object  body  request.AttributeList true  "灞炴�у�煎拰瀵硅薄淇℃伅"
 // @Success   200 {object} util.Response "鎴愬姛"
-// @Router    /api-wms/v1/attribute/list [post]
+// @Router    /api-wms/v1/attribute/attribute [get]
 func (slf AttributeController) ListAttribute(c *gin.Context) {
-	var params request.GetAttributeList
-	if err := c.ShouldBindQuery(&params); err != nil {
+	var params request.AttributeList
+	if err := c.ShouldBind(&params); err != nil {
 		util.ResponseFormat(c, code.RequestParamError, err.Error())
 		return
 	}

--
Gitblit v1.8.0