package com.malk.shangfeng.controller;

/**
 * 错误抛出与拦截详见 CatchException
 */

import com.malk.server.common.McR;
import com.malk.shangfeng.service.SFService;
import lombok.extern.slf4j.Slf4j;
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;

@Slf4j
@RestController
@RequestMapping
public class SFController {

    @Autowired
    private SFService sfService;

    @GetMapping("test")
    McR test() {

        sfService.syncU8Project();
        return McR.success();
    }
}
