package com.seer.teach.teacher.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 *
 * <p>
 *
 * </p >
 *
 * @author Captain
 * @since 2025-09-20 15:55
 */
@FeignClient(name = ApiConstants.SERVER_NAME, contextId = "learningDurationServiceApi", path = "/seer/teacher")
public interface LearningDurationServiceApi {

    @PostMapping("/saveLearningDuration")
    void saveLearningDuration(@RequestParam("id") Integer id,
                                     @RequestParam("device") String device,
                                     @RequestParam("type") Integer type,
                                     @RequestParam("time") BigDecimal time);
}
