实现游戏大厅与房间模块:玩法插件化、匹配与房间生命周期管理
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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 秒时间戳)
|
||||
}
|
||||
Reference in New Issue
Block a user