package com.dcs.equipment.controller;

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

/**
 * @author: wangpx
 * @date: 2025-05-06 09:01
 */
@Api
@RestController
@RequestMapping("/datatwin")
public class DataTwinController {
    @Autowired
    private DataTwinService service;

    @RequestMapping("/list")
    public AjaxResult list() {
        return AjaxResult.success(service.selectDataTwinList());
    }
}
