-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
package model | ||
|
||
type Meta struct { | ||
ID uint `json:"id" gorm:"primaryKey"` | ||
Path string `json:"path" gorm:"unique" binding:"required"` | ||
Password string `json:"password"` | ||
PSub bool `json:"p_sub"` | ||
Write bool `json:"write"` | ||
WSub bool `json:"w_sub"` | ||
Hide string `json:"hide"` | ||
HSub bool `json:"h_sub"` | ||
Readme string `json:"readme"` | ||
RSub bool `json:"r_sub"` | ||
ID uint `json:"id" gorm:"primaryKey"` | ||
Path string `json:"path" gorm:"unique" binding:"required"` | ||
Password string `json:"password"` | ||
PSub bool `json:"p_sub"` | ||
Write bool `json:"write"` | ||
WSub bool `json:"w_sub"` | ||
Hide string `json:"hide"` | ||
HSub bool `json:"h_sub"` | ||
Readme string `json:"readme"` | ||
RSub bool `json:"r_sub"` | ||
Header string `json:"header"` | ||
HeaderSub bool `json:"header_sub"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters