Browse Source

fix: add create adapter in type

pull/372/head
qiwang 11 months ago
parent
commit
967196632e
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      client/types.go

+ 21
- 0
client/types.go View File

@@ -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"`
}

Loading…
Cancel
Save