Files
mayfly-go/server/internal/db/api/vo/db.go

37 lines
1.1 KiB
Go
Raw Normal View History

2021-01-08 15:37:32 +08:00
package vo
import (
2024-05-16 17:26:32 +08:00
"mayfly-go/internal/db/domain/entity"
tagentity "mayfly-go/internal/tag/domain/entity"
"time"
)
2021-01-08 15:37:32 +08:00
2023-10-31 12:36:04 +08:00
type DbListVO struct {
tagentity.ResourceTags
2024-05-16 17:26:32 +08:00
Id *int64 `json:"id"`
Code string `json:"code"`
Name *string `json:"name"`
GetDatabaseMode entity.DbGetDatabaseMode `json:"getDatabaseMode"` // 获取数据库方式
Database *string `json:"database"`
Remark *string `json:"remark"`
InstanceId *int64 `json:"instanceId"`
2024-04-12 13:24:20 +08:00
AuthCertName string `json:"authCertName"`
InstanceName *string `json:"instanceName"`
InstanceType *string `json:"type"`
2023-10-31 12:36:04 +08:00
Host string `json:"host"`
Port int `json:"port"`
2021-01-08 15:37:32 +08:00
CreateTime *time.Time `json:"createTime"`
Creator *string `json:"creator"`
CreatorId *int64 `json:"creatorId"`
2022-11-21 19:49:50 +08:00
UpdateTime *time.Time `json:"updateTime"`
Modifier *string `json:"modifier"`
ModifierId *int64 `json:"modifierId"`
2021-01-08 15:37:32 +08:00
}
func (d DbListVO) GetCode() string {
return d.Code
}