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

No files matched your search

+5
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
}