Files
rustdesk-api/model/tag.go
T

17 lines
651 B
Go
Raw Permalink Normal View History

2024-09-13 15:57:29 +08:00
package model
type Tag struct {
IdModel
2024-10-28 14:19:30 +08:00
Name string `json:"name" gorm:"default:'';not null;"`
UserId uint `json:"user_id" gorm:"default:0;not null;index"`
Color uint `json:"color" gorm:"default:0;not null;"` //color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba
CollectionId uint `json:"collection_id" gorm:"default:0;not null;index"`
Collection *AddressBookCollection `json:"collection,omitempty"`
2024-09-13 15:57:29 +08:00
TimeModel
}
type TagList struct {
Tags []*Tag `json:"list"`
Pagination
}