示例#1
0
文件: SiteUrls.cs 项目: x1987624/SNS
 /// <summary>
 /// 资讯后台管理
 /// </summary>
 /// <param name="siteUrls"></param>
 public static string ManageContentAttachments(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("ManageContentAttachments", "ControlPanelCms", CmsAreaName));
 }
示例#2
0
 /// <summary>
 /// 更换群主
 /// </summary>
 /// <returns></returns>
 public static string _ChangeGroupOwner(this SiteUrls siteUrls, string spaceKey, string returnUrl)
 {
     return(CachedUrlHelper.Action("_ChangeGroupOwner", "GroupSpaceSettings", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "returnUrl", WebUtility.UrlEncode(returnUrl) }
     }));
 }
示例#3
0
 /// <summary>
 ///  设置/取消 群组管理员
 /// </summary>
 /// <param name="groupId">群组Id</param>
 /// <param name="userId">用户Id</param>
 /// <param name="isManager">是/否管理员</param>
 /// <returns></returns>
 public static string SetManager(this SiteUrls siteUrls, long userId, bool isManager, string spaceKey)
 {
     return(CachedUrlHelper.Action("SetManager", "GroupSpaceSettings", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "userId", userId }, { "isManager", isManager }
     }));
 }
示例#4
0
 /// <summary>
 /// 创建群组
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <returns></returns>
 public static string CreateGroup(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("Create", "ChannelGroup", GroupAreaName));
 }
示例#5
0
 /// <summary>
 /// 群组快捷搜索
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <returns></returns>
 public static string GroupQuickSearch(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("_QuickSearch", "ChannelGroup", GroupAreaName));
 }
示例#6
0
 /// <summary>
 /// 批量处理申请
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="spaceKey"></param>
 /// <param name="isApproved"></param>
 /// <returns></returns>
 public static string BatchUpdateMemberAuditStatus(this SiteUrls siteUrls, string spaceKey, bool isApproved)
 {
     return(CachedUrlHelper.Action("ApproveMemberApply", "GroupSpaceSettings", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "isApproved", isApproved }
     }));
 }
示例#7
0
 /// <summary>
 /// 删除管理员
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="groupId"></param>
 /// <param name="userId"></param>
 /// <returns></returns>
 public static string DeleteManager(this SiteUrls siteUrls, string spaceKey, long userId)
 {
     return(CachedUrlHelper.Action("DeleteManager", "GroupSpace", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "userId", userId }
     }));
 }
示例#8
0
 /// <summary>
 /// 专题快捷搜索
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <returns></returns>
 public static string TopicQuickSearch(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("_QuickSearch", "ChannelTopic", TopicAreaName));
 }
示例#9
0
 /// <summary>
 /// 专题搜索自动完成
 /// </summary>
 public static string TopicSearchAutoComplete(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("SearchAutoComplete", "ChannelTopic", TopicAreaName));
 }
示例#10
0
 /// <summary>
 /// 创建专题
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <returns></returns>
 public static string CreateTopic(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("Create", "ChannelTopic", TopicAreaName));
 }
示例#11
0
 /// <summary>
 /// 标签云图
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <returns></returns>
 public static string TopicTagMap(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("TopicTagMap", "ChannelTopic", TopicAreaName));
 }
示例#12
0
 /// <summary>
 /// 编辑专题
 /// </summary>
 /// <returns></returns>
 public static string EditTopic(this SiteUrls siteUrls, string spaceKey)
 {
     return(CachedUrlHelper.Action("EditTopic", "TopicSpaceSettings", TopicAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }
     }));
 }
示例#13
0
 /// <summary>
 /// 管理员和普通成员
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="spaceKey"></param>
 /// <returns></returns>
 public static string MembersOfTopic(this SiteUrls siteUrls, string spaceKey)
 {
     return(CachedUrlHelper.Action("Members", "TopicSpace", TopicAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }
     }));
 }
示例#14
0
 /// <summary>
 /// 删除申请
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="spaceKey"></param>
 /// <param name="id">申请Id</param>
 /// <returns>删除申请链接</returns>
 public static string DeleteMemberApplyOfTopic(this SiteUrls siteUrls, string spaceKey, long id)
 {
     return(CachedUrlHelper.Action("DeleteMemberApply", "TopicSpaceSettings", TopicAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "id", id }
     }));
 }
示例#15
0
 /// <summary>
 /// 群组资料
 /// </summary>
 /// <param name="spaceKey">群组标识</param>
 /// <returns></returns>
 public static string _GroupProfile(this SiteUrls siteUrls, string spaceKey)
 {
     return(CachedUrlHelper.Action("_GroupProfile", "GroupSpace", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }
     }));
 }
示例#16
0
 /// <summary>
 /// 退出专题
 /// </summary>
 /// <param name="spaceKey">专题标识</param>
 /// <returns></returns>
 public static string _QuitTopic(this SiteUrls siteUrls, long groupId)
 {
     return(CachedUrlHelper.Action("_QuitTopic", "ChannelTopic", TopicAreaName, new RouteValueDictionary {
         { "groupId", groupId }
     }));
 }
示例#17
0
 /// <summary>
 /// 移除成员
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="spaceKey"></param>
 /// <param name="groupId"></param>
 /// <returns></returns>
 public static string BatchRemoveMember(this SiteUrls siteUrls, string spaceKey)
 {
     return(CachedUrlHelper.Action("DeleteMember", "GroupSpaceSettings", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }
     }));
 }
