private string _imuid = ""; //用户标识 #region ctor /// <summary> /// /// </summary> /// <param name="imUserInfoService"></param> public UserGroupController(IImUserInfoService imUserInfoService, IUserGroupService userGroupService, IChannelInfoService channelInfoService, IGroupInfoService groupInfoService) { _imUserInfoService = imUserInfoService; _userGroupService = userGroupService; _channelInfoService = channelInfoService; _groupInfoService = groupInfoService; }
public CampaignModule(ICampaignService campaignService, ITagInfoService tagInfoService, ICampaignTagMappingService campaignTagMappingService, ICampaignTypeService campaignTypeService, IChannelInfoService channelInfoService, ITaFieldInfoService taFieldInfoService, ICampaignKeywordSettingService campaignKeywordSettingService, ITaInfoService taInfoService, ISMSService smsService, ICampaignStepInfoService campaignStepInfoService, ISystemJobInfoService systemJobInfoService) : base() { this.CampaignService = campaignService; this.TagInfoService = tagInfoService; this.CampaignTagMappingService = campaignTagMappingService; this.CampaignTypeService = campaignTypeService; this.ChannelInfoService = channelInfoService; this.TaFieldInfoService = taFieldInfoService; this.CampaignKeywordSettingService = campaignKeywordSettingService; this.TaInfoService = taInfoService; this.SMSService = smsService; this.CampaignStepInfoService = campaignStepInfoService; this.SystemJobInfoService = systemJobInfoService; this.Get[CampaignMetadataModule.CampaignList, PathApiCampaignList] = _ => this.RunHandler<ReqGetCampaignList, Negotiator>(this.GetCampaignList); this.Post[CampaignMetadataModule.AddCampaign, PathApiAddCampaign] = p => this.RunHandler<ReqAddCampaign, Negotiator>(this.AddCampaign); this.Put[CampaignMetadataModule.UpdateCampaign, PathApiUpdateCampaign] = _ => this.RunHandler<ReqCampaignUpdate, Negotiator>(this.UpdateCampaign); this.Delete[CampaignMetadataModule.DeleteCampaign, PathApiDeleteCampaign] = _ => this.RunHandler<ReqCampaignDelete, Negotiator>(this.DeleteCampaign); this.Get[CampaignMetadataModule.CampaignDateRange, PathApiCampaignDateRange] = this.CampaignDateRange; this.Get[CampaignMetadataModule.GetCampaignTypeList, PathApiGetCampaignTypeList] = this.GetCampaignTypeList; this.Get[CampaignMetadataModule.GetCampaignConfig, PathApiGetCampaignConfig] = _ => this.RunHandler<ReqGetCampaignById, Negotiator>(this.GetCampaignConfig); this.Get[CampaignMetadataModule.GetTagInfoList, PathApiGetTagInfoList] = this.GetTagInfoList; this.Get[CampaignMetadataModule.GetSmsKeywordList, PathApiGetSmsKeywordList] = _ => this.RunHandler<ReqCampaignGetSmsKeywordList, Negotiator>(this.GetSmsKeywordList); this.Post[CampaignMetadataModule.CampaignAddSmsKeyword, PathApiCampaignAddSmsKeyword] = this.CampaignAddSmsKeyword; this.Put[CampaignMetadataModule.UpdateSmsKeyword, PathApiUpdateSmsKeyword] = _ => this.RunHandler<ReqCampaignUpdateSmsKeywordList, Negotiator>(this.UpdateSmsKeyword); this.Get[CampaignMetadataModule.GetProfileFields, PathApiGetProfileFields] = _ => this.RunHandler<ReqGetProfileFields, Negotiator>(this.GetProfileFields); this.Get[CampaignMetadataModule.CampaignSmsVender, PathApiCampaignSmsVender] = this.CampaignSmsVender; this.Get[CampaignMetadataModule.GetServerTime, PathApiGetServerTime] = this.GetServerTime; this.Put[CampaignMetadataModule.SetChannelSwitch, PathApiSetChannelSwitch] = _ => this.RunHandler<ReqCampaignSetChannelSwitch, Negotiator>(this.SetChannelSwitch); //Updated by Eric 20150728 //EventHandling & Logger測試方法 this.Get["TEST", "/et/campaigns/errortest/action"] = this.ErrorTestAction; }
/// <summary> /// /// </summary> /// <param name="imUserInfoService"></param> /// <param name="channelInfoService"></param> public DemoController(IImUserInfoService imUserInfoService, IChannelInfoService channelInfoService) { _imUserInfoService = imUserInfoService; _channelInfoService = channelInfoService; }
/// <summary> /// /// </summary> /// <param name="channelMessageService"></param> public ChannelController(IChannelMessageService channelMessageService, IChannelInfoService channelInfoService) { _channelMessageService = channelMessageService; _channelInfoService = channelInfoService; }