2024-11-15 13:39:23: merge [main:ac1457e534d62c78d515db685ff817ffd1998a06];

This commit is contained in:
txix committed 2024-11-15 13:39:23 +03:00
1 parent daf35df301
commit f8074400a1
12 files changed
+141 -172

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ func (r Audit) Insert(ctx context.Context, log entity.Audit) (int, error) {
return id, nil
}
//nolint:gosec
func (r Audit) All(ctx context.Context, limit int, offset int) ([]entity.Audit, error) {
ctx = sql_metrics.OperationLabelToContext(ctx, "Audit.All")
+1
View File
@@ -76,6 +76,7 @@ func (r Token) RevokeByUserId(ctx context.Context, userId int64, updatedAt time.
return nil
}
//nolint:gosec
func (r Token) All(ctx context.Context, limit int, offset int) ([]entity.Token, error) {
ctx = sql_metrics.OperationLabelToContext(ctx, "Token.All")
+1
View File
@@ -101,6 +101,7 @@ func (u User) UpsertBySudirUserId(ctx context.Context, user entity.User) (*entit
return &result, nil
}
//nolint:gosec
func (u User) GetUsers(ctx context.Context, ids []int64, offset, limit int, email string) ([]entity.User, error) {
ctx = sql_metrics.OperationLabelToContext(ctx, "User.GetUsers")