public DResult Login(string account, [Required] string password) { dependency.AopTest(); return(DResult.Ok(new { id = 100000, name = account, role = "Admin", account })); }
/// <summary> /// 构造函数。 /// </summary> /// <param name="dependency">依赖注入。</param> /// <param name="users">用户信息。</param> /// <param name="linqUsers">用户。</param> public ValuesController(IDependency dependency, UserRepository users, ILinqRepository <FeiUsers, int> linqUsers) { this.dependency = dependency; dependency.AopTest(); }