Able to manage channels now

This commit is contained in:
JustSong
2023-04-23 15:42:23 +08:00
parent 9ca6adf4a1
commit 28e8e89e28
9 changed files with 196 additions and 216 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ type Channel struct {
Type int `json:"type" gorm:"default:0"`
Key string `json:"key"`
Status int `json:"status" gorm:"default:1"`
Name string `json:"name" gorm:"unique;index"`
Name string `json:"name" gorm:"index"`
Weight int `json:"weight"`
CreatedTime int64 `json:"created_time" gorm:"bigint"`
AccessedTime int64 `json:"accessed_time" gorm:"bigint"`