feat: add meta model and test

This commit is contained in:
Noah Hsu
2022-06-16 21:59:49 +08:00
parent ca13678105
commit 52575f6ad6
7 changed files with 185 additions and 9 deletions

11
internal/model/meta.go Normal file
View 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"`
}