package com.template.api;

import com.template.model.pojo.SmartAskForLeaveConfig;
import com.template.model.pojo.SmartVisitorParentsConfig;
import com.template.model.result.CommonResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/api/smartVisitorParentsConfig")
public interface SmartVisitorParentsConfigControllerAPI {

    @GetMapping(value = "/getClassId")
    @ApiOperation(value = "获取班级所对应的配置", notes = "获取班级所对应的配置", httpMethod = "GET")
    CommonResult getClassId(@RequestParam Integer page,@RequestParam Integer size, @RequestParam Integer classId);

    @PostMapping(value = "/update")
    @ApiOperation(value = "家长访客配置修改", notes = "家长访客配置修改", httpMethod = "POST")
    CommonResult update(@RequestBody SmartVisitorParentsConfig smartVisitorParentsConfig);

    @GetMapping(value = "/getUserId")
    @ApiOperation(value = "根据用户id获取所管理的班级配置", notes = "根据用户id获取所管理的班级配置", httpMethod = "GET")
    CommonResult getUserId(@RequestParam Integer userId);

}
