mirror of https://github.com/longtai-cn/hippo4j
parent
d0f3e2c6a4
commit
5f68ec2e0c
@ -0,0 +1,22 @@
|
||||
package cn.hippo4j.config.service.handler;
|
||||
|
||||
import cn.hippo4j.common.toolkit.UserContext;
|
||||
import cn.hippo4j.tools.logrecord.model.Operator;
|
||||
import cn.hippo4j.tools.logrecord.service.OperatorGetService;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* Custom operator get service.
|
||||
*
|
||||
* @author chen.ma
|
||||
* @date 2021/11/28 17:57
|
||||
*/
|
||||
@Component
|
||||
public class CustomOperatorGetServiceImpl implements OperatorGetService {
|
||||
|
||||
@Override
|
||||
public Operator getUser() {
|
||||
return new Operator(UserContext.getUserName());
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue