first
This commit is contained in:
18
model/group.go
Normal file
18
model/group.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
const (
|
||||
GroupTypeDefault = 1 // 默认
|
||||
GroupTypeShare = 2 // 共享
|
||||
)
|
||||
|
||||
type Group struct {
|
||||
IdModel
|
||||
Name string `json:"name" gorm:"default:'';not null;"`
|
||||
Type int `json:"type" gorm:"default:1;not null;"`
|
||||
TimeModel
|
||||
}
|
||||
|
||||
type GroupList struct {
|
||||
Groups []*Group `json:"list"`
|
||||
Pagination
|
||||
}
|
||||
Reference in New Issue
Block a user