feat: 通用错误

main
熊二 1 year ago
parent 1b27c50a90
commit fc483bdd60
  1. 11
      internal/errs/errs.go

@ -0,0 +1,11 @@
package errs
import (
"net/http"
"sorbet/pkg/rsp"
)
var (
ErrWechatNotBound = rsp.NewError(http.StatusBadRequest, 10001, "微信尚未绑定")
ErrLoginWithUserpwd = rsp.NewError(http.StatusUnauthorized, 10002, "用户名或密码错误")
)
Loading…
Cancel
Save