Skip to content

Commit aa812fc

Browse files
committed
🎨 Remove status fields
1 parent 353e464 commit aa812fc

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎model/setting.go‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,6 @@ const (
5555
SettingNameBasicMetaDescription = "basicMetaDescription"
5656
SettingNameBasicMetaKeywords = "basicMetaKeywords"
5757
SettingNameBasicFaviconURL = "basicFaviconURL"
58-
SettingNameBasicBlogStatus = "basicBlogStatus"
59-
)
60-
61-
// Setting values of category "basic".
62-
const (
63-
SettingBasicBlogStatusOK = "0"
64-
SettingBasicBlogStatusInactive = "1"
6558
)
6659

6760
// Setting names of category "preference".

‎model/user.go‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ type User struct {
2929
Locale string `gorm:"size:32 json:"locale"`
3030
ArticleCount int `json:"articleCount"` // including drafts and published articles
3131
PublishedArticleCount int `json:"publishedArticleCount"` // just including published articles
32-
Status int `json:"status"`
3332

3433
BlogID uint `json:"blogID"`
3534
}
@@ -41,9 +40,3 @@ const (
4140
UserRoleBlogUser
4241
UserRoleBlogVisitor
4342
)
44-
45-
// User status.
46-
const (
47-
UserStatusOK = iota
48-
UserStatusLoginRestricted
49-
)

0 commit comments

Comments
 (0)