吴健
2024-11-19 a7cef0a252f9aeebf383e5bc5b208969e57288ff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.billion.main.controller;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.billion.common.core.controller.BaseController;
import com.billion.common.core.domain.R;
import com.billion.main.domain.DaParamCollection;
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;
import com.billion.main.service.DaParamCollectionService;
 
import javax.annotation.Resource;
 
/**
 * 简介说明:
 *
 * @author: Eric
 * @date: 2024-11-16 11:07:06
 * @version: 1.0
 */
@RestController
@RequestMapping("/daParamCollection")
public class DaParamCollectionController extends BaseController {
 
    @Resource
    private DaParamCollectionService daParamCollectionService;
 
    @GetMapping("/getPage")
    public R getDaParamCollectionPage(@RequestParam int current,@RequestParam int size ){
        Page<DaParamCollection> pageQuery = new Page<>(current,size);
        Page<DaParamCollection> page = daParamCollectionService.page(pageQuery,null);
        return R.ok(page);
    }
}