Files

14 lines
594 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dto // 包名声明:与 user.go、ws.go 同属 dto 包
// DevTokenRequest 开发调试:按用户 ID 直接换取令牌的请求(仅 debug 模式可用)。
type DevTokenRequest struct {
UserID int64 `form:"user_id"` // 要 impersonate 的用户 ID;<=0 时回落为 1
}
// DevTokenResponse 开发调试:直接换取的令牌对,跳过微信登录。
type DevTokenResponse struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpireTime int64 `json:"expire_time"` // access_token 过期时间(绝对 Unix 秒时间戳)
}