feat: 渠道新可选是否自动禁用功能

This commit is contained in:
CaIon committed 2023-09-25 18:44:10 +08:00
1 parent 4199979c01
commit cba411ee9e
6 files changed
+45 -4

No files matched your search

+1
View File
@@ -25,6 +25,7 @@ type Channel struct {
UsedQuota int64 `json:"used_quota" gorm:"bigint;default:0"`
ModelMapping *string `json:"model_mapping" gorm:"type:varchar(1024);default:''"`
Priority *int64 `json:"priority" gorm:"bigint;default:0"`
AutoBan *int `json:"auto_ban" gorm:"default:1"`
}
func GetAllChannels(startIdx int, num int, selectAll bool) ([]*Channel, error) {