mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-27 18:59:50 +08:00
feat(accounts): 按账号自动同步上游分组名称与备注
This commit is contained in:
1 parent
a95c9e2631
commit
03aa05fd9f
26 files changed
+433
-162
No files matched your search
@@ -136,6 +136,7 @@ type CreateAccountRequest struct {
|
||||
ExpiresAt *int64 `json:"expires_at"`
|
||||
AutoPauseOnExpired *bool `json:"auto_pause_on_expired"`
|
||||
ProbeEnabled *bool `json:"upstream_billing_probe_enabled"`
|
||||
GroupSyncEnabled *bool `json:"upstream_billing_group_sync_enabled"`
|
||||
ConfirmMixedChannelRisk *bool `json:"confirm_mixed_channel_risk"` // 用户确认混合渠道风险
|
||||
}
|
||||
|
||||
@@ -157,6 +158,7 @@ type UpdateAccountRequest struct {
|
||||
ExpiresAt *int64 `json:"expires_at"`
|
||||
AutoPauseOnExpired *bool `json:"auto_pause_on_expired"`
|
||||
ProbeEnabled *bool `json:"upstream_billing_probe_enabled"`
|
||||
GroupSyncEnabled *bool `json:"upstream_billing_group_sync_enabled"`
|
||||
RateSyncEnabled *bool `json:"upstream_billing_rate_sync_enabled"`
|
||||
ConfirmMixedChannelRisk *bool `json:"confirm_mixed_channel_risk"` // 用户确认混合渠道风险
|
||||
}
|
||||
@@ -1062,6 +1064,7 @@ func (h *AccountHandler) Create(c *gin.Context) {
|
||||
ExpiresAt: req.ExpiresAt,
|
||||
AutoPauseOnExpired: req.AutoPauseOnExpired,
|
||||
ProbeEnabled: req.ProbeEnabled,
|
||||
GroupSyncEnabled: req.GroupSyncEnabled,
|
||||
SkipMixedChannelCheck: skipCheck,
|
||||
})
|
||||
if execErr != nil {
|
||||
@@ -1194,6 +1197,7 @@ func (h *AccountHandler) Update(c *gin.Context) {
|
||||
ExpiresAt: req.ExpiresAt,
|
||||
AutoPauseOnExpired: req.AutoPauseOnExpired,
|
||||
ProbeEnabled: req.ProbeEnabled,
|
||||
GroupSyncEnabled: req.GroupSyncEnabled,
|
||||
RateSyncEnabled: req.RateSyncEnabled,
|
||||
SkipMixedChannelCheck: skipCheck,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user