web upload

This commit is contained in:
微凉
2021-12-31 20:33:39 +08:00
parent cc217df924
commit 103e049f22
5 changed files with 96 additions and 16 deletions

View File

@ -10,6 +10,7 @@ type Meta struct {
Path string `json:"path" gorm:"unique" binding:"required"`
Password string `json:"password"`
Hide string `json:"hide"`
Upload bool `json:"upload"`
}
func GetMetaByPath(path string) (*Meta, error) {