无关风月
2024-11-04 64f7ccb9ef8b5a0618e65cddc14b981c1f108ba3
xinquan-api/xinquan-api-system/src/main/java/com/xinquan/system/api/RemoteUserService.java
@@ -6,12 +6,11 @@
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.*;
/**
 * 用户服务
@@ -21,6 +20,13 @@
@FeignClient(contextId = "remoteUserService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteUserService
{
    /**
     * 远程调用 根据系统用户id查询用户信息
     * @return
     */
    @PostMapping("/user/getSysUserById/{id}")
    public R<SysUser> getSysUserById(@PathVariable("id")String id);
    /**
     * 通过用户名查询用户信息
     *
@@ -49,4 +55,6 @@
     */
    @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);
}