| | |
| | | package com.ycl.jxkg.controller.admin; |
| | | |
| | | import com.ycl.jxkg.base.BaseApiController; |
| | | import com.ycl.jxkg.base.RestResponse; |
| | | import com.ycl.jxkg.base.Result; |
| | | import com.ycl.jxkg.service.*; |
| | | import com.ycl.jxkg.utility.DateTimeUtil; |
| | | import com.ycl.jxkg.viewmodel.admin.dashboard.IndexVM; |
| | | import com.ycl.jxkg.utils.DateTimeUtil; |
| | | import com.ycl.jxkg.vo.admin.dashboard.IndexVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | |
| | | } |
| | | |
| | | @RequestMapping(value = "/index", method = RequestMethod.POST) |
| | | public RestResponse<IndexVM> Index() { |
| | | IndexVM vm = new IndexVM(); |
| | | public Result<IndexVO> Index() { |
| | | IndexVO vm = new IndexVO(); |
| | | |
| | | Integer examPaperCount = examPaperService.selectAllCount(); |
| | | Integer questionCount = questionService.selectAllCount(); |
| | |
| | | vm.setMothDayDoExamQuestionValue(mothDayDoExamQuestionValue); |
| | | |
| | | vm.setMothDayText(DateTimeUtil.MothDay()); |
| | | return RestResponse.ok(vm); |
| | | return Result.ok(vm); |
| | | } |
| | | } |