package com.hdkj.lt.bf.controller;

import com.hdkj.lt.base.model.response.PageVO;
import com.hdkj.lt.bf.entity.dto.SwitchProtectionRecommendRequest;
import com.hdkj.lt.bf.entity.vo.SwitchProtectionRecommendVO;
import com.hdkj.lt.bf.service.FhzgTransferSchemeSwitchProtectionRecommendService;
import com.hdkj.hussar.ApiResponse;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rj
 * @date 2025/7/12 18:13
 * @description
 */
@RestController
@RequestMapping("/transferSchemeSwitchProtectionRecommend")
@RequiredArgsConstructor
public class TransferSchemeSwitchProtectionRecommendController {
    private final FhzgTransferSchemeSwitchProtectionRecommendService transferSchemeSwitchProtectionRecommendService;

    @PostMapping("/getSwitchProtectionRecommendBySchemeId")
    @ApiOperation(value = "故障获取保护定值推荐列表")
    public ApiResponse<PageVO<SwitchProtectionRecommendVO>> getSwitchProtectionRecommendBySchemeId(@RequestBody SwitchProtectionRecommendRequest switchProtectionRecommendRequest) {
        return ApiResponse.success(transferSchemeSwitchProtectionRecommendService.getSwitchProtectionRecommendBySchemeId(switchProtectionRecommendRequest));
    }
}
