| | |
| | | package com.panzhihua.service_user.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.PageDTO; |
| | | import com.panzhihua.common.model.dtos.community.ExportUserDTO; |
| | | import com.panzhihua.common.model.dtos.community.NoticeReadDTO; |
| | | import com.panzhihua.common.model.dtos.user.EexcelUserDTO; |
| | | import com.panzhihua.common.model.dtos.user.PageFeedBackDTO; |
| | |
| | | import com.panzhihua.service_user.service.SysUserInputService; |
| | | import com.panzhihua.service_user.service.UserService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | } |
| | | return R.ok(communityUserInfoVO); |
| | | } |
| | | |
| | | /** |
| | | * 用户搜索了就下载搜索的用户否则下载所有用户 |
| | | * @param exportUserDTO 用户搜索内容 |
| | | * @return List<EexcelUserDTO> excel内容 |
| | | */ |
| | | @PostMapping("export") |
| | | public R export(@RequestBody ExportUserDTO exportUserDTO){ |
| | | return userService.export(exportUserDTO); |
| | | } |
| | | |
| | | /** |
| | | * 通过手机号码查询用户信息 |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | @GetMapping("getUserByPhone") |
| | | public R getSysUserVOByPhone(@RequestParam(value = "phone") String phone){ |
| | | return userService.getSysUserVOByPhone(phone); |
| | | } |
| | | } |