28 lines
881 B
Go
28 lines
881 B
Go
package widget
|
|
|
|
import "donat-widget/internal/model"
|
|
|
|
type CreateWidgetRequest struct {
|
|
StreamerID model.StreamerID `json:"streamerID" validate:"required"`
|
|
TemplateID model.TemplateID `json:"templateID" validate:"required"`
|
|
}
|
|
type CreateWidgetResponse struct {
|
|
WidgetID model.WidgetID `json:"widgetID"`
|
|
}
|
|
|
|
type GetWidgetInfoResponse struct {
|
|
AudioUrl model.MediaUrl `json:"audioUrl"`
|
|
ImageUrl model.MediaUrl `json:"imageUrl"`
|
|
Text string `json:"text"`
|
|
Amount model.DonatAmount `json:"amount"`
|
|
DonatUser string `json:"donatUser"`
|
|
Display model.Display `json:"display"`
|
|
Duration model.Duration `json:"duration"`
|
|
DonatID model.DonatID `json:"donatID"`
|
|
}
|
|
|
|
type UpdateDurationRequest struct {
|
|
WidgetID model.WidgetID `json:"widgetID" validate:"required"`
|
|
Duration model.Duration `json:"duration" validate:"required"`
|
|
}
|