|
|
@ -46,7 +46,7 @@ func GetUserByToken(dbname, token string, url ...string) (map[string]string, err |
|
|
|
"Type": res.GetType(), |
|
|
|
"ThirdId": res.GetThirdId(), |
|
|
|
"Platform": res.GetPlatform(), |
|
|
|
"LockFans": res.LockFans(), |
|
|
|
"LockFans": res.GetLockFans(), |
|
|
|
}, nil |
|
|
|
} |
|
|
|
|
|
|
@ -59,9 +59,7 @@ func GetUserByToken(dbname, token string, url ...string) (map[string]string, err |
|
|
|
func GetUserByUsername(dbname, username string, url ...string) (*UserResponse, error) { |
|
|
|
|
|
|
|
conn, err := rpc_server_conn(url...) |
|
|
|
if err != nil { |
|
|
|
return map[string]string{}, err |
|
|
|
} |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
@ -86,9 +84,7 @@ func GetUserByUsername(dbname, username string, url ...string) (*UserResponse, e |
|
|
|
func GetUserByUsercode(dbname, usercode string, url ...string) (*UserResponse, error) { |
|
|
|
|
|
|
|
conn, err := rpc_server_conn(url...) |
|
|
|
if err != nil { |
|
|
|
return map[string]string{}, err |
|
|
|
} |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|