qrs hace 2 meses
padre
commit
261cc287f6

+ 2 - 5
alien-store/src/main/java/shop/alien/store/controller/PlatformLifeUserController.java

@@ -4,10 +4,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
 import io.swagger.annotations.*;
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
-import org.springframework.web.bind.annotation.CrossOrigin;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 import shop.alien.entity.result.R;
 import shop.alien.entity.store.LifeUser;
 import shop.alien.entity.store.vo.LifeUserVo;
@@ -30,7 +27,7 @@ public class PlatformLifeUserController {
             @ApiImplicitParam(name = "realName", value = "姓名", dataType = "String", paramType = "query"),
             @ApiImplicitParam(name = "userPhone", value = "手机号码", dataType = "String", paramType = "query")})
     @GetMapping("/getUserList")
-    public R<IPage<LifeUserVo>> getUserList(Integer page, Integer size, String realName, String userPhone) {
+    public R<IPage<LifeUserVo>> getUserList(@RequestParam("page") Integer page, @RequestParam("size") Integer size, String realName, String userPhone) {
         log.info("PlatformLifeUserController.getUserList?page={},size={},name={},phone={}", page, size, realName, userPhone);
         IPage<LifeUserVo> userList = platformLifeUserService.getUserList(page, size, realName, userPhone);
         return R.data(userList);