feat: search system account

pull/3151/head
icey-yu 7 months ago
parent 70721836b6
commit eab8b137b2

@ -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
}

@ -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

Loading…
Cancel
Save