From 4a487856cbf3c307f6ef6b2a59e9e67065666731 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 21 六月 2024 20:49:09 +0800
Subject: [PATCH] fix 404
---
controllers/attribute.go | 2 +-
router/router.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/controllers/attribute.go b/controllers/attribute.go
index 7e804aa..6949c1f 100644
--- a/controllers/attribute.go
+++ b/controllers/attribute.go
@@ -148,7 +148,7 @@
// @Produce application/json
// @Param object body request.AttributeList true "灞炴�у�煎拰瀵硅薄淇℃伅"
// @Success 200 {object} util.Response "鎴愬姛"
-// @Router /api-wms/v1/attribute/attribute [post]
+// @Router /api-wms/v1/attribute/attribute [get]
func (slf AttributeController) ListAttribute(c *gin.Context) {
var params request.AttributeList
if err := c.ShouldBind(¶ms); err != nil {
diff --git a/router/router.go b/router/router.go
index 81695c8..eaf1996 100644
--- a/router/router.go
+++ b/router/router.go
@@ -73,7 +73,7 @@
attributeAPI.POST("attribute", attributeController.Add) // 娣诲姞灞炴��
attributeAPI.PUT("updateAttribute/:id", attributeController.Update) // 淇敼灞炴��
attributeAPI.DELETE("delete/:id", attributeController.Delete) // 鍒犻櫎灞炴��
- attributeAPI.POST("attribute", attributeController.ListAttribute) // 鑾峰彇灞炴��
+ attributeAPI.GET("attribute", attributeController.ListAttribute) // 鑾峰彇灞炴��
attributeAPI.GET("primary/:id", attributeController.PrimaryAttribute) //鍒犻櫎
//attributeAPI.GET("attribute/:id", attributeController.GetAttributeDetail) // 鑾峰彇灞炴��
}
--
Gitblit v1.8.0