freego_api/api_types.go
2022-03-03 13:28:00 -05:00

28 lines
493 B
Go

package main
import "git.saintnet.tech/freego"
//type newGameReq struct{}
type newGameResp struct {
GameID int `json:"game_id"`
PlayerID string `json:"player_id"`
}
type gameReq struct {
PlayerID string `json:"player_id"`
}
type gameResp struct {
GameBoard *freego.Game `json:"board"`
}
type gameStatusReq struct {
PlayerID string `json:"player_id"`
}
type gameStatusResp struct {
GameStatus freego.GameState `json:"game_status"`
Move int `json:"move"`
}