feat(subscribe): add endpoint to reset all subscribe tokens

This commit is contained in:
Chang lue Tsen
2025-11-18 08:37:57 -05:00
parent c8b3683cf2
commit 8a4cfcbdb3
5 changed files with 93 additions and 0 deletions
+7
View File
@@ -102,6 +102,9 @@ type (
BatchDeleteSubscribeRequest {
Ids []int64 `json:"ids" validate:"required"`
}
ResetAllSubscribeTokenResponse {
Success bool `json:"success"`
}
)
@server (
@@ -157,5 +160,9 @@ service ppanel {
@doc "Subscribe sort"
@handler SubscribeSort
post /sort (SubscribeSortRequest)
@doc "Reset all subscribe tokens"
@handler ResetAllSubscribeToken
post /reset_all_token returns (ResetAllSubscribeTokenResponse)
}