package com.muyu.server.controller;
import com.muyu.common.core.domain.Result;
import com.muyu.server.service.FaultLabelService;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 故障项选择控制层
 * @Author：weiran
 * @Package：com.muyu.cloud.faultmanage.controller
 * @Project：cloud-server-8
 * @name：FaultTypeController
 * @Date：2024/9/18 20:58
 */


@RestController
@RequestMapping("/faultlabel")
public class FaultLabelController {

    @Autowired
    private FaultLabelService faultLabelService;


    /**
     * 故障名称
     * @return
     */
    @PostMapping("/list")
    @Operation(summary = "故障名称查询",description = "故障名称信息")
    public Result findfaulttype(){
        return Result.success(faultLabelService.select());
    }
}
