package yangtz.cs.liu.campus.controller.common;

import com.core.utils.UploadToServer;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import yangtz.cs.liu.campus.service.common.ICountService;

@RestController
@RequestMapping("/school/count")
public class CountController extends BaseController {

    @Autowired
    private ICountService countService;

    //首页，我的任务，各数量
    @GetMapping("/myCount")
    public AjaxResult myCheck(){
        return AjaxResult.success(countService.myCount(getUserId()));
    }
}
