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

import com.xunhong.erp.turbo.api.infra.api.SettingServiceI;
import com.xunhong.erp.turbo.api.infra.dto.cmd.SettingUpdateCmd;
import com.xunhong.erp.turbo.api.infra.dto.qry.SettingShowQry;
import com.xunhong.erp.turbo.api.infra.dto.vo.SettingVO;
import com.xunhong.erp.turbo.infra.app.executor.cmd.SettingUpdateCmdExe;
import com.xunhong.erp.turbo.infra.app.executor.query.SettingShowQryExe;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * @author shenyifei
 */
@Slf4j
@Service
@DubboService(interfaceClass = SettingServiceI.class, version = "1.0.0")
@RequiredArgsConstructor
public class SettingServiceImpl implements SettingServiceI {

	private final SettingUpdateCmdExe settingUpdateCmdExe;
	private final SettingShowQryExe settingShowQryExe;


	@Override
	public SettingVO update(SettingUpdateCmd settingUpdateCmd) {
		return settingUpdateCmdExe.execute(settingUpdateCmd);
	}

	@Override
	public SettingVO show(SettingShowQry settingShowQry) {
		return settingShowQryExe.execute(settingShowQry);
	}
}

