diff --git a/jeecg-boot-module/jeecg-module-service/src/main/java/org/jeecg/modules/service/controller/AuthUserController.java b/jeecg-boot-module/jeecg-module-service/src/main/java/org/jeecg/modules/service/controller/AuthUserController.java new file mode 100644 index 0000000..f6f10a9 --- /dev/null +++ b/jeecg-boot-module/jeecg-module-service/src/main/java/org/jeecg/modules/service/controller/AuthUserController.java @@ -0,0 +1,68 @@ +package org.jeecg.modules.service.controller; + +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import java.io.IOException; +import java.io.UnsupportedEncodingException; +import java.net.URLDecoder; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.servlet.http.HttpServletResponse; +import org.apache.commons.lang3.StringUtils; +import org.jeecg.common.api.vo.Result; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.common.system.query.QueryRuleEnum; +import org.jeecg.common.util.oConvertUtils; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import lombok.extern.slf4j.Slf4j; + +import org.jeecg.modules.service.entity.AuthUser; +import org.jeecg.modules.service.service.IAuthUserService; +import org.jeecg.modules.service.vo.RecommendUserVO; +import org.jeecgframework.poi.excel.ExcelImportUtil; +import org.jeecgframework.poi.excel.def.NormalExcelConstants; +import org.jeecgframework.poi.excel.entity.ExportParams; +import org.jeecgframework.poi.excel.entity.ImportParams; +import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; +import org.jeecg.common.system.base.controller.JeecgController; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import org.springframework.web.multipart.MultipartHttpServletRequest; +import org.springframework.web.servlet.ModelAndView; +import com.alibaba.fastjson.JSON; +import io.swagger.v3.oas.annotations.tags.Tag; +import io.swagger.v3.oas.annotations.Operation; +import org.jeecg.common.aspect.annotation.AutoLog; +import org.apache.shiro.authz.annotation.RequiresPermissions; +/** + * @Description: 微信用户档案 + * @Author: jeecg-boot + * @Date: 2025-09-28 + * @Version: V1.0 + */ +@Tag(name="微信用户档案") +@RestController +@RequestMapping("/service/authUser") +@Slf4j +public class AuthUserController extends JeecgController { + @Autowired + private IAuthUserService authUserService; + + /** + *我的-推荐用户列表 + */ + @RequestMapping(value = "/recommendUser", method = RequestMethod.GET) + public Result recommendUser(@RequestParam (name = "userId") String userId) { + if (StringUtils.isBlank(userId)){ + return Result.error("用户id不能为空"); + } + RecommendUserVO vo = authUserService.recommendUser(userId); + return Result.OK(vo); + } +}