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
69
70
71
72
73
74
75
76
77
78
79
80
import { customerFetch } from '.';
export class LoginParams {
/** 登陆标识 */
code?: string;
/** 账号 */
loginAccount?: string;
/** 密码 */
password?: string;
}
export const appLogin = (data: LoginParams) =>
customerFetch({
url: '/dcxy/wechat/applet/login/',
method: 'POST',
data: data,
});
export const appLogout = () =>
customerFetch({
url: '/dcxy/wechat/applet/login/out',
});
export class PwdParams {
/** 账号 */
loginAccount: string;
/** 密码 */
password: string;
/** 验证码 */
verification: string;
}
export const changePwdByCellphone = (data: PwdParams) =>
customerFetch({
url: '/app/customer/forget/pwd',
method: 'POST',
data: data,
});
type RegisiterPramas = {};
// type RegisiterReponseData = {};
export const wxUserRegister = (entity: RegisiterPramas) =>
customerFetch({
url: '/dcxy/wechat/applet/register/',
method: 'POST',
data: entity,
});
type perfectionCustomerParams = {
birthDay?: string;
customerHead?: string;
customerId: number;
customerName: string;
customerSex: string;
email?: string;
entranceDate?: string;
idCard?: string;
studentNo?: string;
};
export const perfectionUserInfo = (entity: perfectionCustomerParams) =>
customerFetch({
url: '/dcxy/wechat/applet/perfection/customer',
method: 'POST',
data: entity,
});
type CustomerParam = {
areaId: number;
areaName: string;
customerId: number;
customerName: string;
customerPhone: string;
feedbackContent: string;
};
export const fetchFeedback = (entity: CustomerParam) =>
customerFetch({
url: '/app/customer/feed/back',
method: 'POST',
data: entity,
});