package com.hdkj.lt.si.controller.setting;


import com.hdkj.lt.core.mvc.BaseController;
import com.hdkj.lt.modle.dto.setting.DeviceSettingDTO;
import com.hdkj.lt.modle.vo.setting.DeviceSettingVO;
import com.hdkj.lt.si.service.setting.FhzgSwitchProtectionSettingsTyptService;
import com.hdkj.hussar.ApiResponse;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.List;

/**
 * @Description:
 * @Author: wenhao
 * @Create: 2024/03/22 15:35
 * @Version: 1.0
 */
@RestController
@AllArgsConstructor
@RequestMapping("/ext/device")
public class ExtDeviceController extends BaseController {

    private final FhzgSwitchProtectionSettingsTyptService fhzgSwitchProtectionSettingsService;


    @PostMapping(value = "/setting")
//    @AuditLog(moduleName = "设备信息", eventDesc = "查询设备责任链", eventGrade = AuditEventGrade.SYSTEM_LOG_TYPE, evnetType = AuditEventType.QUERY)
    public ApiResponse<List<DeviceSettingVO>> getDeviceSetting(@Valid @RequestBody DeviceSettingDTO queryDTO) {
        return data(fhzgSwitchProtectionSettingsService.getDeviceSetting(queryDTO));
    }

}
