Use global uuid instead of remoteId for videos

This commit is contained in:
Chocobozzz
2017-07-11 16:01:56 +02:00
parent e6d4b0ff24
commit 0a6658fdcb
58 changed files with 450 additions and 176 deletions

View File

@@ -1,5 +1,5 @@
export interface RemoteQaduVideoData {
remoteId: string
uuid: string
views?: number
likes?: number
dislikes?: number

View File

@@ -1,7 +1,7 @@
import { RemoteVideoRequest } from './remote-video-request.model'
export interface RemoteVideoCreateData {
remoteId: string
uuid: string
author: string
tags: string[]
name: string

View File

@@ -1,7 +1,7 @@
export type RemoteVideoEventType = 'views' | 'likes' | 'dislikes'
export interface RemoteVideoEventData {
remoteId: string
uuid: string
eventType: RemoteVideoEventType
count: number
}

View File

@@ -1,7 +1,7 @@
import { RemoteVideoRequest } from './remote-video-request.model'
export interface RemoteVideoRemoveData {
remoteId: string
uuid: string
}
export interface RemoteVideoRemoveRequest extends RemoteVideoRequest {

View File

@@ -1,7 +1,7 @@
import { RemoteVideoRequest } from './remote-video-request.model'
export interface RemoteVideoReportAbuseData {
videoRemoteId: string
videoUUID: string
reporterUsername: string
reportReason: string
}

View File

@@ -1,5 +1,5 @@
export interface RemoteVideoUpdateData {
remoteId: string
uuid: string
tags: string[]
name: string
extname: string

View File

@@ -1,6 +1,6 @@
import { UserVideoRateType } from './user-video-rate.type'
export interface UserVideoRate {
videoId: string
videoId: number
rating: UserVideoRateType
}

View File

@@ -3,6 +3,6 @@ export interface VideoAbuse {
reporterPodHost: string
reason: string
reporterUsername: string
videoId: string
videoId: number
createdAt: Date
}

View File

@@ -1,5 +1,5 @@
export interface BlacklistedVideo {
id: number
videoId: string
videoId: number
createdAt: Date
}

View File

@@ -1,5 +1,6 @@
export interface Video {
id: string
id: number
uuid: string
author: string
createdAt: Date
categoryLabel: string