|
@@ -638,4 +638,19 @@ extension VirusViewModel {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+extension VirusViewModel {
|
|
|
+ // 发布
|
|
|
+ func publishVirueRecordAddApi(postId:Int?,postType:String?,postAuthorUid:String?,title:String?,content:String?,postCover:String?) {
|
|
|
+
|
|
|
+ let virueRecordAddParameterModel = VirueRecordAddParameterModel()
|
|
|
+ virueRecordAddParameterModel.behaviorId = (ConfigModel.shared.object()?.virus?.publish ?? "")
|
|
|
+ virueRecordAddParameterModel.behaviorFlag =
|
|
|
+ BehaviorFlagType.publish.rawValue
|
|
|
+ virueRecordAddParameterModel.sourceId = "\(UserModel.shared().getModel()?.inviteUid ?? 0)"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ SwiftMoyaNetWorkServiceVirus.shared().virueRecordAddApi(virueRecordAddParameterModel: virueRecordAddParameterModel, completion: {(data) -> (Void) in
|
|
|
+ })
|
|
|
+ }
|
|
|
+}
|