package com.template.api;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.template.annotation.DESRespondSecret;
import com.template.model.result.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;


@RequestMapping("/api/alumniOrg")
@Api(tags = {"AlumniOrgController"}, value = "部门")
public interface AlumniOrgControllerAPI {

    @GetMapping("/queryWeixiaoOrgs")
    @ApiOperation(value = "获取微校部门",httpMethod = "GET")
    CommonResult queryWeixiaoOrgs();


    @GetMapping(value = "/queryColleges")
    @ApiOperation(value = "获取学院下拉列表数据", notes = "获取学院下拉列表数据", httpMethod = "GET")
    CommonResult queryColleges();

    @GetMapping(value = "/queryPeriods")
    @ApiOperation(value = "获取学段下拉列表数据", notes = "获取学段下拉列表数据", httpMethod = "GET")
    CommonResult queryPeriods(@RequestParam int collegeId);

    @GetMapping(value = "/queryMajors")
    @ApiOperation(value = "获取专业下拉列表数据", notes = "获取专业下拉列表数据", httpMethod = "GET")
    CommonResult queryMajors(@RequestParam int periodId);

    @GetMapping(value = "/queryClasses")
    @ApiOperation(value = "获取班级下拉列表数据", notes = "获取班级下拉列表数据", httpMethod = "GET")
    CommonResult queryClasses(@RequestParam int majorId);

    /**
     * 获取部门树形图结构数据
     * @return
     */
    @GetMapping(value = "/queryOrgTree")
    CommonResult queryOrgTree();

}
