feat(cmd/ry): add display model package
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
|
type Order struct {
|
||||||
|
ID string `json:"id" table:"ID"`
|
||||||
|
Product string `json:"product" table:"PRODUCT"`
|
||||||
|
Amount float64 `json:"amount" table:"AMOUNT"`
|
||||||
|
Status string `json:"status" table:"STATUS"`
|
||||||
|
Created time.Time `json:"created" table:"CREATED"`
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
type Domain struct {
|
||||||
|
ID string `json:"id" table:"ID"`
|
||||||
|
Name string `json:"name" table:"DOMAIN"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type DNSRecord struct {
|
||||||
|
ID string `json:"id" table:"ID"`
|
||||||
|
Type string `json:"type" table:"TYPE"`
|
||||||
|
Name string `json:"name" table:"NAME"`
|
||||||
|
Value string `json:"value" table:"VALUE"`
|
||||||
|
TTL int `json:"ttl" table:"TTL"`
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
|
type Server struct {
|
||||||
|
ID string `json:"id" table:"ID"`
|
||||||
|
Name string `json:"name" table:"NAME"`
|
||||||
|
Status string `json:"status" table:"STATUS"`
|
||||||
|
IP string `json:"ip" table:"IP"`
|
||||||
|
CPU int `json:"cpu" table:"CPU"`
|
||||||
|
Memory int `json:"memory" table:"MEM"`
|
||||||
|
Disk int `json:"disk" table:"DISK"`
|
||||||
|
OS string `json:"os" table:"OS"`
|
||||||
|
Region string `json:"region" table:"REGION"`
|
||||||
|
ExpireAt time.Time `json:"expires" table:"EXPIRES"`
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package model
|
||||||
|
|
||||||
|
type StorageInstance struct {
|
||||||
|
ID string `json:"id" table:"ID"`
|
||||||
|
Name string `json:"name" table:"NAME"`
|
||||||
|
Status string `json:"status" table:"STATUS"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type Bucket struct {
|
||||||
|
ID string `json:"id" table:"ID"`
|
||||||
|
Name string `json:"name" table:"NAME"`
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user