1
This commit is contained in:
@@ -21,13 +21,17 @@ func NewTaoVegetable(appKey, appSecret, serverUrl string) *API {
|
||||
}
|
||||
|
||||
type API struct {
|
||||
client topsdk.TopClient
|
||||
token string
|
||||
refreshToken string
|
||||
client topsdk.TopClient
|
||||
token string
|
||||
refreshToken string
|
||||
vendorOrgCode string
|
||||
}
|
||||
|
||||
func (a *API) GetVendorOrgCode() string {
|
||||
return a.client.AppKey
|
||||
return a.vendorOrgCode
|
||||
}
|
||||
func (a *API) SetVendorOrgCode(vendorOrgCode string) {
|
||||
a.vendorOrgCode = vendorOrgCode
|
||||
}
|
||||
|
||||
func (a *API) GetAppSecret() string {
|
||||
|
||||
Reference in New Issue
Block a user