schema

package
v1.1.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceCreateDTO

type ServiceCreateDTO struct {
	Name          string `gorm:"column:name" json:"Name" form:"Name" comment:"Name"`
	Host          string `gorm:"column:host" json:"Host" form:"Host" comment:"Host"`
	Port          int    `gorm:"column:port;default:0" json:"Port" form:"Port" comment:"Port"`
	Admin         string `gorm:"column:admin" json:"Admin" form:"Admin" comment:"Admin"`
	ExePath       string `gorm:"column:exe_path" json:"ExePath" form:"ExePath" comment:"ExePath"`
	Args          string `gorm:"column:args" json:"Args" form:"Args" comment:"Args"`
	SystemdName   string `gorm:"column:systemd_name" json:"SystemdName" form:"SystemdName" comment:"SystemdName"`
	SystemdStatus string `gorm:"column:systemd_status" json:"SystemdStatus" form:"SystemdStatus" comment:"SystemdStatus"`
	Status        int    `gorm:"column:status" json:"Status" form:"Status" comment:"状态"`
}

type ServiceQueryDTO

type ServiceQueryDTO struct {
	Id               int64            `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
	Name             string           `gorm:"column:name" json:"Name" form:"Name" comment:"Name"`
	Host             string           `gorm:"column:host" json:"Host" form:"Host" comment:"Host"`
	Port             int              `gorm:"column:port;default:0" json:"Port" form:"Port" comment:"Port"`
	Admin            string           `gorm:"column:admin" json:"Admin" form:"Admin" comment:"Admin"`
	ExePath          string           `gorm:"column:exe_path" json:"ExePath" form:"ExePath" comment:"ExePath"`
	Args             string           `gorm:"column:args" json:"Args" form:"Args" comment:"Args"`
	SystemdName      string           `gorm:"column:systemd_name" json:"SystemdName" form:"SystemdName" comment:"SystemdName"`
	SystemdStatus    string           `gorm:"column:systemd_status" json:"SystemdStatus" form:"SystemdStatus" comment:"SystemdStatus"`
	Status           int              `gorm:"column:status" json:"Status" form:"Status" comment:"状态"`
	LastSeen         base.ISO8601Time `gorm:"column:last_seen" json:"LastSeen" form:"LastSeen" comment:"LastSeen"`
	CreatedAt_datege string           `gorm:"column:created_at_datege" json:"CreatedAt_datege" form:"CreatedAt_datege" comment:"CreatedAt_datege"`
	CreatedAt_datele string           `gorm:"column:created_at_datele" json:"CreatedAt_datele" form:"CreatedAt_datele" comment:"CreatedAt_datele"`
}

type ServiceVO

type ServiceVO struct {
	Id            int64            `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
	Name          string           `gorm:"column:name" json:"Name" form:"Name" comment:"Name"`
	Host          string           `gorm:"column:host" json:"Host" form:"Host" comment:"Host"`
	Port          int              `gorm:"column:port;default:0" json:"Port" form:"Port" comment:"Port"`
	Admin         string           `gorm:"column:admin" json:"Admin" form:"Admin" comment:"Admin"`
	ExePath       string           `gorm:"column:exe_path" json:"ExePath" form:"ExePath" comment:"ExePath"`
	Args          string           `gorm:"column:args" json:"Args" form:"Args" comment:"Args"`
	SystemdName   string           `gorm:"column:systemd_name" json:"SystemdName" form:"SystemdName" comment:"SystemdName"`
	SystemdStatus string           `gorm:"column:systemd_status" json:"SystemdStatus" form:"SystemdStatus" comment:"SystemdStatus"`
	Status        int              `gorm:"column:status" json:"Status" form:"Status" comment:"状态"`
	LastSeen      base.ISO8601Time `gorm:"column:last_seen" json:"LastSeen" form:"LastSeen" comment:"LastSeen"`
	CreatedAt     base.ISO8601Time
	UpdatedAt     base.ISO8601Time
}

func (ServiceVO) GetDetailVO

func (c ServiceVO) GetDetailVO() interface{}

func (ServiceVO) GetListVO

func (c ServiceVO) GetListVO() interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL