go-common/app/interface/main/app-resource/model/experiment/experiment.go

22 lines
538 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package experiment
type Experiment struct {
ID int64 `json:"id,omitempty"`
Plat int8 `json:"-"`
Name string `json:"name,omitempty"`
Strategy string `json:"strategy,omitempty"`
Desc string `json:"desc,omitempty"`
TrafficGroup string `json:"traffic_group,omitempty"`
Limit []*Limit `json:"-"`
}
type Limit struct {
ExperimentID int64 `json:"-"`
Build int `json:"-"`
Condition string `json:"-"`
}
type ABTestV2 struct {
AutoPlay int `json:"autoplay"`
}