package com.template.api;

import com.template.model.pojo.SmartScreenshot;
import com.template.model.pojo.SmartScreenshotRecord;
import com.template.model.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: binguo
 * @Date: 2023/3/30 星期四 17:28
 * @Description: com.video.api
 * @Version: 1.0
 */
@RequestMapping("/api/smartScreenshotRecord")
@Api(tags = {"SmartScreenshotRecordControllerAPI"}, value = "截屏记录")
public interface SmartScreenshotRecordControllerAPI {
    @PostMapping(value = "/insertSmartScreenshotRecord")
    @ApiOperation(value = "添加截屏记录", notes = "添加截屏记录数据", httpMethod = "POST")
    CommonResult insertSmartScreenshotRecord(@Validated @RequestBody SmartScreenshotRecord smartApply, BindingResult bindingResult);

    @PostMapping(value = "/updateSmartScreenshotRecordById")
    @ApiOperation(value = "编辑截屏记录数据", notes = "编辑截屏记录数据", httpMethod = "POST")
    CommonResult updateSmartScreenshotRecordById(@Validated @RequestBody SmartScreenshotRecord ra, BindingResult bindingResult);

    @GetMapping(value = "/queryPageSmartScreenshotRecord")
    @ApiOperation(value = "截屏记录分页数据", notes = "截屏记录分页数据", httpMethod = "GET")
    CommonResult queryPageSmartScreenshotRecord(@RequestParam int currentPage, @RequestParam int pageCount, String name);

    @GetMapping(value = "/deleteSmartScreenshotRecordById")
    @ApiOperation(value = "根据ID删除指定截屏记录", notes = "根据ID删除指定截屏记录", httpMethod = "GET")
    CommonResult deleteSmartScreenshotRecordById(@RequestParam int id);

    @GetMapping(value = "/userScreenshotRecord")
    @ApiOperation(value = "用户截屏记录", notes = "用户截屏记录", httpMethod = "GET")
    CommonResult userScreenshotRecord(@RequestParam int userId) throws Exception;

    @GetMapping(value = "/queryScreenshotRecordPage")
    @ApiOperation(value = "截屏记录分页数据", notes = "截屏记录分页数据", httpMethod = "GET")
    CommonResult queryScreenshotRecordPageList(int currentPage, int pageCount);

}
