| | |
| | | import com.ruoyi.common.security.annotation.InnerAuth; |
| | | import com.ruoyi.member.service.IMemberService; |
| | | import com.ruoyi.system.api.domain.Member; |
| | | import com.ruoyi.system.api.domain.dto.MemberDTO; |
| | | import com.ruoyi.system.api.domain.dto.updMembeOneDTO; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/list-by-ids") |
| | | R<List<Member>> getMemberListByIds(@RequestParam("memberIdList") Set<Long> memberIdList) { |
| | | R<List<Member>> getMemberListByIds( |
| | | @RequestParam("memberIdList") Collection<Long> memberIdList) { |
| | | return R.ok(memberService.getMemberListByIds(memberIdList)); |
| | | } |
| | | |
| | | @PostMapping("/getMembeOne") |
| | | @InnerAuth |
| | | public R<Member> getMembeOne(@RequestBody Long userId) { |
| | | return R.ok(memberService.getById(userId)); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/updMembeOne") |
| | | @InnerAuth |
| | | public R updMembeOne(@RequestBody updMembeOneDTO dMembeOneDTO) { |
| | | memberService.updMembeOne(dMembeOneDTO); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/list-by-condition") |
| | | R<List<Member>> getMemberListByCondition(@RequestBody MemberDTO memberDTO) { |
| | | return R.ok(memberService.getMemberListByCondition(memberDTO)); |
| | | } |
| | | |
| | | @InnerAuth |
| | | @PostMapping("/list-by-level") |
| | | R<List<Member>> getMemberListByLevel(@RequestBody List<String> memberLevelList) { |
| | | return R.ok(memberService.getMemberListByLevel(memberLevelList)); |
| | | } |
| | | } |