EditInfoModel.ets
2.07 KB
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
/**
* WDEditDataModelType 更新资料类型
*/
export const enum WDEditDataModelType {
WDEditDataModelType_default = 0, //默认不修改
WDEditDataModelType_head, //头像
WDEditDataModelType_nickname, //昵称
WDEditDataModelType_intro, //简介
WDEditDataModelType_sex, //性别
WDEditDataModelType_birthday, //生日
WDEditDataModelType_region //地址
}
export class EditListInfo{
//标题
title:string
//副标题
subTitle:string
constructor(title:string , subTitle:string) {
this.title = title;
this.subTitle = subTitle
}
}
export class EditInfoModel{
//头像
headPhotoUrl:string = ''
//简介
introduction:string = ''
//省
city:string = ''
//市
province:string = ''
//区
county:string = ''
//地址
address:string = ''
//生日
birthday:string = ''
creatorId:string = ''
//性别
sex:number = 0
airec:number = 0
districtCode:string = ''
provinceCode:string = ''
cityCode:string = ''
}
export class editModel{
userName:string = ''
userNameStatus:string = ''
userType:number = 1
phone:string = ''
introduction:string = ''
headPhotoUrl:string = ''
headPhotoStatus:string = ''
userExtend:EditInfoModel = new EditInfoModel()
editDataType:number = WDEditDataModelType.WDEditDataModelType_default
}
export interface editModelParams {
editContent?: string;
userName?: string;
introduction?: string;
//地区
city?:string;
county?:string;
province?:string;
address?:string;
//生日
birthday?:string;
//性别
sex?:string;
///人民号
name?: string;
districtCode?:string;
countryCode?:string;
provinceCode?:string;
cityCode?:string;
creatorId?:string;
}
export interface editItem{
code:number
data:editModel
message:string
success:boolean
timestamp:number
}
export interface peopleItem{
code:number
data:peopleItemModel
message:string
success:boolean
timestamp:number
}
export class peopleItemModel{
userName:string = ''
introduction:string = ''
headPhotoUrl:string = ''
userType:number = 1
}