2023-08-27 11:07:29 +08:00
|
|
|
package vo
|
|
|
|
|
|
2024-04-12 13:24:20 +08:00
|
|
|
import (
|
|
|
|
|
tagentity "mayfly-go/internal/tag/domain/entity"
|
2025-02-27 19:40:31 +08:00
|
|
|
"mayfly-go/pkg/model"
|
2024-04-12 13:24:20 +08:00
|
|
|
"time"
|
|
|
|
|
)
|
2023-08-27 11:07:29 +08:00
|
|
|
|
2023-10-31 12:36:04 +08:00
|
|
|
type InstanceListVO struct {
|
2025-02-27 19:40:31 +08:00
|
|
|
model.ExtraData
|
2024-04-12 13:24:20 +08:00
|
|
|
tagentity.AuthCerts // 授权凭证信息
|
2024-04-17 21:28:28 +08:00
|
|
|
tagentity.ResourceTags
|
2024-04-12 13:24:20 +08:00
|
|
|
|
2023-08-27 11:07:29 +08:00
|
|
|
Id *int64 `json:"id"`
|
2024-04-12 13:24:20 +08:00
|
|
|
Code string `json:"code"`
|
2023-08-27 11:07:29 +08:00
|
|
|
Name *string `json:"name"`
|
|
|
|
|
Host *string `json:"host"`
|
|
|
|
|
Port *int `json:"port"`
|
|
|
|
|
Type *string `json:"type"`
|
2024-03-07 17:26:11 +08:00
|
|
|
Params string `json:"params"`
|
2023-08-27 11:07:29 +08:00
|
|
|
Remark *string `json:"remark"`
|
|
|
|
|
CreateTime *time.Time `json:"createTime"`
|
|
|
|
|
Creator *string `json:"creator"`
|
|
|
|
|
CreatorId *int64 `json:"creatorId"`
|
|
|
|
|
|
|
|
|
|
UpdateTime *time.Time `json:"updateTime"`
|
|
|
|
|
Modifier *string `json:"modifier"`
|
|
|
|
|
ModifierId *int64 `json:"modifierId"`
|
|
|
|
|
|
|
|
|
|
SshTunnelMachineId int `json:"sshTunnelMachineId"`
|
|
|
|
|
}
|
2024-04-12 13:24:20 +08:00
|
|
|
|
|
|
|
|
func (i *InstanceListVO) GetCode() string {
|
|
|
|
|
return i.Code
|
|
|
|
|
}
|