25 lines
768 B
Go
25 lines
768 B
Go
package dto
|
|
|
|
import "time"
|
|
|
|
type LiveChatHistoryRequest struct {
|
|
Limit int `form:"limit"`
|
|
}
|
|
|
|
type LiveChatMessageResponse struct {
|
|
ID uint `json:"id"`
|
|
RoomID uint `json:"roomId"`
|
|
Type string `json:"type"`
|
|
UserID uint `json:"userId"`
|
|
Username string `json:"username"`
|
|
Nickname string `json:"nickname"`
|
|
Avatar string `json:"avatar"`
|
|
Content string `json:"content,omitempty"`
|
|
GiftID uint `json:"giftId,omitempty"`
|
|
GiftName string `json:"giftName,omitempty"`
|
|
GiftIcon string `json:"giftIcon,omitempty"`
|
|
Quantity int `json:"quantity,omitempty"`
|
|
DiamondTotal int64 `json:"diamondTotal,omitempty"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|