package com.whyc.controller;
|
|
import com.github.pagehelper.PageInfo;
|
import com.whyc.dto.Response;
|
import com.whyc.pojo.db_abe_testdata.AbeTestDataInf;
|
import com.whyc.service.AbeTestDataInfService;
|
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.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
@Api(tags = "活化测试数据")
|
@RestController
|
@RequestMapping("abeTestDataInf")
|
public class AbeTestDataInfController {
|
|
@Autowired
|
private AbeTestDataInfService service;
|
|
@ApiOperation("查询分页")
|
@GetMapping("getPage")
|
public Response<PageInfo<AbeTestDataInf>> getPage(@RequestParam int pageNum, @RequestParam int pageSize){
|
return service.getPage(pageNum,pageSize);
|
}
|
|
@ApiOperation("查询指定任务编号的活化测试数据")
|
@GetMapping("getByTaskNo")
|
public Response<AbeTestDataInf> getByTaskNo(@RequestParam String taskNo){
|
return service.getByTaskNo(taskNo);
|
}
|
|
|
}
|