Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Media ¶
type Media struct { ID uint64 `gorm:"primaryKey"` DiskType string `gorm:"size:20;index;not null;comment:存储类型"` SrcType int8 `gorm:"not null;comment:链接类型 1相对路径 2外链"` Src string `gorm:"not null;comment:资源链接"` Timestamps }
type SoftDeletes ¶
type Timestamps ¶
type User ¶
type User struct { ID uint64 `gorm:"primaryKey"` Name string `gorm:"size:30;not null;comment:用户名称"` Mobile string `gorm:"size:24;not null;index;comment:用户手机号"` Password string `gorm:"not null;default:'';comment:用户密码"` Timestamps SoftDeletes }
Click to show internal directories.
Click to hide internal directories.