coai/manager/broadcast/types.go
2023-11-19 09:44:27 +08:00

27 lines
485 B
Go

package broadcast
type Broadcast struct {
Index int `json:"index"`
Content string `json:"content"`
}
type Info struct {
Index int `json:"index"`
Content string `json:"content"`
Poster string `json:"poster"`
CreatedAt string `json:"created_at"`
}
type listResponse struct {
Data []Info `json:"data"`
}
type createRequest struct {
Content string `json:"content"`
}
type createResponse struct {
Status bool `json:"status"`
Error string `json:"error"`
}