third-platform-sdk/api/api.go
2024-04-30 17:57:27 +08:00

21 lines
469 B
Go

package api
type PromotionSdk interface {
Sign(data map[string]interface{}) string //签名
GetLink(r *GetLinkRequest) (*GetLinkResponse, error) //推广取链
GetOrder(r *GetOrderRequest) (*GetOrderResponse, error) //拉取订单信息
}
type PromotionConf struct {
AppKey string
AppSecret string
Ext1 string
Ext2 string
Ext3 string
Ext4 string
}
func NewPromotionSdk(sdk PromotionSdk) PromotionSdk {
return sdk
}