|
@@ -194,16 +194,16 @@ func (e IceLockerController) Delete(c *gin.Context) {
|
|
e.OK(req.GetId(), "删除成功")
|
|
e.OK(req.GetId(), "删除成功")
|
|
}
|
|
}
|
|
|
|
|
|
-// BatchInsert 批量添加保温箱
|
|
|
|
-// @Summary 批量添加保温箱
|
|
|
|
-// @Description 批量添加保温箱
|
|
|
|
-// @Tags 保温箱
|
|
|
|
|
|
+// BatchInsert 批量添加冷冻柜
|
|
|
|
+// @Summary 批量添加冷冻柜
|
|
|
|
+// @Description 批量添加冷冻柜
|
|
|
|
+// @Tags 冷冻柜
|
|
// @Accept application/json
|
|
// @Accept application/json
|
|
// @Product application/json
|
|
// @Product application/json
|
|
// @Param data body dto.IceLockerBatchInsertReq true "data"
|
|
// @Param data body dto.IceLockerBatchInsertReq true "data"
|
|
// @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/CoolerBox [post]
|
|
|
|
|
|
+// @Router /api/ice-locker/import [post]
|
|
// @Security Bearer
|
|
// @Security Bearer
|
|
func (e IceLockerController) BatchInsert(c *gin.Context) {
|
|
func (e IceLockerController) BatchInsert(c *gin.Context) {
|
|
s := service.IceLocker{}
|
|
s := service.IceLocker{}
|