|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.ruoyi.account.api.factory.AppUserClientFallbackFactory; | 
|---|
|  |  |  | import com.ruoyi.account.api.model.AppUser; | 
|---|
|  |  |  | import com.ruoyi.account.api.model.AppUserShop; | 
|---|
|  |  |  | import com.ruoyi.common.core.constant.ServiceNameConstants; | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.R; | 
|---|
|  |  |  | import org.springframework.cloud.openfeign.FeignClient; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PostMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestParam; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author zhibing.pu | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param id | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("/appUser/getAppUserById") | 
|---|
|  |  |  | @PostMapping("/app-user/getAppUserById") | 
|---|
|  |  |  | AppUser getAppUserById(@RequestParam("id") Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据id编辑用户 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PostMapping("/appUser/editAppUserById") | 
|---|
|  |  |  | R<Void> editAppUserById(@RequestParam("appUser") AppUser appUser); | 
|---|
|  |  |  | @PostMapping("/app-user/editAppUserById") | 
|---|
|  |  |  | R<Void> editAppUserById(@RequestBody AppUser appUser); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/appUser/getCouponCount") | 
|---|
|  |  |  | @PostMapping("/app-user/getCouponCount") | 
|---|
|  |  |  | R<Long> getCouponCount(@RequestParam("userId")Long userId, @RequestParam("couponId") Integer couponId ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | *  根据用户id查询用户门店信息 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("/appUserShop/shop/{userId}") | 
|---|
|  |  |  | R<List<AppUserShop>> getAppUserShop(@PathVariable("userId") Long userId); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据用户id获取用户的祖籍列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @GetMapping("/appletLogin/getUserAncestorList") | 
|---|
|  |  |  | R<List<AppUser>> getUserAncestorList(@RequestParam("id") Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/app-user/getVipCount") | 
|---|
|  |  |  | R<Long> getVipCount(@RequestParam("userId")Long userId, @RequestParam("vipId") Integer vipId ); | 
|---|
|  |  |  | } | 
|---|