package eleme_union import ( "github.com/zeromicro/go-zero/core/logx" ) // todo:: 调用第三方平台的api // Api defines the interface of eleme_union api type Api interface { Sign(data map[string]interface{}) string GetLink() error GetOrder() error } type ApiImpl struct { log logx.Logger client *Client } func NewApiImpl(log logx.Logger, client *Client) Api { return &ApiImpl{ log: log, client: client, } } // todo:: func (a *ApiImpl) Sign(data map[string]interface{}) string { return "" } // todo:: func (a *ApiImpl) GetLink() error { return nil } // todo:: func (a *ApiImpl) GetOrder() error { return nil }