//方式2 public QuestionController(IQuestionService qeustionService, IReplyService replyService, ISysGroupService sysGroupService, IImageInfoService imageInfoService) { _qeustionService = qeustionService; _replyService = replyService; }
public UserInfoController(IUserInfoService userService, IGradeService gradeService, ISysGroupService sysGroupService, IImageInfoService imageInfoService) { _userService = userService; _gradeService = gradeService; _sysGroupService = sysGroupService; _imageInfoService = imageInfoService; }
/// <summary> /// constructor /// </summary> /// <param name="localizer"></param> /// <param name="groupService"></param> /// <param name="imapper"></param> /// <param name="currUser"></param> public SysGroupController(IStringLocalizer <LanguageSub> localizer, ISysGroupService groupService, IMapper imapper, ICurrentUser currUser) { stringLocalizer = localizer; sysGroupService = groupService; mapper = imapper; currentUser = currUser; }
public GroupController(ISysGroupService sysGroupService) { _sysGroupService = sysGroupService; }