namespace Admin.NET.Application { /// /// 系统帮助类 /// public class SysHelper { /// /// 获取登录人的昵称 /// /// public static string GetUserName() { return CurrentUserInfo.Name; } /// /// 获取登录人的用户id /// /// public static long GetUserId() { return CurrentUserInfo.UserId; } /// /// 获取当前时间 /// /// public static DateTime GetNowTime() { return DateTime.Now; } } }