chore: move conf package

This commit is contained in:
Noah Hsu
2022-06-25 20:38:02 +08:00
parent 7dadab95b2
commit 306b90399c
18 changed files with 91 additions and 33 deletions

View File

@ -7,13 +7,12 @@ const (
)
type User struct {
ID uint `json:"id" gorm:"primaryKey"` // unique key
Name string `json:"name" gorm:"unique"` // username
Password string `json:"password"` // password
BasePath string `json:"base_path"` // base path
AllowUpload bool `json:"allow_upload"` // allow upload
Role int `json:"role"` // user's role
//OfflineDownload bool `json:"offline_download"` // TODO? allow offline download
ID uint `json:"id" gorm:"primaryKey"` // unique key
Name string `json:"name" gorm:"unique"` // username
Password string `json:"password"` // password
BasePath string `json:"base_path"` // base path
ReadOnly bool `json:"read_only"` // allow upload
Role int `json:"role"` // user's role
}
func (u User) IsGuest() bool {