package jnpf.cultivate.v2.controller.web.teaching;

import jnpf.base.ActionResult;
import jnpf.base.vo.PageListVO;
import jnpf.cultivate.service.TeachingRecordPracticeService;
import jnpf.model.cultivate.dto.teaching.TeachingBaseFilter;
import jnpf.model.cultivate.vo.teaching.SummaryPageListVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * web练习管理
 */
@Slf4j
@RestController
@RequestMapping("/v2/teachingRecord")
public class V2TeachingRecordController {
    @Autowired
    private TeachingRecordPracticeService recordPracticeService;


    /**
     * 汇总数据-练习-分页列表
     * @param req
     * @return ActionResult<PageListVO<TeachingDataListVo>>
     */
    @PostMapping("/v2/summaryPageList")
    public ActionResult<PageListVO<SummaryPageListVo>> summaryPageList(@Valid @RequestBody TeachingBaseFilter req) {
        return ActionResult.success();
    }
}