forked from mtusi2026/mtusi2026lab2
refactor(httpx): rename WriteInternal to WriteInternalError
This commit is contained in:
@@ -71,7 +71,7 @@ func (h *ChatHandler) Create(w http.ResponseWriter, r *http.Request) {
|
||||
)
|
||||
return
|
||||
case err != nil:
|
||||
httpx.WriteInternal(w, requestID)
|
||||
httpx.WriteInternalError(w, requestID)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ func (h *ChatHandler) Get(w http.ResponseWriter, r *http.Request) {
|
||||
)
|
||||
return
|
||||
case err != nil:
|
||||
httpx.WriteInternal(w, requestID)
|
||||
httpx.WriteInternalError(w, requestID)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ func (h *ChatHandler) List(w http.ResponseWriter, r *http.Request) {
|
||||
)
|
||||
return
|
||||
case err != nil:
|
||||
httpx.WriteInternal(w, requestID)
|
||||
httpx.WriteInternalError(w, requestID)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user