|
@@ -33,6 +33,10 @@ public let kCommunityPostsApi = "/community/post"
|
|
|
/// 发布内容(Post)
|
|
|
public let kCommunityPublishApi = "/community/post"
|
|
|
|
|
|
+// MARK: - 获取上传地址和凭证
|
|
|
+/// 获取上传地址和凭证
|
|
|
+public let kCommunityVideoUploadAuthApi = "/community/getVodUploadAuth"
|
|
|
+
|
|
|
// MARK: - 关注页面feed流
|
|
|
/// 关注页面feed流
|
|
|
public let kCommunityFollowFeedApi = "/community/feed"
|
|
@@ -69,6 +73,7 @@ public let kCommunityMemberFollowTopicCancelFollowApi = "/community/memberFollow
|
|
|
/// - communityTopics: 话题列表
|
|
|
/// - communityPosts: 内容列表
|
|
|
/// - communityPublish: 发布内容
|
|
|
+/// - communityVideoUploadAuth: 视频上传凭证
|
|
|
/// - communityFeed: 关注页面feed流
|
|
|
/// - communityPostSuggest: 关注页面feed流
|
|
|
/// - communityTopicDetail: 话题详情
|
|
@@ -84,6 +89,7 @@ public enum SwiftMoyaServiceCommunityApi {
|
|
|
case communityTopics(parameters:Dictionary<String, Any>)
|
|
|
case communityPosts(parameters:Dictionary<String, Any>)
|
|
|
case communityPublish(parameters:Dictionary<String, Any>)
|
|
|
+ case communityVideoUploadAuth(parameters:Dictionary<String, Any>)
|
|
|
case communityFollowFeed(parameters:Dictionary<String, Any>)
|
|
|
case communityPostSuggest(parameters:Dictionary<String, Any>)
|
|
|
case communityTopicDetail(parameters:Dictionary<String, Any>)
|
|
@@ -103,6 +109,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityTopics,
|
|
|
.communityPosts,
|
|
|
.communityPublish,
|
|
|
+ .communityVideoUploadAuth,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|
|
|
.communityTopicDetail,
|
|
@@ -129,6 +136,8 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
return kCommunityPostsApi
|
|
|
case .communityPublish:
|
|
|
return kCommunityPublishApi
|
|
|
+ case .communityVideoUploadAuth:
|
|
|
+ return kCommunityVideoUploadAuthApi
|
|
|
case .communityFollowFeed:
|
|
|
return kCommunityFollowFeedApi
|
|
|
case .communityPostSuggest:
|
|
@@ -157,6 +166,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityPostMy,
|
|
|
.communityTopics,
|
|
|
.communityPosts,
|
|
|
+ .communityVideoUploadAuth,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|
|
|
.communityTopicDetail,
|
|
@@ -180,6 +190,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityTopics(var parameters),
|
|
|
.communityPosts(var parameters),
|
|
|
.communityPublish(var parameters),
|
|
|
+ .communityVideoUploadAuth(var parameters),
|
|
|
.communityFollowFeed(var parameters),
|
|
|
.communityPostSuggest(var parameters),
|
|
|
.communityTopicDetail(var parameters),
|
|
@@ -215,6 +226,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityTopics,
|
|
|
.communityPosts,
|
|
|
.communityPublish,
|
|
|
+ .communityVideoUploadAuth,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|
|
|
.communityTopicDetail,
|