19 lines
896 B
Go
19 lines
896 B
Go
package models
|
|
|
|
import "sun-panel/models/datatype"
|
|
|
|
type ItemIcon struct {
|
|
BaseModel
|
|
IconJson string `gorm:"type:varchar(1000)" json:"-"`
|
|
Icon datatype.ItemIconIconInfo `gorm:"-" json:"icon"`
|
|
Title string `gorm:"type:varchar(50)" json:"title"`
|
|
Url string `gorm:"type:varchar(1000)" json:"url"`
|
|
LanUrl string `gorm:"type:varchar(1000)" json:"lanUrl"`
|
|
Description string `gorm:"type:varchar(1000)" json:"description"`
|
|
OpenMethod int `gorm:"type:tinyint(1)" json:"openMethod"`
|
|
Sort int `gorm:"type:int(11)" json:"sort"`
|
|
GroupId int `json:"groupId"` // 为以后分组做准备
|
|
UserId uint `json:"userId"`
|
|
User User `json:"user"`
|
|
}
|