-
Notifications
You must be signed in to change notification settings - Fork 66
/
context.go
26 lines (22 loc) · 1.08 KB
/
context.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package domain
import "github.com/aaronchen2k/deeptest/internal/pkg/consts"
type GlobalVar struct {
VarId uint `gorm:"-" json:"varId"`
Name string `json:"name"`
RightValue string `gorm:"type:text" json:"rightValue"`
LocalValue string `gorm:"-" json:"localValue"`
RemoteValue string `gorm:"type:text" json:"remoteValue"`
ValueType consts.ExtractorResultType `json:"valueType"`
}
type GlobalParam struct {
Name string `json:"name"`
Type consts.ParamType `json:"type"`
In consts.ParamIn `json:"in"`
Disabled bool `json:"disabled"`
Required bool `json:"required"`
DefaultValue string `gorm:"type:text" json:"defaultValue"`
}
type InterfaceToEnvMap map[uint]uint // interfaceId -> envId
type EnvToVariables map[uint][]GlobalVar // envId -> vars
type Datapools map[string][]VarKeyValuePair // datapoolName -> array of map<colName, colValue>
type VarKeyValuePair map[string]interface{}