/// <summary> /// 构造函数 ///</summary> public EmployeeAppService(IRepository <Employee, string> employeeRepository , IEmployeeManager employeeManager , IDingDingAppService dingDingAppService , IRepository <SystemData, int> systemdataRepository , IRepository <Organization, long> organizationRepository ) { _employeeRepository = employeeRepository; _employeeManager = employeeManager; _dingDingAppService = dingDingAppService; _systemdataRepository = systemdataRepository; _organizationRepository = organizationRepository; }
/// <summary> /// 构造函数 ///</summary> public OrganizationAppService(IRepository <Organization, long> organizationRepository , IOrganizationManager organizationManager , IRepository <Employee, string> employeeRepository , IDingDingAppService dingDingAppService , IRepository <SystemData> systemDataRepository ) { _organizationRepository = organizationRepository; _organizationManager = organizationManager; _employeeRepository = employeeRepository; _dingDingAppService = dingDingAppService; _systemDataRepository = systemDataRepository; }
//private string accessToken; //private DingDingAppConfig ddConfig; /// <summary> /// 构造函数 ///</summary> public ScheduleAppService(IRepository <Schedule, Guid> scheduleRepository , IScheduleManager scheduleManager , ISheduleDetailRepository scheduledetailRepository , IDingDingAppService dingDingAppService , IRepository <SystemData, int> systemdataRepository , IRepository <User, long> userRepository ) { _scheduleRepository = scheduleRepository; _scheduleManager = scheduleManager; _scheduledetailRepository = scheduledetailRepository; _dingDingAppService = dingDingAppService; _systemdataRepository = systemdataRepository; _userRepository = userRepository; }
/// <summary> /// 构造函数 ///</summary> public ScheduleDetailAppService(//IRepository<ScheduleDetail, Guid> scheduledetailRepository ISheduleDetailRepository scheduledetailRepository, IScheduleDetailManager scheduledetailManager, IRepository <Grower, int> growerRepository, IRepository <Schedule, Guid> scheduleRepository, IRepository <VisitTask, int> visittaskRepository, IDingDingAppService dingDingAppService, IHostingEnvironment hostingEnvironment, IRepository <SystemData> systemdataRepository) { _growerRepository = growerRepository; _scheduledetailRepository = scheduledetailRepository; _scheduledetailManager = scheduledetailManager; _growerRepository = growerRepository; _scheduleRepository = scheduleRepository; _visittaskRepository = visittaskRepository; _dingDingAppService = dingDingAppService; _hostingEnvironment = hostingEnvironment; _systemdataRepository = systemdataRepository; }