mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-08 11:05:59 +08:00
WsVerifyToken
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package apiresp
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func HttpError(w http.ResponseWriter, err error) {
|
||||
data, err := json.Marshal(ParseError(err))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
_ = data
|
||||
|
||||
}
|
||||
|
||||
func HttpSuccess(w http.ResponseWriter, data any) {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user