网站首页 网站源码
website
站点相关全部源代码,隐藏了一些关于服务器的信息
using System.Collections.Generic;
using System.Threading.Tasks;
using Dpz.Core.Web.Dashboard.Models;

namespace Dpz.Core.Web.Dashboard.Service.Impl;

public class VideoService:IVideoService
{
    private readonly IHttpService _httpService;

    public VideoService(IHttpService httpService)
    {
        _httpService = httpService;
    }

    public async Task<IList<VideoModel>> GetVideosAsync()
    {
        return await _httpService.GetAsync<List<VideoModel>>("/api/Video/details");
    }

    public async Task SaveVideoInformationAsync(VideoModel model)
    {
        await _httpService.PostAsync("/api/Video", model);
    }
}
loading