- mtwm user page api

This commit is contained in:
gazebo
2019-06-25 18:04:19 +08:00
parent cb2bdf4187
commit d3bec92319
4 changed files with 228 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ import (
"net/url"
"sort"
"strings"
"sync"
"time"
"git.rosy.net.cn/baseapi"
@@ -51,6 +52,9 @@ type API struct {
callbackURL string
client *http.Client
config *platformapi.APIConfig
locker sync.RWMutex
userCookies map[string]string
}
var (
@@ -71,6 +75,8 @@ func New(appID, secret, callbackURL string, config ...*platformapi.APIConfig) *A
callbackURL: callbackURL,
client: &http.Client{Timeout: curConfig.ClientTimeout},
config: &curConfig,
userCookies: make(map[string]string),
}
}