File tree Expand file tree Collapse file tree
src/main/java/org/mushare/pluto Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import java .io .UnsupportedEncodingException ;
88import java .security .Signature ;
99import java .util .Base64 ;
10+ import java .util .List ;
1011
1112public class Pluto {
1213
1314 private PublicKeyManager keyManager ;
15+ private String server ;
1416 private String appId ;
1517
1618 private Pluto () {
@@ -21,6 +23,7 @@ private Pluto() {
2123
2224 public static void setup (String server , String appId ) {
2325 shared .keyManager = new PublicKeyManager (server );
26+ shared .server = server ;
2427 shared .appId = appId ;
2528 }
2629
@@ -68,4 +71,9 @@ public static PlutoUser auth(String token) throws PlutoException {
6871 return new PlutoUser (payload );
6972 }
7073
74+ public static List <PlutoUserInfo > fetUserInfos (long [] userIds ) {
75+
76+ return null ;
77+ }
78+
7179}
Original file line number Diff line number Diff line change 1+ package org .mushare .pluto ;
2+
3+ public class PlutoUserInfo {
4+ private long userId ;
5+ private String name ;
6+ private String avatar ;
7+
8+ public long getUserId () {
9+ return userId ;
10+ }
11+
12+ public void setUserId (long userId ) {
13+ this .userId = userId ;
14+ }
15+
16+ public String getName () {
17+ return name ;
18+ }
19+
20+ public void setName (String name ) {
21+ this .name = name ;
22+ }
23+
24+ public String getAvatar () {
25+ return avatar ;
26+ }
27+
28+ public void setAvatar (String avatar ) {
29+ this .avatar = avatar ;
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments