Spaces:
Sleeping
Sleeping
Download backend/src/modules/admin/admin.service.ts from kishankrish19/Chat: direct link, hf CLI and curl.
- Browser
- Download file 922 Bytes
-
https://huggingface.co/spaces/kishankrish19/Chat/resolve/main/backend/src/modules/admin/admin.service.ts
- Command line
-
hf download hf://spaces/kishankrish19/Chat/backend/src/modules/admin/admin.service.ts
-
curl -L -o admin.service.ts https://huggingface.co/spaces/kishankrish19/Chat/resolve/main/backend/src/modules/admin/admin.service.ts
922 Bytes
| import { Injectable } from '@nestjs/common'; | |
| () | |
| export class AdminService { | |
| verifyArtist(artistId: string) { | |
| return { success: true, artist_id: artistId, verified: true }; | |
| } | |
| bulkUpload(albumId: string, filesCount: number) { | |
| return { | |
| success: true, | |
| album_id: albumId, | |
| processed_tracks: filesCount, | |
| transcode_jobs_enqueued: filesCount, | |
| }; | |
| } | |
| getTrackAnalytics(trackId: string) { | |
| return { | |
| track_id: trackId, | |
| total_plays: 14500, | |
| unique_listeners: 8900, | |
| top_countries: [ | |
| { country: 'US', plays: 6400 }, | |
| { country: 'IN', plays: 4500 }, | |
| { country: 'GB', plays: 1200 }, | |
| ], | |
| }; | |
| } | |
| replaceAudio(trackId: string, audioPath: string) { | |
| return { | |
| success: true, | |
| track_id: trackId, | |
| new_audio_path: audioPath, | |
| message: 'Audio file replaced and transcode job re-triggered.', | |
| }; | |
| } | |
| } | |