feat: adjust route register

This commit is contained in:
yanghao05
2025-04-25 10:08:10 +08:00
parent 926b7f8d3b
commit 505c41e9ef
4 changed files with 34 additions and 27 deletions

View File

@@ -26,7 +26,7 @@ type TokenResponse struct {
func (ctl *auth) Login(ctx fiber.Ctx, body *AuthBody) (*TokenResponse, error) {
if body.Username == "admin" && body.Password == "xixi@0202" {
claim := ctl.jwt.CreateClaims(jwt.BaseClaims{
UserID: 1,
UserID: -20140202,
})
token, err := ctl.jwt.CreateToken(claim)