Move everything to backend
This commit is contained in:
39
backend/types.go
Normal file
39
backend/types.go
Normal file
@@ -0,0 +1,39 @@
|
||||
package main
|
||||
|
||||
import "time"
|
||||
|
||||
type (
|
||||
Guild struct {
|
||||
ID int64
|
||||
Name string `json:"name"`
|
||||
}
|
||||
Player struct {
|
||||
ID int64
|
||||
Name string `json:"name"`
|
||||
Guild Guild `json:"guild"`
|
||||
}
|
||||
Association struct {
|
||||
ID int64
|
||||
LHS Player
|
||||
RHS Player
|
||||
Note string
|
||||
}
|
||||
Note struct {
|
||||
ID int64
|
||||
Content string
|
||||
Timestamp time.Time
|
||||
Player Player
|
||||
}
|
||||
)
|
||||
|
||||
type NoteData struct {
|
||||
Player string
|
||||
Date time.Time
|
||||
Guild string
|
||||
Note string
|
||||
Associations []NoteAssociationData
|
||||
}
|
||||
type NoteAssociationData struct {
|
||||
Player string
|
||||
Note string
|
||||
}
|
Reference in New Issue
Block a user