package com.ym.mec.web.controller.education;

import com.ym.mec.biz.dal.page.DegreeQueryInfo;
import com.ym.mec.biz.service.DegreeRegistrationService;
import com.ym.mec.common.controller.BaseController;
import com.ym.mec.common.entity.HttpResponseResult;
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;

@RequestMapping("eduDegree")
@Api(tags = "教务端考级报名服务")
@RestController
public class EduDegreeController extends BaseController {

    @Autowired
    private DegreeRegistrationService degreeRegistrationService;


    @ApiOperation(value = "查询收费列表")
    @GetMapping("/queryPage")
    public HttpResponseResult queryPage(DegreeQueryInfo queryInfo) {
        queryInfo.setSort("create_time_");
        queryInfo.setOrder("DESC");
        return succeed(degreeRegistrationService.getPageList(queryInfo));
    }

}
