types

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	model.Device `xorm:"extends"`
	TypeId       string `json:"type_id,omitempty" xorm:"index"`  //类型
	AreaId       string `json:"area_id,omitempty" xorm:"index"`  //区域
	GroupId      string `json:"group_id,omitempty" xorm:"index"` //分组
}

type DeviceArea

type DeviceArea struct {
	Id      string    `json:"id" xorm:"pk"`
	Name    string    `json:"name"`
	Desc    string    `json:"desc,omitempty"`
	Created time.Time `json:"created" xorm:"created"`
}

type DeviceEx added in v1.0.9

type DeviceEx struct {
	Device  `xorm:"extends"`
	Product string `json:"product,omitempty"`
	Type    string `json:"type,omitempty"`
	Area    string `json:"area,omitempty"`
	Group   string `json:"group,omitempty"`
}

func (DeviceEx) TableName added in v1.0.9

func (d DeviceEx) TableName() string

type DeviceGroup

type DeviceGroup struct {
	Id      string    `json:"id" xorm:"pk"`
	AreaId  string    `json:"area_id" xorm:"index"`
	Name    string    `json:"name"`
	Desc    string    `json:"desc,omitempty"`
	Created time.Time `json:"created" xorm:"created"`
}

type DeviceType

type DeviceType struct {
	Id      string    `json:"id" xorm:"pk"`
	Name    string    `json:"name"`
	Desc    string    `json:"desc,omitempty"`
	Created time.Time `json:"created,omitempty" xorm:"created"`
}

Jump to

Keyboard shortcuts

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