auto commit

master
李伟乐 1 year ago
parent e001721edf
commit b805a76ae0
  1. 3
      middleware/jwt/default.go

@ -2,6 +2,7 @@ package jwt
import (
"context"
"git.diulo.com/mogfee/kit/errors"
"git.diulo.com/mogfee/kit/transport"
"git.diulo.com/mogfee/kit/transport/http"
"strings"
@ -53,5 +54,5 @@ func (j *JwtDefault) Validate(ctx context.Context, permission string, permission
return nil
}
}
return errorx.Forbidden("TOKEN_PERMISSION_BAD", "权限不足")
return errors.Forbidden("TOKEN_PERMISSION_BAD", "权限不足")
}

Loading…
Cancel
Save