|
@@ -16,11 +16,11 @@ type GasCylinderSpecController struct {
|
|
api.Api
|
|
api.Api
|
|
}
|
|
}
|
|
|
|
|
|
-// GetPage 获取派费列表
|
|
|
|
-// @Summary 获取派费列表
|
|
|
|
-// @Description 获取派费列表
|
|
|
|
-// @Tags 派费
|
|
|
|
-// @Param deptName query string false "派费名称"
|
|
|
|
|
|
+// GetPage 获取钢瓶规格列表
|
|
|
|
+// @Summary 获取钢瓶规格列表
|
|
|
|
+// @Description 获取钢瓶规格列表
|
|
|
|
+// @Tags 钢瓶规格
|
|
|
|
+// @Param name query string false "钢瓶规格名称"
|
|
// @Success 200 {object} response.Response{data=response.Page{list=[]model.GasCylinderSpec}} "{"code": 200, "data": [...]}"
|
|
// @Success 200 {object} response.Response{data=response.Page{list=[]model.GasCylinderSpec}} "{"code": 200, "data": [...]}"
|
|
// @Router /api/dispatch-cost [get]
|
|
// @Router /api/dispatch-cost [get]
|
|
// @Security Bearer
|
|
// @Security Bearer
|
|
@@ -52,11 +52,11 @@ func (e GasCylinderSpecController) GetPage(c *gin.Context) {
|
|
e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
|
|
e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
|
|
}
|
|
}
|
|
|
|
|
|
-// Get 通过id获取派费
|
|
|
|
-// @Summary 通过id获取派费
|
|
|
|
-// @Description 通过id获取派费
|
|
|
|
-// @Tags 派费
|
|
|
|
-// @Param id path string true "派费id"
|
|
|
|
|
|
+// Get 通过id获取钢瓶规格
|
|
|
|
+// @Summary 通过id获取钢瓶规格
|
|
|
|
+// @Description 通过id获取钢瓶规格
|
|
|
|
+// @Tags 钢瓶规格
|
|
|
|
+// @Param id path string true "钢瓶规格id"
|
|
// @Success 200 {object} response.Response{data=model.GasCylinderSpec} "{"code": 200, "data": [...]}"
|
|
// @Success 200 {object} response.Response{data=model.GasCylinderSpec} "{"code": 200, "data": [...]}"
|
|
// @Router /api/dispatch-cost/{id} [get]
|
|
// @Router /api/dispatch-cost/{id} [get]
|
|
// @Security Bearer
|
|
// @Security Bearer
|
|
@@ -86,13 +86,15 @@ func (e GasCylinderSpecController) Get(c *gin.Context) {
|
|
e.OK(object, "查询成功")
|
|
e.OK(object, "查询成功")
|
|
}
|
|
}
|
|
|
|
|
|
-// Insert 添加派费
|
|
|
|
-// @Summary 添加派费
|
|
|
|
-// @Description 添加派费
|
|
|
|
-// @Tags 派费
|
|
|
|
|
|
+// Insert 添加钢瓶规格
|
|
|
|
+// @Summary 添加钢瓶规格
|
|
|
|
+// @Description 添加钢瓶规格
|
|
|
|
+// @Tags 钢瓶规格
|
|
// @Accept application/json
|
|
// @Accept application/json
|
|
// @Product application/json
|
|
// @Product application/json
|
|
// @Param data body dto.GasCylinderSpecInsertReq true "data"
|
|
// @Param data body dto.GasCylinderSpecInsertReq true "data"
|
|
|
|
+// @Param pageSize query int false "页条数"
|
|
|
|
+// @Param page query int false "页码"
|
|
// @Success 200 {string} string "{"code": 200, "message": "添加成功"}"
|
|
// @Success 200 {string} string "{"code": 200, "message": "添加成功"}"
|
|
// @Success 200 {string} string "{"code": -1, "message": "添加失败"}"
|
|
// @Success 200 {string} string "{"code": -1, "message": "添加失败"}"
|
|
// @Router /api/dispatch-cost [post]
|
|
// @Router /api/dispatch-cost [post]
|
|
@@ -122,10 +124,10 @@ func (e GasCylinderSpecController) Insert(c *gin.Context) {
|
|
e.OK(req.GetId(), "创建成功")
|
|
e.OK(req.GetId(), "创建成功")
|
|
}
|
|
}
|
|
|
|
|
|
-// Update 修改派费
|
|
|
|
-// @Summary 修改派费
|
|
|
|
-// @Description 修改派费
|
|
|
|
-// @Tags 派费
|
|
|
|
|
|
+// Update 修改钢瓶规格
|
|
|
|
+// @Summary 修改钢瓶规格
|
|
|
|
+// @Description 修改钢瓶规格
|
|
|
|
+// @Tags 钢瓶规格
|
|
// @Accept application/json
|
|
// @Accept application/json
|
|
// @Product application/json
|
|
// @Product application/json
|
|
// @Param data body dto.GasCylinderSpecUpdateReq true "body"
|
|
// @Param data body dto.GasCylinderSpecUpdateReq true "body"
|
|
@@ -157,10 +159,10 @@ func (e GasCylinderSpecController) Update(c *gin.Context) {
|
|
e.OK(req.GetId(), "更新成功")
|
|
e.OK(req.GetId(), "更新成功")
|
|
}
|
|
}
|
|
|
|
|
|
-// Delete 删除派费
|
|
|
|
-// @Summary 删除派费
|
|
|
|
-// @Description 删除派费
|
|
|
|
-// @Tags 派费
|
|
|
|
|
|
+// Delete 删除钢瓶规格
|
|
|
|
+// @Summary 删除钢瓶规格
|
|
|
|
+// @Description 删除钢瓶规格
|
|
|
|
+// @Tags 钢瓶规格
|
|
// @Accept application/json
|
|
// @Accept application/json
|
|
// @Product application/json
|
|
// @Product application/json
|
|
// @Param data body dto.GasCylinderSpecDeleteReq true "body"
|
|
// @Param data body dto.GasCylinderSpecDeleteReq true "body"
|