/// <summary> /// 实现控制反转 /// </summary> /// <param name="moduleFunctionRepos"></param> public Admin_EmployeeController(IEmployeeRepository employeeRepos, IRoleRepository rolerepos, ICustomerRepository customerrepos, ecoBio.Wms.Backstage.Repositories.IDynamicToken tokenRepos, ecoBio.Wms.Backstage.Repositories.IDepartmentListRepository departmentListRepos) { _roleservice = new RoleService(rolerepos); _employeeservice = new EmployeeService(employeeRepos); _custoimerservice = new CustomerService(customerrepos); _tokenRepos = new Service.Management.DynamicTokenService(tokenRepos); _departmentListRepos = new Service.Management.DepartmentListService(departmentListRepos); }