You need to sign in or sign up before continuing.
EntmicroLoginRemoteImpl.java 1.04 KB
package cn.com.glsx.entmicro.remote;

import cn.com.glsx.entmicro.service.EntmicroLoginService;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author zhouhaibao
 * @version 1.0
 * @description: 查询登录信息
 * @date 2021/10/14 13:07
 */
@Component
@Service(version = "1.0.0", protocol = "dubbo", timeout = 10000)
public class EntmicroLoginRemoteImpl implements EntmicroLoginRemote {

    @Autowired
    private EntmicroLoginService entmicroLoginService;

    @Override
    public RpcResponse<Boolean> findLoginCount(String loginAccount,Integer loginType) {
        try {
            Boolean flag = entmicroLoginService.findLoginCount(loginAccount,loginType);
            return RpcResponse.success(flag);
        } catch (RpcServiceException e) {
            return RpcResponse.error(e);
        }
    }
}