proto modify

This commit is contained in:
wangchuxiao
2023-03-03 18:55:51 +08:00
parent ebe689324b
commit 3a93f60555
8 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import (
)
func (u *UserCheck) Access(ctx context.Context, ownerUserID string) (err error) {
_, err = u.GetUsersInfo(ctx, ownerUserID)
_, err = u.GetUserInfo(ctx, ownerUserID)
if err != nil {
return err
}
+1 -1
View File
@@ -47,7 +47,7 @@ func (u *UserCheck) GetUsersInfos(ctx context.Context, userIDs []string, complet
return resp.UsersInfo, nil
}
func (u *UserCheck) GetUsersInfo(ctx context.Context, userID string) (*sdkws.UserInfo, error) {
func (u *UserCheck) GetUserInfo(ctx context.Context, userID string) (*sdkws.UserInfo, error) {
users, err := u.GetUsersInfos(ctx, []string{userID}, true)
if err != nil {
return nil, err