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
1eca0343
Commit
1eca0343
authored
Apr 27, 2026
by
KnowSky404
Browse files
fix: format bulk update account request
parent
53b24bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/handler/admin/account_handler.go
View file @
1eca0343
...
@@ -134,20 +134,20 @@ type UpdateAccountRequest struct {
...
@@ -134,20 +134,20 @@ type UpdateAccountRequest struct {
// BulkUpdateAccountsRequest represents the payload for bulk editing accounts
// BulkUpdateAccountsRequest represents the payload for bulk editing accounts
type
BulkUpdateAccountsRequest
struct
{
type
BulkUpdateAccountsRequest
struct
{
AccountIDs
[]
int64
`json:"account_ids"`
AccountIDs
[]
int64
`json:"account_ids"`
Filters
*
BulkUpdateAccountFilters
`json:"filters"`
Filters
*
BulkUpdateAccountFilters
`json:"filters"`
Name
string
`json:"name"`
Name
string
`json:"name"`
ProxyID
*
int64
`json:"proxy_id"`
ProxyID
*
int64
`json:"proxy_id"`
Concurrency
*
int
`json:"concurrency"`
Concurrency
*
int
`json:"concurrency"`
Priority
*
int
`json:"priority"`
Priority
*
int
`json:"priority"`
RateMultiplier
*
float64
`json:"rate_multiplier"`
RateMultiplier
*
float64
`json:"rate_multiplier"`
LoadFactor
*
int
`json:"load_factor"`
LoadFactor
*
int
`json:"load_factor"`
Status
string
`json:"status" binding:"omitempty,oneof=active inactive error"`
Status
string
`json:"status" binding:"omitempty,oneof=active inactive error"`
Schedulable
*
bool
`json:"schedulable"`
Schedulable
*
bool
`json:"schedulable"`
GroupIDs
*
[]
int64
`json:"group_ids"`
GroupIDs
*
[]
int64
`json:"group_ids"`
Credentials
map
[
string
]
any
`json:"credentials"`
Credentials
map
[
string
]
any
`json:"credentials"`
Extra
map
[
string
]
any
`json:"extra"`
Extra
map
[
string
]
any
`json:"extra"`
ConfirmMixedChannelRisk
*
bool
`json:"confirm_mixed_channel_risk"`
// 用户确认混合渠道风险
ConfirmMixedChannelRisk
*
bool
`json:"confirm_mixed_channel_risk"`
// 用户确认混合渠道风险
}
}
type
BulkUpdateAccountFilters
struct
{
type
BulkUpdateAccountFilters
struct
{
...
...
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