34 lines
525 B
Go
34 lines
525 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Widget struct {
|
|
ID WidgetID
|
|
StreamerID StreamerID
|
|
TemplateID TemplateID
|
|
BackgroundUrl MediaUrl
|
|
ImageUrl MediaUrl
|
|
AudioUrl MediaUrl
|
|
Duration Duration
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type Donat struct {
|
|
ID DonatID
|
|
WidgetID WidgetID
|
|
Text string
|
|
DonatUser string
|
|
Amount DonatAmount
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type DonatAndWidget struct {
|
|
Widget *Widget
|
|
Donat *Donat
|
|
Display Display
|
|
}
|