package com.template.api;

import com.template.model.pojo.SmartApply;
import com.template.model.pojo.SystemMenu;
import com.template.model.result.CommonResult;
import com.template.model.vo.SystemMenuTreeVo;
import com.template.model.vo.SystemMenuVo;
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.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author: binguo
 * @Date: 2023/3/30 星期四 17:28
 * @Description: com.video.api
 * @Version: 1.0
 */
@RequestMapping("/api/smartApply")
@Api(tags = {"SmartApplyControllerAPI"}, value = "应用管理")
public interface SmartApplyControllerAPI {
    @GetMapping(value = "/queryApplys")
    @ApiOperation(value = "查询应用管理", notes = "查询应用管理", httpMethod = "GET")
    CommonResult queryApplys();

    @PostMapping(value = "/insertSmartApply")
    @ApiOperation(value = "添加应用管理", notes = "添加应用管理数据", httpMethod = "POST")
    CommonResult insertSmartApply(@Validated @RequestBody SmartApply smartApply, BindingResult bindingResult);

    @PostMapping(value = "/updateSmartApplyById")
    @ApiOperation(value = "编辑应用管理数据", notes = "编辑应用管理数据", httpMethod = "POST")
    CommonResult updateSmartApplyById(@Validated @RequestBody SmartApply ra, BindingResult bindingResult);

    @GetMapping(value = "/queryPageSmartApply")
    @ApiOperation(value = "应用管理分页数据", notes = "应用管理分页数据", httpMethod = "GET")
    CommonResult queryPageSmartApplys(@RequestParam int currentPage, @RequestParam int pageCount, String name);

    @GetMapping(value = "/deleteSmartApplyById")
    @ApiOperation(value = "根据ID删除指定应用管理", notes = "根据ID删除指定应用管理", httpMethod = "GET")
    CommonResult deleteSmartApplyById(@RequestParam int id);

    @GetMapping(value = "/queryAppletApplys")
    @ApiOperation(value = "获取小程序应用权限", notes = "获取小程序应用权限", httpMethod = "GET")
    CommonResult queryAppletApplys();
}
