wuyouming666
2024-04-17 e8005cc7b6caaa85c7fc99cc87e3877516f777d9
hangzhoumesParent/moduleService/UnLoadGlassModule/src/main/java/com/mes/downstorage/controller/DownStorageCageDetailsController.java
@@ -1,21 +1,30 @@
package com.mes.downstorage.controller;
import com.mes.downstorage.entity.DownStorageCageDetails;
import com.mes.downstorage.service.DownStorageCageDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.List;
import java.util.Map;
import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhoush
 * @since 2024-03-27
 */
@RestController
@RequestMapping("/downStorageCageDetails")
@RequestMapping("/api/unLoadGlass/downstorage")
public class DownStorageCageDetailsController {
}
    @Autowired
    private DownStorageCageDetailsService downStorageCageDetailsService;
    @PostMapping("/add")
    public String addDownStorageCageDetails(@RequestBody DownStorageCageDetails details) {
        downStorageCageDetailsService.addDownStorageCageDetails(details);
        return "Details added successfully";
    }
    @GetMapping("/leisure")
    public List<Map<String, Object>> getLeisureData() {
        return downStorageCageDetailsService.selectCacheLeisure();
    }
    // Other CRUD operations can be defined here
}