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

28 lines
500 B
Go

package main
import "git.saintnet.tech/stryan/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"`
}