-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.go
54 lines (46 loc) · 934 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package okex
/*
constants
@author Tony Tian
@date 2018-03-17
@version 1.0.0
*/
const (
/*
http headers
*/
OK_ACCESS_KEY = "OK-ACCESS-KEY"
OK_ACCESS_SIGN = "OK-ACCESS-SIGN"
OK_ACCESS_TIMESTAMP = "OK-ACCESS-TIMESTAMP"
OK_ACCESS_PASSPHRASE = "OK-ACCESS-PASSPHRASE"
/**
paging params
*/
OK_FROM = "OK-FROM"
OK_TO = "OK-TO"
OK_LIMIT = "OK-LIMIT"
CONTENT_TYPE = "Content-Type"
ACCEPT = "Accept"
COOKIE = "Cookie"
LOCALE = "locale="
APPLICATION_JSON = "application/json"
APPLICATION_JSON_UTF8 = "application/json; charset=UTF-8"
/*
i18n: internationalization
*/
ENGLISH = "en_US"
SIMPLIFIED_CHINESE = "zh_CN"
//zh_TW || zh_HK
TRADITIONAL_CHINESE = "zh_HK"
/*
http methods
*/
GET = "GET"
POST = "POST"
DELETE = "DELETE"
/*
others
*/
ResultDataJsonString = "resultDataJsonString"
ResultPageJsonString = "resultPageJsonString"
)