feat: add meta model and test
This commit is contained in:
11
internal/model/meta.go
Normal file
11
internal/model/meta.go
Normal file
@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
type Meta struct {
|
||||
ID uint `json:"id" gorm:"primaryKey"`
|
||||
Path string `json:"path" gorm:"unique" binding:"required"`
|
||||
Password string `json:"password"`
|
||||
Hide string `json:"hide"`
|
||||
Upload bool `json:"upload"`
|
||||
OnlyShows string `json:"only_shows"`
|
||||
Readme string `json:"readme"`
|
||||
}
|
Reference in New Issue
Block a user