package cn.quant.baa.pay.support;

import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;

import java.util.Optional;

/**
 * <p><b>Enable Auditor Aware:</b><br/>
 * <code>@org.springframework.stereotype.Component("auditorAwareHandler")</code></p>
 * Created by hechao included 2017/9/15.
 * @see cn.quant.baa.pay.jpa.entity
 */
@Component("auditorAwareHandler")
public class AuditorAwareHandler implements AuditorAware<String> {
    @Override
    public Optional<String> getCurrentAuditor() {
        return Optional.of("SYS");
    }
}