From 726662cd89d0fe6b24461c850495db8c37a3e8f1 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 20 九月 2023 14:16:04 +0800 Subject: [PATCH] 作业类型路径修改 --- controllers/operation_type.go | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/operation_type.go b/controllers/operation_type.go index b2d5dc3..03bf227 100644 --- a/controllers/operation_type.go +++ b/controllers/operation_type.go @@ -22,7 +22,7 @@ // @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 @@ -55,7 +55,7 @@ // @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 { @@ -107,7 +107,7 @@ // @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 { @@ -129,7 +129,7 @@ // @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