Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiCaseIdReq ¶
type GetAuthorityId ¶
type GetAuthorityId struct {
AuthorityId uint `json:"authorityId" form:"authorityId"` // 角色ID
}
GetAuthorityId Get role by id structure
type GetById ¶
type GetById struct {
ID int `json:"id" form:"id"` // 主键ID
}
GetById Find by id structure
type Operation ¶
type Operation struct { Running RunningType `json:"running"` // 运行类型 SpawnCount int64 `json:"spawnCount"` // 并发数 SpawnRate float64 `json:"spawnRate"` // 并发率 Interval *Interval `json:"interval"` // 间隔 }
type PageInfo ¶
type PageInfo struct { Page int `json:"page" form:"page"` // 页码 PageSize int `json:"pageSize" form:"pageSize"` // 每页大小 Keyword string `json:"keyword" form:"keyword"` //关键字 }
PageInfo Paging common input parameter structure
type RunCaseReq ¶
type RunCaseReq struct { ApiID uint `json:"apiID" form:"apiID"` // 接口ID ConfigID uint `json:"configID" form:"configID"` // 配置ID CaseID uint `json:"caseID" form:"caseID"` // 用例ID RunType uint `json:"run_type" form:"run_type"` // 运行类型 TaskID uint `json:"taskID" form:"taskID"` // 任务ID Operation Operation `json:"operation"` // 操作 TagID uint `json:"tagID" form:"TagID"` // 标签ID ProjectID uint `json:"-"` // 项目ID Env uint `json:"env" form:"env"` // 环境ID ReportID uint `json:"reportID" form:"reportID"` // 报告ID ApiMessageID uint `json:"api_message_id" gorm:"comment:消息发送;"` // 消息ID ReportCIID uint `json:"ci_id" yaml:"ci_id"` // CI ID }
type RunningType ¶
type RunningType int
var ( RunningTypeRun RunningType = 1 RunningTypeRebalance RunningType = 2 RunningTypeStop RunningType = 3 )
Click to show internal directories.
Click to hide internal directories.