forked from JointCloud/pcm-coordinator
fix: add create adapter in type
This commit is contained in:
parent
8cfccde058
commit
967196632e
|
@ -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…
Reference in New Issue