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
5cad90fb
Unverified
Commit
5cad90fb
authored
Dec 30, 2025
by
程序猿MT
Committed by
GitHub
Dec 30, 2025
Browse files
Merge branch 'Wei-Shaw:main' into main
parents
8cb2d3b3
ec87f39d
Changes
3
Show whitespace changes
Inline
Side-by-side
backend/internal/repository/fixtures_integration_test.go
View file @
5cad90fb
...
...
@@ -390,4 +390,3 @@ func mustBindAccountToGroup(t *testing.T, client *dbent.Client, accountID, group
Save
(
ctx
)
require
.
NoError
(
t
,
err
,
"create account_group"
)
}
backend/internal/repository/user_repo_integration_test.go
View file @
5cad90fb
...
...
@@ -76,8 +76,8 @@ func (s *UserRepoSuite) mustCreateSubscription(userID, groupID int64, mutate fun
create
:=
s
.
client
.
UserSubscription
.
Create
()
.
SetUserID
(
userID
)
.
SetGroupID
(
groupID
)
.
SetStartsAt
(
now
.
Add
(
-
1
*
time
.
Hour
))
.
SetExpiresAt
(
now
.
Add
(
24
*
time
.
Hour
))
.
SetStartsAt
(
now
.
Add
(
-
1
*
time
.
Hour
))
.
SetExpiresAt
(
now
.
Add
(
24
*
time
.
Hour
))
.
SetStatus
(
service
.
SubscriptionStatusActive
)
.
SetAssignedAt
(
now
)
.
SetNotes
(
""
)
...
...
@@ -507,4 +507,3 @@ func (s *UserRepoSuite) TestCRUD_And_Filters_And_AtomicUpdates() {
s
.
Require
()
.
Len
(
users
,
1
,
"ListWithFilters len mismatch"
)
s
.
Require
()
.
Equal
(
user2
.
ID
,
users
[
0
]
.
ID
,
"ListWithFilters result mismatch"
)
}
backend/internal/service/api_key_service_delete_test.go
View file @
5cad90fb
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