保存为了 websocket

This commit is contained in:
eson
2023-08-10 16:25:41 +08:00
parent 440f13bee8
commit 8c07a5f5d7
10 changed files with 30 additions and 27 deletions

View File

@@ -16,7 +16,7 @@ type RegisterToken struct {
OperateType // 操作的类型, 验证的token 必须要继承这个
Id int64 // 注册的 id
GuestId uint64 // guest_id 需要继承
WCId uint64 // websocket 通道id
WId uint64 // websocket 通道id
Email string // email
Password string // 密码
Platform string // 平台

View File

@@ -11,7 +11,7 @@ func TestGCM(t *testing.T) {
token := &auth.RegisterToken{
OperateType: auth.OpTypeRegister,
Password: "fusen_password",
WCId: 123,
WId: 123,
}
key := "fusen123321"
@@ -31,7 +31,7 @@ func BenchmarkCRT(b *testing.B) {
token := &auth.RegisterToken{
OperateType: auth.OpTypeRegister,
Password: "fusen_password",
WCId: 123,
WId: 123,
}
key := "fusen123321"
@@ -52,7 +52,7 @@ func BenchmarkGCM(b *testing.B) {
token := &auth.RegisterToken{
OperateType: auth.OpTypeRegister,
Password: "fusen_password",
WCId: 123,
WId: 123,
}
key := "fusen123321"
@@ -72,7 +72,7 @@ func TestCRT(t *testing.T) {
token := &auth.RegisterToken{
OperateType: auth.OpTypeRegister,
Password: "fusen_password",
WCId: 123,
WId: 123,
}
key := "fusen123321"