fix: add create adapter in type

This commit is contained in:
qiwang 2024-12-18 19:23:43 +08:00
parent 8cfccde058
commit 967196632e
1 changed files with 21 additions and 0 deletions

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