WsVerifyToken

This commit is contained in:
withchao
2023-06-11 14:36:25 +08:00
parent e98d17b1b7
commit 7d69e35dcf
2 changed files with 29 additions and 10 deletions
+19
View File
@@ -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) {
}