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 }