package com.template.api;

import com.template.model.request.insertCategoryRequest;
import com.template.model.request.updateCategoryRequest;
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.*;


@RequestMapping("/api/alumniCategoryImage")
@Api(tags = {"AlumniCategoryImageController"}, value = "相册分类")
public interface AlumniCategoryImageControllerAPI {

    @PostMapping(value = "/insertCategoryImage")
    @ApiOperation(value = "新增相册分类数据", notes = "新增相册分类数据", httpMethod = "POST")
    CommonResult insertCategoryImage(@Validated @RequestBody insertCategoryRequest icr, BindingResult bindingResult);

    @PostMapping(value = "/updateCategoryImage")
    @ApiOperation(value = "更新相册分类数据", notes = "更新相册分类数据", httpMethod = "POST")
    CommonResult updateCategoryImage(@Validated @RequestBody updateCategoryRequest icr, BindingResult bindingResult);

    @GetMapping(value = "/deleteCategoryImage")
    @ApiOperation(value = "删除相册分类数据", notes = "删除相册分类数据", httpMethod = "GET")
    CommonResult deleteCategoryImage(@RequestParam int id);

    /**
     * @param currentPage   当前页
     * @param pageCount     一页数据条数
     * @param startTime     创建开始时间
     * @param endTime       创建结束时间
     * @return
     */
    @GetMapping(value = "/queryCategoryImagePage")
    @ApiOperation(value = "获取相册分类分页数据", notes = "获取相册分类分页数据", httpMethod = "GET")
    CommonResult queryCategoryImagePage(@RequestParam int currentPage, @RequestParam int pageCount, String startTime, String endTime);


    @GetMapping(value = "/queryCategoryImages")
    @ApiOperation(value = "获取相册分类下拉列表数据", notes = "获取相册分类下拉列表数据", httpMethod = "GET")
    CommonResult queryCategoryImages();

}
