Skip to content

Commit a50c392

Browse files
committed
go.sum 추가 및 HttpGET 쓰는 함수들 파라미터 추가
1 parent cf538f7 commit a50c392

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

api/accounts.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/shieldnet/gobit/jwtmaker"
1313
"log"
1414
"net/http"
15+
"net/url"
1516
)
1617

1718
type Account struct {
@@ -32,7 +33,7 @@ func GetAccountInfo(key jwtmaker.Keys) AccountList {
3233
}
3334
//println(req.URL.String())
3435

35-
resp, _ := HttpGet(req.URL.String(), map[string]string{"Authorization": "Bearer " + jwtmaker.MakeJwtWithoutPayload(key)})
36+
resp, _ := HttpGet(req.URL.String(), map[string]string{"Authorization": "Bearer " + jwtmaker.MakeJwtWithoutPayload(key)}, url.Values{})
3637
//println(string(resp))
3738
accounts := AccountList{}
3839
err = json.Unmarshal(resp, &accounts)

api/service_info.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"encoding/json"
55
"log"
66
"net/http"
7+
"net/url"
78
)
89

910
type Market struct {
@@ -23,7 +24,7 @@ func GetAllMarketCodes() MarketList {
2324
q.Add("isDetails", "false")
2425
req.URL.RawQuery = q.Encode()
2526

26-
resp, _ := HttpGet(req.URL.String(), map[string]string{})
27+
resp, _ := HttpGet(req.URL.String(), map[string]string{}, url.Values{})
2728

2829
markets := MarketList{}
2930
err = json.Unmarshal(resp, &markets)

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
2+
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
3+
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
4+
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=

0 commit comments

Comments
 (0)