From eab8b137b2209bd5650121b39152d40ce9d773fc Mon Sep 17 00:00:00 2001 From: icey-yu <1186114839@qq.com> Date: Fri, 14 Feb 2025 12:15:35 +0800 Subject: [PATCH] feat: search system account --- internal/rpc/user/user.go | 2 +- pkg/common/storage/controller/user.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rpc/user/user.go b/internal/rpc/user/user.go index 6f1ab1149..d4fe7ecc4 100644 --- a/internal/rpc/user/user.go +++ b/internal/rpc/user/user.go @@ -582,7 +582,7 @@ func (s *userServer) SearchNotificationAccount(ctx context.Context, req *pbuser. // If no keyword, find users with notification settings if req.AppManagerLevel != nil { - users, err = s.db.FindNotification(ctx, *req.AppManagerLevel) + users, err = s.db.FindNotification(ctx, int64(*req.AppManagerLevel)) if err != nil { return nil, err } diff --git a/pkg/common/storage/controller/user.go b/pkg/common/storage/controller/user.go index e58f42ca5..a8ef1033e 100644 --- a/pkg/common/storage/controller/user.go +++ b/pkg/common/storage/controller/user.go @@ -39,7 +39,7 @@ type UserDatabase interface { // Find userInfo By Nickname FindByNickname(ctx context.Context, nickname string) (users []*model.User, err error) // FindNotification find system account by level - FindNotification(ctx context.Context, level int32) (users []*model.User, err error) + FindNotification(ctx context.Context, level int64) (users []*model.User, err error) // FindSystemAccount find all system account FindSystemAccount(ctx context.Context) (users []*model.User, err error) // Create Insert multiple external guarantees that the userID is not repeated and does not exist in the storage