feat(app): 添加 token 校验功能和用户信息获取接口

- 新增 AuthToken 方法用于校验用户 token
- 在 app 接口中添加 AuthToken 方法定义
- 在 defaultApp 结构体中实现 AuthToken 方法
- 修改 GetVerifyCode、Login、Register 接口的 tags 为 user_public
- 新增 /user POST 接口用于获取用户详细信息
- 在 app.pb.go 文件中新增 AuthInfoResp、AuthReq 等相关结构体定义
- 更新 proto 文件中的消息类型索引以适应新增结构体
- 新增 ClaimStrings 和 NumericDate 结构体支持 JWT 相关字段
- 新增 RegisteredClaims 结构体用于表示 JWT 声明集
This commit is contained in:
huanglei19951029 2025-12-12 17:56:36 +08:00
parent a0ceedd634
commit 225cf2d135
1 changed files with 0 additions and 1 deletions

View File

@ -1,4 +1,3 @@
// internal/middleware/authority.go
package middleware package middleware
import ( import (