|
@ -40,6 +40,7 @@ func GetUserByToken(dbname, token string, url ...string) (map[string]string, err |
|
|
"IsVip": res.GetIsVip(), |
|
|
"IsVip": res.GetIsVip(), |
|
|
"Usercode": res.GetUsercode(), |
|
|
"Usercode": res.GetUsercode(), |
|
|
"GroupId": res.GetGroupId(), |
|
|
"GroupId": res.GetGroupId(), |
|
|
|
|
|
"Type": res.GetType(), |
|
|
}, nil |
|
|
}, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -84,6 +85,7 @@ func Login(dbname, account, password string, url ...string) (map[string]string, |
|
|
"Token": res.GetToken(), |
|
|
"Token": res.GetToken(), |
|
|
"Usercode": res.GetUsercode(), |
|
|
"Usercode": res.GetUsercode(), |
|
|
"GroupId": res.GetGroupId(), |
|
|
"GroupId": res.GetGroupId(), |
|
|
|
|
|
"Type": res.GetType(), |
|
|
}, nil |
|
|
}, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|