using learun.database; using learun.util; namespace learun.application { /// /// 版 本 EasyCode EC管理后台 /// Copyright (c) 2019-present EC管理有限公司 /// 创建人:tobin /// 日 期:2020.04.20 /// 描 述:服务基类 /// public class ServiceBase : RepositoryFactory { /// /// 获取登录者用户名称 /// /// public string GetUserName() { return ContextHelper.GetItem("userName") as string; } /// /// 获取登录者用户Id /// /// public string GetUserId() { return ContextHelper.GetItem("userId") as string; } /// /// 获取登录者用户账号 /// /// public string GetUserAccount() { return ContextHelper.GetItem("account") as string; } } }