feat: support custom http header

This commit is contained in:
ckt1031
2023-07-19 21:25:34 +08:00
parent cf564f36fa
commit 66e02a4bcf
6 changed files with 79 additions and 1 deletions

View File

@@ -26,7 +26,8 @@ type Channel struct {
ModelMapping string `json:"model_mapping" gorm:"type:varchar(1024);default:''"`
// Additional fields, default value is false
EnableIpRandomization bool `json:"enable_ip_randomization"`
EnableIpRandomization bool `json:"enable_ip_randomization"`
CustomHttpHeaders string `json:"custom_http_headers"`
}
func GetAllChannels(startIdx int, num int, selectAll bool) ([]*Channel, error) {