|
|
@@ -1,10 +1,14 @@
|
|
|
package com.yhlxj.web.controller.manage;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.yhlxj.dao.model.dto.Result;
|
|
|
import com.yhlxj.dao.model.entity.WebInfo;
|
|
|
+import com.yhlxj.dao.model.entity.WholesaleUser;
|
|
|
import com.yhlxj.dao.model.enums.GatewayResponse;
|
|
|
import com.yhlxj.service.wholesale.WebInfoService;
|
|
|
+import com.yhlxj.service.wholesale.WholesaleUserService;
|
|
|
import com.yhlxj.web.util.StpUserUtil;
|
|
|
import com.yhlxj.web.util.StpWholesaleUtil;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@@ -17,6 +21,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
/**
|
|
|
+ * 个人网站
|
|
|
* @author zwhui
|
|
|
* @date 2025/6/3 17:12
|
|
|
*/
|
|
|
@@ -29,6 +34,8 @@ public class WholesaleController {
|
|
|
|
|
|
private final HttpServletResponse response;
|
|
|
|
|
|
+ private final WholesaleUserService wholesaleUserService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 检查前缀是否存在
|
|
|
@@ -116,4 +123,13 @@ public class WholesaleController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询批发网站用户列表
|
|
|
+ */
|
|
|
+ @GetMapping("/user/list")
|
|
|
+ public Result<Page<WholesaleUser>> listUser(String username, @RequestParam(defaultValue = "1") Integer start, @RequestParam(defaultValue = "10") Integer limit) {
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(wholesaleUserService.page(new Page<>(start, limit),
|
|
|
+ Wrappers.lambdaQuery(WholesaleUser.class).like(WholesaleUser::getUsername, username)));
|
|
|
+ }
|
|
|
+
|
|
|
}
|