Search in sources :

Example 1 with MarketGroup

use of com.eservice.api.model.market_group.MarketGroup in project sinsim by WilsonHu.

the class MarketGroupController method list.

@PostMapping("/list")
public Result list(@RequestParam(defaultValue = "0") Integer page, @RequestParam(defaultValue = "0") Integer size) {
    PageHelper.startPage(page, size);
    List<MarketGroup> list = marketGroupService.findAll();
    PageInfo pageInfo = new PageInfo(list);
    return ResultGenerator.genSuccessResult(pageInfo);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) MarketGroup(com.eservice.api.model.market_group.MarketGroup) PostMapping(org.springframework.web.bind.annotation.PostMapping)

Aggregations

MarketGroup (com.eservice.api.model.market_group.MarketGroup)1 PageInfo (com.github.pagehelper.PageInfo)1 PostMapping (org.springframework.web.bind.annotation.PostMapping)1