package com.om.controller.user;

import com.om.entity.dto.AppDiagVersionUpdateDTO;
import com.om.entity.dto.VehicleDates;
import com.om.service.IDiagnosisVersionInfoService;
import com.om.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Slf4j
@Api(tags = "App端诊断程序相关接口")
@RequestMapping("app/diagnosis-version-info")
public class APPDiagnosisVersionInfoController {

    @Resource
    private IDiagnosisVersionInfoService diagnosisVersionInfoService;

    @PostMapping
    @ApiOperation("诊断程序更新")
    public Result<List<VehicleDates>> diagnosisVersionInfoUpdate(@RequestBody AppDiagVersionUpdateDTO dto){
        return diagnosisVersionInfoService.diagnosisVersionInfoUpdate(dto);
    }
}
