31 lines
1.0 KiB
Go
31 lines
1.0 KiB
Go
package giftrecord
|
|
|
|
type userDTO struct {
|
|
UserID string `json:"userId"`
|
|
DisplayUserID string `json:"displayUserId,omitempty"`
|
|
DefaultDisplayUserID string `json:"defaultDisplayUserId,omitempty"`
|
|
PrettyDisplayUserID string `json:"prettyDisplayUserId,omitempty"`
|
|
PrettyID string `json:"prettyId,omitempty"`
|
|
Username string `json:"username,omitempty"`
|
|
Avatar string `json:"avatar,omitempty"`
|
|
}
|
|
|
|
type giftDTO struct {
|
|
GiftID string `json:"giftId"`
|
|
Name string `json:"name"`
|
|
CoverURL string `json:"coverUrl"`
|
|
}
|
|
|
|
type recordDTO struct {
|
|
TransactionID string `json:"transactionId"`
|
|
Scene string `json:"scene"`
|
|
RoomID string `json:"roomId,omitempty"`
|
|
Sender userDTO `json:"sender"`
|
|
Receiver userDTO `json:"receiver"`
|
|
Gift giftDTO `json:"gift"`
|
|
GiftCount int32 `json:"giftCount"`
|
|
UnitValue int64 `json:"unitValue"`
|
|
GiftValue int64 `json:"giftValue"`
|
|
CreatedAtMS int64 `json:"createdAtMs"`
|
|
}
|