mirror of
https://github.com/coaidev/coai.git
synced 2025-05-19 21:10:18 +09:00
27 lines
485 B
Go
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"`
|
|
}
|