From a07fc02a9f0aa49aaaf273f5ff9cce4c6d546de9 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期四, 21 九月 2023 15:25:36 +0800
Subject: [PATCH] 位置字段添加
---
controllers/operation_type.go | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/controllers/operation_type.go b/controllers/operation_type.go
index b2d5dc3..3d21412 100644
--- a/controllers/operation_type.go
+++ b/controllers/operation_type.go
@@ -17,12 +17,12 @@
type OperationTypeController struct{}
// Add
-// @Tags 浣滀笟绫诲瀷
+// @Tags 涓氬姟绫诲瀷
// @Summary 娣诲姞浣滀笟绫诲瀷
// @Produce application/json
// @Param object body request.AddOperationType true "浣滀笟绫诲瀷淇℃伅"
// @Success 200 {object} util.Response "鎴愬姛"
-// @Router /api-wms/v1/warehouse/operationType [post]
+// @Router /api-wms/v1/operationType/operationType [post]
func (slf OperationTypeController) Add(c *gin.Context) {
var reqParams request.AddOperationType
var params models.OperationType
@@ -49,13 +49,13 @@
}
// Update
-// @Tags 浣滀笟绫诲瀷
+// @Tags 涓氬姟绫诲瀷
// @Summary 缂栬緫浣滀笟绫诲瀷
// @Produce application/json
// @Param object body request.UpdateOperationType true "浣滀笟绫诲瀷淇℃伅"
// @Param id path string true "浣滀笟绫诲瀷id"
// @Success 200 {object} util.Response "鎴愬姛"
-// @Router /api-wms/v1/warehouse/operationType/{id} [put]
+// @Router /api-wms/v1/operationType/operationType/{id} [put]
func (slf OperationTypeController) Update(c *gin.Context) {
id := cast.ToUint(c.Param("id"))
if id == 0 {
@@ -102,12 +102,12 @@
}
// List
-// @Tags 浣滀笟绫诲瀷
+// @Tags 涓氬姟绫诲瀷
// @Summary 鏌ヨ浣滀笟绫诲瀷鍒楄〃
// @Produce application/json
// @Param object query request.GetOperationTypeList true "鏌ヨ鍙傛暟"
// @Success 200 {object} util.ResponseList{data=[]models.OperationType} "鎴愬姛"
-// @Router /api-wms/v1/warehouse/operationType [get]
+// @Router /api-wms/v1/operationType/operationType [get]
func (slf OperationTypeController) List(c *gin.Context) {
var params request.GetOperationTypeList
if err := c.ShouldBindQuery(¶ms); err != nil {
@@ -124,12 +124,12 @@
}
// Delete
-// @Tags 浣滀笟绫诲瀷
+// @Tags 涓氬姟绫诲瀷
// @Summary 鍒犻櫎浣滀笟绫诲瀷
// @Produce application/json
// @Param id path string true "浣滀笟绫诲瀷id"
// @Success 200 {object} util.Response "鎴愬姛"
-// @Router /api-wms/v1/warehouse/operationType/{id} [delete]
+// @Router /api-wms/v1/operationType/operationType/{id} [delete]
func (slf OperationTypeController) Delete(c *gin.Context) {
id := cast.ToUint(c.Param("id"))
if id == 0 {
--
Gitblit v1.8.0