Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
95e366b6
Commit
95e366b6
authored
Mar 06, 2026
by
erio
Browse files
fix: add missing IncrementQuotaUsed and ResetQuotaUsed to stubAccountRepo in api_contract_test
parent
77701143
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/server/api_contract_test.go
View file @
95e366b6
...
...
@@ -1096,6 +1096,14 @@ func (s *stubAccountRepo) UpdateExtra(ctx context.Context, id int64, updates map
return
errors
.
New
(
"not implemented"
)
}
func
(
s
*
stubAccountRepo
)
IncrementQuotaUsed
(
ctx
context
.
Context
,
id
int64
,
amount
float64
)
error
{
return
errors
.
New
(
"not implemented"
)
}
func
(
s
*
stubAccountRepo
)
ResetQuotaUsed
(
ctx
context
.
Context
,
id
int64
)
error
{
return
errors
.
New
(
"not implemented"
)
}
func
(
s
*
stubAccountRepo
)
BulkUpdate
(
ctx
context
.
Context
,
ids
[]
int64
,
updates
service
.
AccountBulkUpdate
)
(
int64
,
error
)
{
s
.
bulkUpdateIDs
=
append
([]
int64
{},
ids
...
)
return
int64
(
len
(
ids
)),
nil
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment