/// <summary>
 /// 获取当前用户。
 /// </summary>
 /// <param name="workContext">工作上下文。</param>
 /// <returns>用户实例。</returns>
 public static IUser GetCurrentUser(this WorkContext workContext)
 {
     return(workContext.GetCurrentUser <IUser>());
 }