package com.yizhi.application.course.controller;

import com.yizhi.course.application.feign.CourseStatusSyncClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 课程同步
 */
@RestController
@RequestMapping("/manage/course/sync")
public class CourseStatusSyncController {

    @Autowired
    private CourseStatusSyncClient courseStatusSyncClient;
    /**
     * 培训项目完成到课程
     * @return
     */
    @GetMapping("/sendFinishStatus")
    public String TrainningFinishToCourse(){
        courseStatusSyncClient.TrainningFinishToCourse();
        return "ok";
    }
}
