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
029994a8
Commit
029994a8
authored
Feb 05, 2026
by
LLLLLLiulei
Browse files
fix: remove unused listAllAccounts
parent
37047919
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/handler/admin/account_data.go
View file @
029994a8
...
...
@@ -318,24 +318,6 @@ func (h *AccountHandler) ImportData(c *gin.Context) {
response
.
Success
(
c
,
result
)
}
func
(
h
*
AccountHandler
)
listAllAccounts
(
ctx
context
.
Context
)
([]
service
.
Account
,
error
)
{
page
:=
1
pageSize
:=
dataPageCap
var
out
[]
service
.
Account
for
{
items
,
total
,
err
:=
h
.
adminService
.
ListAccounts
(
ctx
,
page
,
pageSize
,
""
,
""
,
""
,
""
)
if
err
!=
nil
{
return
nil
,
err
}
out
=
append
(
out
,
items
...
)
if
len
(
out
)
>=
int
(
total
)
||
len
(
items
)
==
0
{
break
}
page
++
}
return
out
,
nil
}
func
(
h
*
AccountHandler
)
listAllProxies
(
ctx
context
.
Context
)
([]
service
.
Proxy
,
error
)
{
page
:=
1
pageSize
:=
dataPageCap
...
...
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