go-common/app/interface/bbq/app-bbq/api/http/v1/share.go

34 lines
624 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package v1
// Tuple .
type Tuple struct {
Key string
Val string
}
// ShareRequest .
type ShareRequest struct {
Svid int64 `form:"svid"`
Channel int32 `form:"share_channel"`
}
// ShareResponse .
type ShareResponse struct {
URL []*Tuple `json:"url"`
Params []*Tuple `json:"params"`
}
// ShareCallbackRequest .
type ShareCallbackRequest struct {
Svid int64 `form:"svid"`
URL string `form:"url"`
Type string `form:"type"`
Ctime int64 `form:"ctime"`
Channel int32 `form:"share_channel"`
}
// ShareCallbackResponse struct
type ShareCallbackResponse struct {
ShareCount int32 `json:"share"`
}