appSplashAd.ts 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import request from '@/utils/request'
  2. const BASE = '/setting/appSplashAd/v1'
  3. export interface AppSplashAdQueryVO {
  4. pageNo?: number
  5. pageSize?: number
  6. platform?: string
  7. status?: number
  8. }
  9. export interface AppSplashAdSaveDTO {
  10. id?: string
  11. platform: string
  12. mediaType: number
  13. mediaUrl: string
  14. posterUrl?: string
  15. title?: string
  16. subtitle?: string
  17. linkUrl?: string
  18. durationSec: number
  19. skippable: number
  20. displayBegin?: string
  21. displayEnd?: string
  22. sortOrder?: number
  23. status?: number
  24. }
  25. export function getAppSplashAdInfo(id: string) {
  26. return request.get(`${BASE}/info`, { params: { id } })
  27. }
  28. export function getAppSplashAdList(data: AppSplashAdQueryVO) {
  29. return request.post(`${BASE}/list`, data)
  30. }
  31. export function saveAppSplashAd(data: AppSplashAdSaveDTO) {
  32. return request.post(`${BASE}/save`, data)
  33. }
  34. export function deleteAppSplashAd(ids: string) {
  35. return request.get(`${BASE}/delete`, { params: { ids } })
  36. }