package com.cxy.classroll.teacher.client;

import com.cxy.classroll.common.result.Result;
import com.cxy.classroll.model.entity.Lesson;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-teacher")
public interface TeacherFeignClient {

    @GetMapping("/teacher/getteacherlessonlist/{id}")
    public Result<List<Lesson>> getTeacherLessonList(@PathVariable Long id);

    @GetMapping("/teacher/classstart/{lessonid}")
    public Result<Boolean> classStart(@PathVariable Long lessonid);

    @GetMapping("/teacher/classend/{lessonid}")
    public Result<Boolean> classEnd(@PathVariable Long lessonid);
}
