package com.fs.user; import com.fs.common.core.controller.BaseController; import com.fs.common.core.domain.R; import com.fs.store.param.h5.FsUserPageListParam; import com.fs.store.service.IFsUserService; import com.fs.store.vo.h5.*; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import java.util.*; @Api(tags = "会员管理接口") @RestController @RequestMapping("/user/fsUser") @AllArgsConstructor public class FsUserAdminController extends BaseController { @Autowired private IFsUserService fsUserService; @PreAuthorize("@ss.hasPermi('user:fsUser:list')") @PostMapping("/list") @ApiOperation("会员列表(与移动端使用的相同查询)") public R pageList(@RequestBody FsUserPageListParam param) { PageHelper.startPage(param.getPageNum(), param.getPageSize()); List list = fsUserService.selectFsUserPageList(param); PageInfo pageInfo = new PageInfo<>(list); Map result = new HashMap<>(); result.put("rows", pageInfo.getList()); result.put("total", pageInfo.getTotal()); return R.ok(result); } }