| | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | R<List<Member>> getMemberListByLevel(@RequestBody List<String> memberLevelList) { |
| | | return R.ok(memberService.getMemberListByLevel(memberLevelList)); |
| | | } |
| | | |
| | | /** |
| | | * 根据sys_user表的user_id查询member |
| | | * |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @InnerAuth |
| | | @GetMapping("/getMemberByUserId/{userId}") |
| | | R<Member> getMemberByUserId(@PathVariable("userId") Long userId) { |
| | | return R.ok(memberService.getMemberByUserId(userId)); |
| | | } |
| | | } |