2024-07-23 14:48:37 +08:00
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
type Favorite struct {
|
|
|
|
|
BaseModel
|
2024-08-14 10:43:32 +08:00
|
|
|
Name string `gorm:"not null;" json:"name" `
|
|
|
|
|
Path string `gorm:"not null;unique" json:"path"`
|
|
|
|
|
Type string `json:"type"`
|
2024-07-23 14:48:37 +08:00
|
|
|
IsDir bool `json:"isDir"`
|
|
|
|
|
IsTxt bool `json:"isTxt"`
|
|
|
|
|
}
|