This commit is contained in:
邹宗楠
2023-10-18 19:13:01 +08:00
parent ea7ed134fe
commit 1284fd8869
2 changed files with 15 additions and 9 deletions

View File

@@ -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 {