Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
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"`
}