package com.ruoyi.jarvis.service.goofish;

import com.alibaba.fastjson2.JSONObject;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class GoofishNotifyAsyncFacade {

    @Resource
    private GoofishOrderPipeline goofishOrderPipeline;

    @Async("goofishTaskExecutor")
    public void afterNotify(String appid, JSONObject body) {
        goofishOrderPipeline.runFullPipeline(appid, body);
    }
}
