fix: format bulk update account request
This commit is contained in:
parent
53b24bc2d8
commit
1eca03432a
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user