package com.xunhong.erp.turbo.facade.app.service;

import com.xunhong.erp.turbo.api.facade.api.WxMpServiceI;
import com.xunhong.erp.turbo.api.facade.dto.cmd.WxMpCallbackCmd;
import com.xunhong.erp.turbo.facade.app.executor.cmd.WxMpCallbackCmdExe;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService(interfaceClass = WxMpServiceI.class, version = "1.0.0")
@RequiredArgsConstructor
public class WxMpServiceImpl implements WxMpServiceI {

	private final WxMpCallbackCmdExe wxMpCallbackCmdExe;

	@Override
	public String callback(WxMpCallbackCmd wxMpCallbackCmd) {
		return wxMpCallbackCmdExe.execute(wxMpCallbackCmd);
	}
}
