diff --git a/client/types.go b/client/types.go index fe971d001..8200812d8 100644 --- a/client/types.go +++ b/client/types.go @@ -200,3 +200,24 @@ type Card struct { CardHours float64 `json:"cardHours"` CardNum int32 `json:"cardNum"` } + +type AdapterCreateReq struct { + Id string `json:"id,optional" db:"id"` + Name string `json:"name"` + Type string `json:"type"` + ResourceType string `json:"resourceType"` + Nickname string `json:"nickname"` + Version string `json:"version"` + Server string `json:"server"` +} +type AdapterCreateResp struct { + Id string `json:"id,omitempty" db:"id"` + Name string `json:"name,omitempty" db:"name"` + Type string `json:"type,omitempty" db:"type"` + ResourceType string `json:"resourceType,omitempty" db:"resource_type"` + Nickname string `json:"nickname,omitempty" db:"nickname"` + Version string `json:"version,omitempty" db:"version"` + Server string `json:"server,omitempty" db:"server"` + CreateTime string `json:"createTime,omitempty" db:"create_time" gorm:"autoCreateTime"` + InfoName string `json:"info_name,omitempty"` +}