初始化项目文件
This commit is contained in:
18
api_file/model/sudoku.go
Normal file
18
api_file/model/sudoku.go
Normal file
@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Sudoku struct {
|
||||
Sudoku string `json:"sudoku"`
|
||||
Username string `json:"username"`
|
||||
Result string `json:"result"`
|
||||
gorm.Model
|
||||
}
|
||||
|
||||
type SudokuStatus struct {
|
||||
SudokuId uint `json:"sudoku_id"`
|
||||
Username string `json:"username"`
|
||||
Status string `json:"status"`
|
||||
Complete bool `json:"complete"`
|
||||
gorm.Model
|
||||
}
|
Reference in New Issue
Block a user