1 Commits

Author SHA1 Message Date
d4cad7cb74 Remove warnings field from BaseResponse to fully ignore API warnings 2026-03-18 17:04:48 +03:00

View File

@@ -1,10 +1,5 @@
package api package api
type Warning struct {
Code int `json:"code"`
Wtxt string `json:"wtxt"`
}
type BaseResponse struct { type BaseResponse struct {
Task int `json:"task"` Task int `json:"task"`
Type int `json:"type"` Type int `json:"type"`
@@ -19,7 +14,6 @@ type BaseResponse struct {
ResAction int `json:"res_action"` ResAction int `json:"res_action"`
Errortxt string `json:"errortxt"` Errortxt string `json:"errortxt"`
AqErrortxt string `json:"aq_errortxt"` AqErrortxt string `json:"aq_errortxt"`
Warnings []Warning `json:"warnings"`
ErrorExtra interface{} `json:"error_extra"` ErrorExtra interface{} `json:"error_extra"`
} }