package com.xunhong.erp.turbo.user.app.executor.cmd;

import com.xunhong.erp.turbo.api.user.dto.cmd.EmployeeRestPasswordCmd;
import com.xunhong.erp.turbo.user.domain.gateway.UserAuthGateway;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author shenyifei
 */
@Slf4j
@Component
@RequiredArgsConstructor
public class EmployeeRestPasswordCmdExe {

	private final UserAuthGateway userAuthGateway;

	public void execute(EmployeeRestPasswordCmd employeeRestPasswordCmd) {
		userAuthGateway.restPassword(employeeRestPasswordCmd);
	}
}
