All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mzt.logapi.service.impl.DefaultOperatorGetServiceImpl Maven / Gradle / Ivy

There is a newer version: 3.0.6-oxadmin
Show newest version
package com.mzt.logapi.service.impl;


import com.mzt.logapi.beans.Operator;
import com.mzt.logapi.service.IOperatorGetService;

/**
 * @author muzhantong
 * create on 2020/4/29 5:45 下午
 */
public class DefaultOperatorGetServiceImpl implements IOperatorGetService {

    @Override
    public Operator getUser() {
        // return Optional.ofNullable(UserUtils.getUser())
        //                .map(a -> new Operator(a.getName(), a.getLogin()))
        //                .orElseThrow(()->new IllegalArgumentException("user is null"));
        Operator operator = new Operator();
        operator.setOperatorId("111");
        return operator;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy