| | |
| | | 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.web.domain.AjaxResult; |
| | | import com.xinquan.system.api.domain.SysUser; |
| | | import com.xinquan.system.api.factory.RemoteUserFallbackFactory; |
| | | import com.xinquan.system.api.model.LoginUser; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | 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.RequestHeader; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * 用户服务 |
| | |
| | | @FeignClient(contextId = "remoteUserService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class) |
| | | public interface RemoteUserService |
| | | { |
| | | @PostMapping("/user/removeByAppUserId/{id}") |
| | | public AjaxResult removeByAppUserId(@PathVariable("id") Long id); |
| | | |
| | | /** |
| | | * 远程调用 根据系统用户id查询用户信息 |
| | | * @return |
| | | */ |
| | | @PostMapping("/user/getSysUserById/{id}") |
| | | public R<SysUser> getSysUserById(@PathVariable("id")String id); |
| | | /** |
| | | * 通过用户名查询用户信息 |
| | | * |
| | |
| | | */ |
| | | @PostMapping("/user/app-register") |
| | | public R<SysUser> registerAppUserInfo(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); |
| | | @PostMapping("/system/content-setting/getCoursePageList") |
| | | public R<String> getCourseList(@RequestParam(value = "contentType", required = true) int contentType); |
| | | } |