package net.lab1024.sa.admin.util;

import net.lab1024.sa.admin.module.system.login.domain.RequestEmployee;
import net.lab1024.sa.base.common.domain.RequestUser;
import net.lab1024.sa.base.common.util.SmartRequestUtil;

/**
 * admin 端的请求工具类
 *
 * @Author YouChain-yaozz
 * @Date 2023/7/28 19:39:21
 * @Email huoj@youchain56.com
 * @Copyright  <a href="https://YouChain56.com">YouChain</a>，Since 2012
 */
public final class AdminRequestUtil {


    public static RequestEmployee getRequestUser() {
        return (RequestEmployee) SmartRequestUtil.getRequestUser();
    }

    public static Long getRequestUserId() {
        RequestUser requestUser = getRequestUser();
        return null == requestUser ? null : requestUser.getUserId();
    }


}
