package com.dcs.equipment.controller;

import com.dcs.common.core.domain.AjaxResult;
import com.dcs.equipment.service.DeviceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.dcs.common.core.domain.AjaxResult.success;

/**
 * @author: LaFantasque
 * @date: 2025-06-30 22:28
 */
@Api(tags = "设备模块")
@RestController
@RequestMapping("/device")
public class DeviceController {

    @Autowired
    private DeviceService service;

    @GetMapping("/updateEquipmentCodes")
    @ApiOperation(value = "更新设备列表")
    public AjaxResult updateEquipmentCodes() {
        service.updateEquipmentCodes();
        return success();
    }
}
