package com.app.framework.core.api.utils;

import com.app.framework.core.api.request.ApiLoginUser;

import javax.servlet.http.HttpServletRequest;

/**
 * Api登录用户工具类
 */
public class ApiLoginUserUtils {

    /**
     * 获取Api登录用户
     * @param request
     * @return
     */
    public static ApiLoginUser getLoginUser(HttpServletRequest request) {
        return (ApiLoginUser) request.getAttribute("apiLoginUser");
    }
}
