mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-19 00:01:14 +00:00
35 lines
602 B
Go
35 lines
602 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Group struct {
|
|
ID uuid.UUID `json:"id"`
|
|
|
|
Title string `json:"title"`
|
|
Color string `json:"color"`
|
|
Position int32 `json:"position"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type GroupUpdate struct {
|
|
Title *string `json:"title"`
|
|
Color *string `json:"color"`
|
|
}
|
|
|
|
type GroupCreate struct {
|
|
Title string `json:"title"`
|
|
Color string `json:"color"`
|
|
}
|
|
|
|
type GroupType string
|
|
|
|
const Tags GroupType = "tags"
|
|
const Categories GroupType = "categories"
|
|
const Folders GroupType = "folders"
|