package com.ruoyi.rocketmq.controller;

import com.ruoyi.common.core.web.controller.BaseController;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import com.ruoyi.rocketmq.domain.RmResourceRemote;
import com.ruoyi.rocketmq.service.IRmResourceRemoteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 资源远程管理Controller
 * 
 * @author gyt
 * @date 2025-09-15
 */
@RestController
@RequestMapping("/remote")
public class RmResourceRemoteController extends BaseController
{
    @Autowired
    private IRmResourceRemoteService rmResourceRemoteService;


    /**
     * 获取资源远程管理详细信息
     */
    @RequiresPermissions("rocketmq:remote:query")
    @PostMapping(value = "/getScriptResultBySn")
    public AjaxResult getScriptResultBySn(@RequestBody RmResourceRemote rmResourceRemote)
    {
        return success(rmResourceRemoteService.getScriptResultBySn(rmResourceRemote));
    }


}
