ny
昨天 b6f169fe43a2b13f351aefc152374fc7f0bc8cb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package jnpf.permission;
 
import com.alibaba.fastjson.JSONObject;
import jnpf.exception.LoginException;
import jnpf.permission.entity.SocialsUserEntity;
import jnpf.permission.fallback.SocialsUserApiFallback;
import jnpf.permission.model.socails.SocialsUserInfo;
import jnpf.permission.model.socails.SocialsUserVo;
import jnpf.utils.FeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * 获取分组信息Api
 *
 * @author JNPF开发平台组
 * @version V3.4.2
 * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * @date 2022/8/19
 */
@FeignClient(name = FeignName.PERMISSION_SERVER_NAME, fallback = SocialsUserApiFallback.class, path = "/socials")
public interface SocialsUserApi {
 
    @GetMapping("/list")
    List<SocialsUserVo> getLoginList(@RequestParam("ticket") String ticket);
 
    @GetMapping("/callback")
    JSONObject binding(@RequestParam("source") String source,
                       @RequestParam(value = "userId", required = false) String userId,
                       @RequestParam(value = "tenantId", required = false) String tenantId,
                       @RequestParam(value = "code", required = false) String code,
                       @RequestParam(value = "state", required = false) String state );
 
    @GetMapping("/getSocialsUserInfo")
    SocialsUserInfo getSocialsUserInfo(@RequestParam("source") String source, @RequestParam("code") String code, @RequestParam(value = "state", required = false) String state) throws LoginException;
 
    @GetMapping("/getUserInfo")
    SocialsUserInfo getUserInfo(@RequestParam("source") String source, @RequestParam("uuid") String uuid, @RequestParam(value = "socialName", required = false) String socialName) throws LoginException;
 
    @GetMapping("/loginbind")
    void loginAutoBinding(@RequestParam("socialType") String socialType,
                          @RequestParam("socialUnionid") String socialUnionid,
                          @RequestParam("socialName") String socialName,
                          @RequestParam("userId") String userId,
                          @RequestParam(value = "tenantId", required = false) String tenantId );
 
    @GetMapping("/getInfoBySocialId")
    SocialsUserEntity getInfoBySocialId(@RequestParam("socialId") String socialId, @RequestParam("socialType") String socialType);
}