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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import {PostLogin, PostData, GetData, PostFormData} from '../helpers';
import url from '../url';
export const loginApi = async (body) =>
PostLogin(url.urllogin, body)
.then((res) => res)
.catch((err) => err);
export const registorApi = async (body) =>
PostLogin(url.urlRegistor, body)
.then((res) => res)
.catch((err) => err);
export const logoutApi = async (body) =>
PostData('http://api.dcvinvest.com/api/auth/logout', body)
.then((res) => res)
.catch((err) => err);
export const getOTPApi = async (body) =>
PostLogin(url.urlGetOTP, body)
.then((res) => res)
.catch((err) => err);
export const verifyOTPApi = async (body) =>
PostLogin(url.urlVerifyOTP, body)
.then((res) => res)
.catch((err) => err);
export const forgotPasswordApi = async (body) =>
PostLogin(url.urlForgotPassword, body)
.then((res) => res)
.catch((err) => err);
export const verifyAccountApi = async (body) =>
PostFormData(url.urlVerifyAccount, body)
.then((res) => res)
.catch((err) => err);
export const getTransaction = async (body) =>
GetData(url.urlGetTransaction, body)
.then((res) => res)
.catch((err) => err);
export const getListNotification = async (body) =>
GetData(url.urlGetListNotification, body)
.then((res) => res)
.catch((err) => err);
export const updateInforUser = async (body) =>
PostData(url.urlUpdateInforUser, body)
.then((res) => res)
.catch((err) => err);
export const updateLangugeApi = async (body) =>
PostData(url.urlUpdateLanguage, body)
.then((res) => res)
.catch((err) => err);
export const getNewestVersionInfo = async (body) =>
GetData(url.urlGetNewestVersionInfo, body)
.then((res) => res)
.catch((err) => err);
export const changeAvatart = async (body) =>
PostFormData(url.urlChangeAvatar, body)
.then((res) => res)
.catch((err) => err);