初始化项目文件
This commit is contained in:
28
api_iris/model/chess.go
Normal file
28
api_iris/model/chess.go
Normal file
@ -0,0 +1,28 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
type ChessStatus struct {
|
||||
gorm.Model
|
||||
Players string `json:"players"`
|
||||
Current string `json:"current"`
|
||||
IsEnd bool `json:"is_end"`
|
||||
Status string `json:"status"`
|
||||
Winner string `json:"winner"`
|
||||
ChessId string `json:"chess_id"`
|
||||
}
|
||||
|
||||
type ChessStatusLog struct {
|
||||
gorm.Model
|
||||
RoomId uint `json:"roomId"`
|
||||
Current string `json:"current"`
|
||||
Players string `json:"players"`
|
||||
IsEnd bool `json:"is_end"`
|
||||
Status string `json:"status"`
|
||||
Winner string `json:"winner"`
|
||||
ChessId string `json:"chess_id"`
|
||||
Time time.Time `json:"time"`
|
||||
}
|
Reference in New Issue
Block a user