go-common/app/interface/bbq/app-bbq/api/http/v1/share.go
2019-04-22 18:49:16 +08:00

34 lines
624 B
Go

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"`
}