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