package com.hxhq.controller;

import com.hxhq.common.core.web.controller.BaseController;
import com.hxhq.common.core.web.domain.AjaxResult;
import com.hxhq.dto.ContainerDTO;
import com.hxhq.service.ContainerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 供试品
 * 
 * @author hxhq
 */
@RestController
@RequestMapping("/container")
public class ContainerController extends BaseController
{
    @Autowired
    private ContainerService containerService;

//    /**
//     *
//     * 供试品数据推送至中间库
//     * @param dto
//     * @create 2026/1/29
//     **/
//    @PostMapping("/dataPush")
//    public AjaxResult dataPush(ContainerDTO dto) {
//        containerService.dataPush(dto);
//      return  AjaxResult.success("推送数据成功");
//    }
    /**
     *
     * 供试品数据同步
     * @create 2026/1/29
     **/
    @GetMapping("/dataSync")
    public AjaxResult dataSync() {
        containerService.dataSync();
        return  AjaxResult.success("同步成功");
    }
}
