| | |
| | | import com.xinquan.common.core.constant.SecurityConstants; |
| | | import com.xinquan.common.core.constant.ServiceNameConstants; |
| | | import com.xinquan.common.core.domain.R; |
| | | import com.xinquan.common.core.utils.page.PageDTO; |
| | | import com.xinquan.system.api.domain.*; |
| | | import com.xinquan.system.api.domain.vo.AppUserVO; |
| | | import com.xinquan.system.api.model.AppCaptchaBody; |
| | | import com.xinquan.system.api.model.AppLoginUser; |
| | | import com.xinquan.system.api.model.AppVerifyCellPhoneBody; |
| | | import com.xinquan.system.api.model.AppWXLoginBody; |
| | | import com.xinquan.user.api.domain.AppUser; |
| | | import com.xinquan.user.api.domain.dto.AppUserDTO; |
| | | import com.xinquan.user.api.factory.RemoteAppUserFallbackFactory; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestHeader; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @author mitao |
| | |
| | | public interface RemoteAppUserService { |
| | | |
| | | /** |
| | | * 后台远程调用 新增回复消息 |
| | | * @return |
| | | */ |
| | | @PostMapping("/client/user/notice-record/addNoticeReplay") |
| | | public R addNoticeReplay(@RequestBody NoticeRecord noticeRecord); |
| | | /** |
| | | * 远程调用根据用户id 查询用户 |
| | | */ |
| | | @PostMapping("/client/app-user/getAppUserById/{id}") |
| | | public R<AppUser> getAppUserById(@PathVariable("id")String id); |
| | | /** |
| | | * 远程调用根据用户名称 查询用户 |
| | | */ |
| | | @PostMapping("/client/app-user/getAppUserByName/{name}") |
| | | public R<List<Long>> getAppUserByName(@PathVariable("name")String name); |
| | | @PostMapping("/getAppUserByNameOrPhone/{name}") |
| | | public R<List<Long>> getAppUserByNameOrPhone(@PathVariable("name")String name); |
| | | @PostMapping("/client/tag/queryTag/{name}") |
| | | public R<List<Tag>> queryTag(@PathVariable("name") String name); |
| | | @PostMapping("/client/app-user/getCurrentUser") |
| | | public R<AppUserVO> getCurrentUser(); |
| | | @GetMapping("/client/app-user-course/getPayCourse/{pageCurr}/{pageSize}") |
| | | R<PageDTO<AppUserCourse>> getPayCourse(@PathVariable("pageCurr")Integer pageCurr, @PathVariable("pageSize")Integer pageSize); |
| | | @PostMapping("/user/app-user-viewing-history/getCourseStudyHistory") |
| | | R<AppUserViewingHistory> getCourseStudyHistory(@RequestParam("chapterId") Long chapterId); |
| | | |
| | | @GetMapping("/client/app-user-course/getUserByCourseId/{courseId}") |
| | | R<List<AppUser>> getUserByCourseId(@PathVariable("courseId") Long courseId); |
| | | |
| | | /** |
| | | * 获取未注销的用户信息 |
| | | * |
| | | * @param dto |