package com.video.api;

import com.video.model.utils.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * @Author: binguo
 * @Date: 2023/3/23 星期四 15:52
 * @Description: com.video.api
 * @Version: 1.0
 */
//@RequestMapping("/api/play-back")
@Api(tags = {"PlaybackRecordController"}, value = "测试接口")
public interface PlaybackRecordControllerAPI {
//    @PostMapping(value = "/InsertPlaybackRecord")
//    @ApiOperation(value = "测试接口",notes = "传递时间参数获取对应时间的图表数据")
//    CommonResult<Integer> InsertPlaybackRecord(@RequestBody PlaybackRecord pb);
//
//    @GetMapping(value = "/QueryPlaybackRecords")
//    CommonResult<List<PlaybackRecord>> QueryPlaybackRecords(HttpServletRequest request);
//
    @PostMapping(value = "/tests")
    String test(HttpServletRequest request) throws Exception;
//
//    @GetMapping("/video")
//    void videoPreview(HttpServletRequest request, HttpServletResponse response) throws IOException, Exception;
//
//    @GetMapping("/videoOther")
//    @ResponseBody
//    void videoOther(HttpServletRequest request, HttpServletResponse response) throws Exception;
//
//    @GetMapping("/download")
//    public void download(HttpServletResponse response) throws UnsupportedEncodingException;
}
