-
Notifications
You must be signed in to change notification settings - Fork 61
/
macro.go
30 lines (24 loc) · 849 Bytes
/
macro.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package database
import "time"
type Macros struct {
ID int64 `gorm:"column:id" json:"id"`
UpdateTime time.Time `gorm:"column:updatetime" json:"updatetime"`
IsVerify uint8 `gorm:"column:is_verify" json:"isVerify"`
MasteryID int64 `gorm:"column:mastery_id" json:"masteryId"`
ProfessionID int64 `gorm:"column:profession_id" json:"professionId"`
SimpleMacro
}
type SimpleMacro struct {
Title string `gorm:"column:title" json:"title"`
Macro string `gorm:"column:macro" json:"macro"`
Author string `gorm:"column:author" json:"author"`
}
type Profession struct {
PID int64 `gorm:"column:pid" json:"pid"`
Version int8 `gorm:"column:version" json:"version"`
SimpleProfession
}
type SimpleProfession struct {
ID int64 `gorm:"column:id" json:"id"`
Name string `gorm:"column:name" json:"name"`
}