|
@@ -1,9 +1,9 @@
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
package types
|
|
|
|
|
|
-type PlayerInfo struct {
|
|
|
- Uid string `json:"uid"`
|
|
|
- GameId string `json:"game_id"`
|
|
|
+type PlayerLoginInfo struct {
|
|
|
+ PlayerId string `json:"player_id"`
|
|
|
+ GameId string `json:"game_id"`
|
|
|
}
|
|
|
|
|
|
type CsLoginInfo struct {
|
|
@@ -23,6 +23,27 @@ type JwtToken struct {
|
|
|
RefreshAfter int64 `json:"refresh_after,omitempty"`
|
|
|
}
|
|
|
|
|
|
+type PlayerConnectReq struct {
|
|
|
+ CsId string `json:"cs_id"`
|
|
|
+}
|
|
|
+
|
|
|
+type PlayerDisconnectReq struct {
|
|
|
+ CsId string `json:"cs_id"`
|
|
|
+ ChatId string `json:"chat_id"`
|
|
|
+}
|
|
|
+
|
|
|
+type CsConnectReq struct {
|
|
|
+ PlayerId string `json:"palyer_id"`
|
|
|
+ GameId string `json:"game_id"`
|
|
|
+}
|
|
|
+
|
|
|
+type CsDisconnectReq struct {
|
|
|
+ PlayerId string `json:"player_id"`
|
|
|
+ ChatId string `json:"chat_id"`
|
|
|
+}
|
|
|
+
|
|
|
type SendReq struct {
|
|
|
- Msg string `json:"msg"`
|
|
|
+ ChatId string `form:"chat_id"`
|
|
|
+ Msg string `form:"msg"`
|
|
|
+ Pic string `form:"pic,optional"`
|
|
|
}
|