|
@@ -38,9 +38,12 @@ public let kCommunityPublishApi = "/community/post"
|
|
|
public let kCommunityDeleteApi = "/community/post"
|
|
|
|
|
|
// MARK: - 获取上传地址和凭证
|
|
|
-/// 获取上传地址和凭证
|
|
|
+/// 获取上传地址和凭证(视频)
|
|
|
public let kCommunityVideoUploadAuthApi = "/community/getVodUploadAuth"
|
|
|
|
|
|
+/// 获取上传地址和凭证(图片)
|
|
|
+public let kCommunityImageUploadAuthApi = "/community/vod/upload/image"
|
|
|
+
|
|
|
// MARK: - 视频列表
|
|
|
/// 视频列表
|
|
|
public let kCommunityVideoListApi = "/community/post/video"
|
|
@@ -114,6 +117,7 @@ public let kCommunityCateMusicListApi = "/community/music"
|
|
|
/// - communityPosts: 内容列表
|
|
|
/// - communityPublish: 发布内容
|
|
|
/// - communityVideoUploadAuth: 视频上传凭证
|
|
|
+/// - communityImageUploadAuth: 图片上传凭证
|
|
|
/// - communityVideoList: 视频列表
|
|
|
/// - communityFeed: 关注页面feed流
|
|
|
/// - communityPostSuggest: 关注页面feed流
|
|
@@ -140,6 +144,7 @@ public enum SwiftMoyaServiceCommunityApi {
|
|
|
case communityPublish(parameters:Dictionary<String, Any>)
|
|
|
case communityDelete(parameters:Dictionary<String, Any>)
|
|
|
case communityVideoUploadAuth(parameters:Dictionary<String, Any>)
|
|
|
+ case communityImageUploadAuth(parameters:Dictionary<String, Any>)
|
|
|
case communityVideoList(parameters:Dictionary<String, Any>)
|
|
|
case communityFollowFeed(parameters:Dictionary<String, Any>)
|
|
|
case communityPostSuggest(parameters:Dictionary<String, Any>)
|
|
@@ -170,6 +175,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityPublish,
|
|
|
.communityDelete,
|
|
|
.communityVideoUploadAuth,
|
|
|
+ .communityImageUploadAuth,
|
|
|
.communityVideoList,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|
|
@@ -209,6 +215,8 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
return kCommunityDeleteApi
|
|
|
case .communityVideoUploadAuth:
|
|
|
return kCommunityVideoUploadAuthApi
|
|
|
+ case .communityImageUploadAuth:
|
|
|
+ return kCommunityImageUploadAuthApi
|
|
|
case .communityVideoList:
|
|
|
return kCommunityVideoListApi
|
|
|
case .communityFollowFeed:
|
|
@@ -258,6 +266,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityTopics,
|
|
|
.communityPosts,
|
|
|
.communityVideoUploadAuth,
|
|
|
+ .communityImageUploadAuth,
|
|
|
.communityVideoList,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|
|
@@ -291,6 +300,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityPublish(var parameters),
|
|
|
.communityDelete(var parameters),
|
|
|
.communityVideoUploadAuth(var parameters),
|
|
|
+ .communityImageUploadAuth(var parameters),
|
|
|
.communityVideoList(var parameters),
|
|
|
.communityFollowFeed(var parameters),
|
|
|
.communityPostSuggest(var parameters),
|
|
@@ -337,6 +347,7 @@ extension SwiftMoyaServiceCommunityApi: TargetType {
|
|
|
.communityPublish,
|
|
|
.communityDelete,
|
|
|
.communityVideoUploadAuth,
|
|
|
+ .communityImageUploadAuth,
|
|
|
.communityVideoList,
|
|
|
.communityFollowFeed,
|
|
|
.communityPostSuggest,
|