package com.seer.teach.teacher.api;

import com.seer.teach.teacher.api.dto.CheckAnalysisReqDTO;
import com.seer.teach.teacher.api.dto.CurrentAndFutureSubjectsDTO;
import com.seer.teach.teacher.api.dto.SubjectDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *
 * </p >
 *
 * @author Captain
 * @since 2025-07-26 16:11
 */
@FeignClient(name = ApiConstants.SERVER_NAME, contextId = "subjectServiceApi", path = "/seer/teacher")
public interface SubjectServiceApi {

    @PostMapping("/getCurrentAndFutureSubjects")
    List<CurrentAndFutureSubjectsDTO> getCurrentAndFutureSubjects(@RequestBody List<Integer> gradeIds);

    @GetMapping("/getSubjectById")
    String getBySubjectId(@RequestParam("id") Integer subjectId);

    @GetMapping("/getSubjectList")
    List<SubjectDTO> getSubjectlist();
}