package com.ruoyi.app.controller.train;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.utils.JWTUtil;
import com.ruoyi.service.TrainService;
import com.ruoyi.system.domain.AppLogin;
import com.ruoyi.system.dto.ContractorUserDTO;
import com.ruoyi.system.service.IAppLoginService;
import com.ruoyi.system.service.IContractorUserService;
import com.ruoyi.system.service.ISysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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;

import java.util.Objects;

/**
 * APP首页统计
 */
@Api(tags = "APP首页统计-培训")
@RestController
@RequestMapping("/app/train/homepage")
public class TrainHomePageAppController extends BaseController {
    @Autowired
    private TrainService trainService;

    /**
     * APP首页统计
     * @return
     */
    @ApiOperation("培训计划")
    @GetMapping("/trainStatistics")
    public AjaxResult trainStatistics() {
        return AjaxResult.success(trainService.trainStatistics());
    }

}
