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

import com.xunhong.erp.turbo.api.facade.api.WxCpServiceI;
import com.xunhong.erp.turbo.api.facade.api.WxMpServiceI;
import com.xunhong.erp.turbo.api.facade.dto.cmd.WxCpNotifyCmd;
import com.xunhong.erp.turbo.facade.app.executor.cmd.WxMaNotifyCmdExe;
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 WxCpServiceImpl implements WxCpServiceI {

	private final WxMaNotifyCmdExe wxMaNotifyCmdExe;

	@Override
	public void notify(WxCpNotifyCmd wxCpNotifyCmd) {
		wxMaNotifyCmdExe.execute(wxCpNotifyCmd);
	}
}
