forked from WeiChunKao/Flask-Api-with-Pytest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.py
More file actions
34 lines (31 loc) · 911 Bytes
/
common.py
File metadata and controls
34 lines (31 loc) · 911 Bytes
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
import json
class Base():
@staticmethod
def getheader():
return {"Content-Type": "application/json",
'Connection': 'close',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'POST',
'Access-Control-Allow-Headers': 'x-requested-with,content-type'
}
@staticmethod
def transferTemplate():
return {
"currencies": {
"TWD": {
"TWD": 1,
"JPY": 3.669,
"USD": 0.03281
},
"JPY": {
"TWD": 0.26956,
"JPY": 1,
"USD": 0.00885
},
"USD": {
"TWD": 30.444,
"JPY": 111.801,
"USD": 1
}
}
}