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

This commit is contained in:
CaIon
2023-09-25 18:44:10 +08:00
parent 3d55548c92
commit 80271b33ba
6 changed files with 45 additions and 4 deletions

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) {