i18n: logs in rest pkgs

This commit is contained in:
HFO4
2022-10-08 18:51:52 +08:00
parent f2c53dda31
commit 644a326580
21 changed files with 66 additions and 65 deletions

View File

@@ -19,7 +19,7 @@ func NewResponseWithGobData(data interface{}) Response {
var w bytes.Buffer
encoder := gob.NewEncoder(&w)
if err := encoder.Encode(data); err != nil {
return Err(CodeInternalSetting, "无法编码返回结果", err)
return Err(CodeInternalSetting, "Failed to encode response content", err)
}
return Response{Data: w.Bytes()}