Remove warnings field from BaseResponse to fully ignore API warnings
This commit is contained in:
@@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user