This commit is contained in:
Sakurasan
2024-04-21 00:27:35 +08:00
parent 8dbeeee9bf
commit 151757c2fe
5 changed files with 457 additions and 70 deletions

View File

@@ -328,3 +328,8 @@ type ErrResponse struct {
Code string `json:"code"`
} `json:"error"`
}
func (e *ErrResponse) ByteJson() []byte {
bytejson, _ := json.Marshal(e)
return bytejson
}