|
@@ -37,6 +37,10 @@ public let kCommunityPublishApi = "/community/post"
|
|
|
/// 获取上传地址和凭证
|
|
|
public let kCommunityVideoUploadAuthApi = "/community/getVodUploadAuth"
|
|
|
|
|
|
+// MARK: - 视频列表
|
|
|
+/// 视频列表
|
|
|
+public let kCommunityVideoListApi = "/community/post/video"
|
|
|
+
|
|
|
// MARK: - 关注页面feed流
|
|
|
/// 关注页面feed流
|
|
|
public let kCommunityFollowFeedApi = "/community/feed"
|
|
@@ -74,6 +78,7 @@ public let kCommunityMemberFollowTopicCancelFollowApi = "/community/memberFollow
|
|
|
/// - communityPosts: 内容列表
|
|
|
/// - communityPublish: 发布内容
|
|
|
/// - communityVideoUploadAuth: 视频上传凭证
|
|
|
+/// - communityVideoList: 视频列表
|
|
|
/// - communityFeed: 关注页面feed流
|
|
|
/// - communityPostSuggest: 关注页面feed流
|
|
|
/// - communityTopicDetail: 话题详情
|
|
@@ -90,6 +95,7 @@ public enum SwiftMoyaServiceCommunityApi {
|
|
|
case communityPosts(parameters:Dictionary<String, Any>)
|
|
|
case communityPublish(parameters:Dictionary<String, Any>)
|
|
|
case communityVideoUploadAuth(parameters:Dictionary<String, Any>)
|
|
|
+ case communityVideoList(parameters:Dictionary<String, Any>)
|
|
|
case communityFollowFeed(parameters:Dictionary<String, Any>)
|
|
|
case communityPostSuggest(parameters:Dictionary<String, Any>)
|
|
|
case communityTopicDetail(parameters:Dictionary<String, Any>)
|
|
@@ -110,6 +116,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityPosts,
|
|
|
.communityPublish,
|
|
|
.communityVideoUploadAuth,
|
|
|
+ .communityVideoList,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|
|
|
.communityTopicDetail,
|
|
@@ -138,6 +145,8 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
return kCommunityPublishApi
|
|
|
case .communityVideoUploadAuth:
|
|
|
return kCommunityVideoUploadAuthApi
|
|
|
+ case .communityVideoList:
|
|
|
+ return kCommunityVideoListApi
|
|
|
case .communityFollowFeed:
|
|
|
return kCommunityFollowFeedApi
|
|
|
case .communityPostSuggest:
|
|
@@ -167,6 +176,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityTopics,
|
|
|
.communityPosts,
|
|
|
.communityVideoUploadAuth,
|
|
|
+ .communityVideoList,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|
|
|
.communityTopicDetail,
|
|
@@ -191,6 +201,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityPosts(var parameters),
|
|
|
.communityPublish(var parameters),
|
|
|
.communityVideoUploadAuth(var parameters),
|
|
|
+ .communityVideoList(var parameters),
|
|
|
.communityFollowFeed(var parameters),
|
|
|
.communityPostSuggest(var parameters),
|
|
|
.communityTopicDetail(var parameters),
|
|
@@ -227,6 +238,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityPosts,
|
|
|
.communityPublish,
|
|
|
.communityVideoUploadAuth,
|
|
|
+ .communityVideoList,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|
|
|
.communityTopicDetail,
|