重构:完成架构一致性整改与生命周期收口
This commit is contained in:
1 parent
55904cc409
commit
9eb6be2875
344 files changed
+15961
-13926
No files matched your search
@@ -134,7 +134,7 @@ func assertUnifiedAPIError(t *testing.T, handler http.Handler, method, path, bod
|
||||
}
|
||||
// response 是统一错误响应 DTO。
|
||||
var response httpapi.ErrorResponse
|
||||
// decodeErr 表示错误响应 JSON 反序列化失败的原因。
|
||||
// decodeErr 记录当前操作失败原因响应 JSON 反序列化失败的原因。
|
||||
if decodeErr := json.Unmarshal(rec.Body.Bytes(), &response); decodeErr != nil {
|
||||
t.Fatalf("%s %s decode error: %v", method, path, decodeErr)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user