mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-11-29 00:23:18 +00:00
30 lines
503 B
Go
30 lines
503 B
Go
package model
|
|
|
|
const (
|
|
GroupTypeDefault = 1 // 默认
|
|
GroupTypeShare = 2 // 共享
|
|
)
|
|
|
|
type Group struct {
|
|
IdModel
|
|
Name string `json:"name" gorm:"default:'';not null;"`
|
|
Type int `json:"type" gorm:"default:1;not null;"`
|
|
TimeModel
|
|
}
|
|
|
|
type GroupList struct {
|
|
Groups []*Group `json:"list"`
|
|
Pagination
|
|
}
|
|
|
|
type DeviceGroup struct {
|
|
IdModel
|
|
Name string `json:"name" gorm:"default:'';not null;"`
|
|
TimeModel
|
|
}
|
|
|
|
type DeviceGroupList struct {
|
|
DeviceGroups []*DeviceGroup `json:"list"`
|
|
Pagination
|
|
}
|