-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
205 lines (178 loc) · 4.65 KB
/
types.ts
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
/* tslint:disable */
// Generated using typescript-generator version 2.5.423 on 2019-03-17 22:57:04.
export interface Account extends Serializable, UserDetails {
id: number;
inviter: number;
nickname: string;
phone: string;
role: Role;
grade: number;
name: string;
idCard: string;
gold: number;
regularCommodityCost: number;
specialCommodityCost: number;
commissionBalance: number;
commissionSellFacility: number;
commissionSell: number;
rebateBalance: number;
rebateSell: number;
defaultAddress: number;
defaultBankCard: number;
}
export interface Address extends Serializable {
id: number;
accountId: number;
name: string;
address: string;
phone: string;
}
export interface BankCard extends Serializable {
id: number;
accountId: number;
name: string;
cardId: string;
region: string;
phone: string;
bank: string;
huijuSignId: string;
}
export interface ACTSell extends Serializable {
id: number;
accountId: number;
category: ACTSellCategory;
price: number;
amount: number;
process: ACTSellProcess;
payPass: number;
payId: string;
createTime: Date;
soldTime: Date;
rejectTime: Date;
}
export interface ACTSharedRecord extends Serializable, LongId {
price: number;
remainPurchase: number;
}
export interface Commission extends Serializable {
id: number;
accountId: number;
commodityId: number;
tag: number;
amount: number;
process: CommissionProcess;
expressCompany: number;
expressId: string;
createTime: Date;
soldTime: Date;
deliverTime: Date;
}
export interface Commodity extends Serializable {
id: number;
name: string;
category: CommodityCategory;
price: number;
primeCost: number;
rebateMYT: number;
gold: number;
stock: number;
sale: number;
onSale: boolean;
recommend: boolean;
thumbnail: string;
picture: string;
tag: Tag[];
}
export interface CommodityOrder extends Serializable {
id: number;
accountId: number;
commodityId: number;
tag: number;
amount: number;
commissionCost: number;
rebateCost: number;
payCost: number;
addressId: number;
process: OrderProcess;
payPass: number;
payId: string;
expressCompany: number;
expressId: string;
createTime: Date;
payTime: Date;
deliverTime: Date;
refundTime: Date;
}
export interface MYTSell extends Serializable {
id: number;
accountId: number;
category: MYTSellCategory;
price: number;
amount: number;
process: MYTSellProcess;
payPass: number;
payId: string;
createTime: Date;
soldTime: Date;
rejectTime: Date;
}
export interface MYTSharedRecord extends Serializable, LongId {
price: number;
remainPurchase: number;
}
export interface PayForOrderResult {
expectVcode: boolean;
order: CommodityOrder;
}
export interface Tag extends Serializable {
id: number;
content: string;
}
export interface HeadPicture extends Serializable {
id: number;
picture: string;
commodityId: number;
}
export interface Notice extends Serializable {
id: number;
content: string;
}
export interface Config extends Serializable, LongId {
netCostLimitPerAccount: number;
sellMYTLowerLimit: number;
sellMYTUpperLimit: number;
rebateRatio_1: number;
rebateRatio_2: number;
rebateRatio_3: number;
rebateRatio_ex: number;
sellFacilityRatio_1: number;
sellFacilityRatio_2: number;
sellFacilityRatio_3: number;
sellFacilityRatio_ex: number;
commissionRatio: number;
}
export interface GrantedAuthority extends Serializable {
authority: string;
}
export interface Serializable {
}
export interface UserDetails extends Serializable {
authorities: GrantedAuthority[];
accountNonLocked: boolean;
accountNonExpired: boolean;
credentialsNonExpired: boolean;
enabled: boolean;
username: string;
password: string;
}
export interface LongId {
id: number;
}
export type Role = "ADMIN" | "CUSTOMER" | "SUPPLIER";
export type ACTSellCategory = "COMMISSION" | "REBATE";
export type ACTSellProcess = "WAIT_FOR_REVIEW" | "WAIT_FOR_PAYMENT_RESULT" | "SOLD" | "REJECT";
export type CommissionProcess = "WAIT_FOR_REVIEW" | "ON_SALE" | "SOLD" | "DELIVERED";
export type CommodityCategory = "REGULAR" | "SPECIAL";
export type OrderProcess = "WAIT_FOR_PAYMENT" | "WAIT_FOR_PAYMENT_RESULT" | "WAIT_FOR_DELIVER" | "DELIVERED" | "WAIT_FOR_REFUND" | "REFUNDED";
export type MYTSellCategory = "COMMISSION" | "REBATE";
export type MYTSellProcess = "WAIT_FOR_REVIEW" | "WAIT_FOR_PAYMENT_RESULT" | "SOLD" | "REJECT";