package com.hdkj.lt.job.controller;

import com.hdkj.hussar.ApiResponse;
import com.hdkj.lt.job.service.impl.DealFeederBaseServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rj
 * @date 2025/12/23 15:36
 * @description
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/feederBase")
public class DealFeederBaseController {


    private final DealFeederBaseServiceImpl dealFeederBaseServiceImpl;

    @GetMapping("/update")
    public ApiResponse<String> updateFeederBase() {
        dealFeederBaseServiceImpl.dealFeederBase();
        return ApiResponse.success("获取电网资源业务中台线路基础数据并保存数据操作成功");
    }

}
