liujiandao
2023-09-20 726662cd89d0fe6b24461c850495db8c37a3e8f1
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(&params); 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 {