示例#18
0
 /// <summary>
 /// 用户加入专题(专题有验证时)
 /// </summary>
 /// <param name="spaceKey"></param>
 /// <param name="siteUrls"></param>
 /// <returns></returns>
 public static string _EditApplyOfTopic(this SiteUrls siteUrls, long topicId)
 {
     return(CachedUrlHelper.Action("_EditApply", "ChannelTopic", TopicAreaName, new RouteValueDictionary {
         { "topicId", topicId }
     }));
 }
示例#19
0
 /// <summary>
 /// 关注的成员
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="spaceKey"></param>
 /// <returns></returns>
 public static string MyFollowedUsers(this SiteUrls siteUrls, string spaceKey)
 {
     return(CachedUrlHelper.Action("MyFollowedUsers", "GroupSpace", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }
     }));
 }
示例#20
0
 /// <summary>
 ///  查询自lastActivityId以后又有多少动态进入用户的时间线
 /// </summary>
 public static string _GetNewerGroupActivities(this SiteUrls siteUrls, string spaceKey, int?applicationId = null, long?lastActivityId = 0)
 {
     return(CachedUrlHelper.Action("_GetNewerActivities", "GroupSpace", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "applicationId", applicationId }, { "lastActivityId", lastActivityId }
     }));
 }
示例#21
0
 /// <summary>
 /// 编辑群组
 /// </summary>
 /// <returns></returns>
 public static string EditGroup(this SiteUrls siteUrls, string spaceKey)
 {
     return(CachedUrlHelper.Action("EditGroup", "GroupSpaceSettings", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }
     }));
 }
示例#22
0
 /// <summary>
 ///  查询自lastActivityId以后又有多少动态进入用户的时间线
 /// </summary>
 /// <returns></returns>
 public static string GetNewerGroupActivityCount(this SiteUrls siteUrls, string spaceKey, int?applicationId = null)
 {
     return(CachedUrlHelper.Action("GetNewerGroupActivityCount", "GroupSpace", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "applicationId", applicationId }
     }));
 }
示例#23
0
 /// <summary>
 /// 标签云图
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <returns></returns>
 public static string GroupTagMap(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("GroupTagMap", "ChannelGroup", GroupAreaName));
 }
示例#24
0
 /// <summary>
 /// 删除群组动态
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="spaceKey"></param>
 /// <returns></returns>
 public static string _DeleteGroupActivity(this SiteUrls siteUrls, string spaceKey, long activityId)
 {
     return(CachedUrlHelper.Action("_DeleteGroupActivity", "GroupSpace", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "activityId", activityId }
     }));
 }
示例#25
0
 /// <summary>
 /// 群组搜索自动完成
 /// </summary>
 public static string GroupSearchAutoComplete(this SiteUrls siteUrls)
 {
     return(CachedUrlHelper.Action("SearchAutoComplete", "ChannelGroup", GroupAreaName));
 }
示例#26
0
 /// <summary>
 /// 设置公告
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="spaceKey"></param>
 /// <returns></returns>
 public static string _EditAnnouncement(this SiteUrls siteUrls, string spaceKey)
 {
     return(CachedUrlHelper.Action("_EditAnnouncement", "GroupSpace", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }
     }));
 }
示例#27
0
 /// <summary>
 /// 删除申请
 /// </summary>
 /// <param name="Id">申请ID</param>
 /// <returns></returns>
 public static string DeleteMemberApply(this SiteUrls siteUrls, long id, string spaceKey)
 {
     return(CachedUrlHelper.Action("DeleteMemberApply", "GroupSpaceSettings", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }, { "id", id }
     }));
 }
示例#28
0
 /// <summary>
 /// 删除访客记录
 /// </summary>
 /// <param name="siteUrls"></param>
 /// <param name="spaceKey"></param>
 /// <returns></returns>
 public static string DeleteGroupVisitor(this SiteUrls siteUrls, string spaceKey)
 {
     return(CachedUrlHelper.Action("DeleteGroupVisitor", "GroupSpace", GroupAreaName, new RouteValueDictionary {
         { "spaceKey", spaceKey }
     }));
 }
示例#29
0
 /// <summary>
 /// 用户加入群组(通过问题验证)
 /// </summary>
 /// <param name="spaceKey"></param>
 /// <param name="siteUrls"></param>
 /// <returns></returns>
 public static string _ValidateQuestion(this SiteUrls siteUrls, long groupId)
 {
     return(CachedUrlHelper.Action("_ValidateQuestion", "ChannelGroup", GroupAreaName, new RouteValueDictionary {
         { "groupId", groupId }
     }));
 }
示例#30
0
文件: SiteUrls.cs 项目: x1987624/SNS
 /// <summary>
 /// 合并移动资讯栏目
 /// </summary>
 public static string _MoveContentFolder(this SiteUrls siteUrls, int fromContentFolderId = 0, int contentFolderId = 0, string option = "move")
 {
     return(CachedUrlHelper.Action("_MoveContentFolder", "ControlPanelCms", CmsAreaName, new RouteValueDictionary {
         { "fromContentFolderId", fromContentFolderId }, { "contentFolderId", contentFolderId }, { "option", option }
     }));
 }