Files
rustdesk-api/model/group.go
T

30 lines
503 B
Go
Raw Permalink Normal View History

2024-09-13 15:57:29 +08:00
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
}
2025-02-23 21:35:42 +08:00
type DeviceGroup struct {
IdModel
Name string `json:"name" gorm:"default:'';not null;"`
TimeModel
}
type DeviceGroupList struct {
DeviceGroups []*DeviceGroup `json:"list"`
Pagination
}