package com.template.api;

import com.template.model.pojo.SmartScreenshot;
import com.template.model.request.insertScreenshotRequest;
import com.template.model.request.updateScreenshotRequest;
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/smartScreenshot")
@Api(tags = {"SmartScreenshotControllerAPI"}, value = "截屏风控")
public interface SmartScreenshotControllerAPI {
    @PostMapping(value = "/insertSmartScreenshot")
    @ApiOperation(value = "添加截屏风控", notes = "添加截屏风控数据", httpMethod = "POST")
    CommonResult insertSmartScreenshot(@Validated @RequestBody insertScreenshotRequest isr, BindingResult bindingResult);

    @PostMapping(value = "/updateSmartScreenshotById")
    @ApiOperation(value = "编辑截屏风控数据", notes = "编辑截屏风控数据", httpMethod = "POST")
    CommonResult updateSmartScreenshotById(@Validated @RequestBody updateScreenshotRequest usr, BindingResult bindingResult);

    @GetMapping(value = "/queryPageSmartScreenshot")
    @ApiOperation(value = "截屏风控分页数据", notes = "截屏风控分页数据", httpMethod = "GET")
    CommonResult queryPageSmartScreenshots(@RequestParam int currentPage, @RequestParam int pageCount, String name);

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

    @GetMapping(value = "/queryPunishs")
    @ApiOperation(value = "获取触发惩罚规则列表", notes = "获取触发惩罚规则列表", httpMethod = "GET")
    CommonResult queryPunishs();
}
