add: user auth accomplished

This commit is contained in:
wwweww
2026-02-26 02:17:07 +08:00
parent 300058ad01
commit 60b6f40f9f
54 changed files with 1601 additions and 2303 deletions
+13
View File
@@ -0,0 +1,13 @@
package utils
type ErrorResponse struct {
Code int `json:"code"`
Msg string `json:"msg"`
}
func NewErrorResp(code int, msg error) *ErrorResponse {
return &ErrorResponse{
Code: code,
Msg: msg.Error(),
}
}