-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebug_user.htm
177 lines (174 loc) · 6.63 KB
/
debug_user.htm
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
<!DOCTYPE html>
<html>
<head>
<title>用户Api调试</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="jquery/jquery.min.js"></script>
<script src="My97DatePicker/WdatePicker.js"></script>
<script src="My97DatePicker/lang/zh-cn.js"></script>
<base target="_blank" />
</head>
<body>
<div class="container">
<div id="main">
<div class="col-md-12">
<fieldset>
<legend>用户登录</legend>
<dl>
<dt>请求地址:</dt><dd>api.php?model=user&action=authorize</dd>
<dt>账号:</dt><dd>Account<span class="required">*</span></dd>
<dt>密码:</dt><dd>Password<span class="required">*</span></dd>
<dt>性别:</dt><dd>Sex(0:女,1:男)</dd>
</dl>
<fieldset>
<legend>测试</legend>
<form method="post" action="api.php?model=user&action=authorize">
<ul>
<li><input name="Account" value="" placeholder="账号" /></li>
<li><input name="Password" value="" placeholder="密码"</li>
<li>
<select name="Sex" placeholder="性别">
<option value="">全部</option>
<option value="0">女</option>
<option value="1">男</option>
</select>
</li>
</ul>
<button type="submit">查询</button>
</form>
</fieldset>
</fieldset>
<form target="_blank" method="post" action="api.php?model=user&action=query">
<fieldset>
<legend>用户查询</legend>
<dl>
<dt>请求地址:</dt><dd>api.php?model=user&action=query</dd>
<dt>分页参数:</dt>
<dd>
<ul>
<li>起始页:PageIndex</li>
<li>页码大小:PageSize</li>
<li>排序字段:PageSort</li>
<li>查询字段:PageItems
<ol>
<li>Id</li>
<li>Name</li>
<li>NickName</li>
<li>Sex(0:女,1:男)</li>
<li>Img</li>
<li>BodyHeight</li>
<li>BodyWeight</li>
<li>EducationalHistory:[1:"小学",2:"初中",3:"中专",4:"高中",5:"大专",6:"本科",7:"研究生",8:"博士"]</li>
<li>Constellation:[1:"白羊座",2:"金牛座",3:"双子座",4:"巨蟹座",5:"狮子座",6:"处女座",7:"天秤座",8:"天蝎座",9:"射手座",10:"魔羯座",11:水瓶座",12:"双鱼座"]</li>
<li>CivilState:[1:"未婚",2:"已婚",3:"离异"]</li>
<li>Career</li>
<li>Description</li>
<li>ContactWay</li>
<li>ContactQQ</li>
<li>ContactEmail</li>
<li>ContactMobile</li>
<li>InterestAndFavorites</li>
<li>Birthday</li>
<li>DateTimeModify</li>
<li>DateTimeCreate</li>
<li>CountFollow</li>
<li>CountFollowed</li>
<li>CountView</li>
<li>CountScore</li>
<li>CountPoint</li>
<li>CountMessage</li>
</ol>
</li>
</ul>
</dd>
<dt>过滤参数(可选)</dt>
<dd>编号:Id</dd>
<dd>名称:Name</dd>
<dd>昵称:NickName</dd>
<dd>性别:Sex(0:女,1:男)</dd>
<dd>学历:EducationalHistory</dd>
<dd>出生年月日:BirthdayMin - BirthdayMax</dd>
<dd>状态:Status(1:启用,0:禁用)</dd>
<dd>是否有主图:Img(1有,0没有)</dd>
<dd>身高:BodyHeightMin - BodyHeightMax</dd>
<dd>体重:BodyWeightMin - BodyWeightMax</dd>
</dd>
</dl>
<fieldset>
<legend>分页参数</legend>
<ul>
<li><label>PageIndex</label><input name="PageIndex" type="number" value="1" /></li>
<li><label>PageSize</label><input name="PageSize" type="number" value="20" /></li>
<li><label>PageSort</label><input name="PageSort" type="text" value="" placeholder="排序字段" /></li>
<li><label>PageItems</label><input name="PageItems" type="text" value="" placeholder="返回字段" /></li>
</ul>
</fieldset>
<fieldset>
<legend>测试</legend>
<ul>
<li><input name="Id" type="number" class="form-control input-sm wd120" placeholder="编号" /></li>
<li><input name="Name" type="text" class="form-control input-sm wd120" placeholder="名字" /></li>
<li><input name="NickName" type="text" class="form-control input-sm wd120" placeholder="昵称" /></li>
<li>
<label>性别</label>
<select name="Sex" class="form-control input-sm" placeholder="性别">
<option value="">全部</option>
<option value="0">女</option>
<option value="1">男</option>
</select>
</li>
<li>
<label>学历</label>
<select name="EducationalHistory" class="form-control input-sm" placeholder="性别">
<option value="">全部</option>
<option value="1">小学</option>
<option value="2">初中</option>
<option value="3">中专</option>
<option value="4">高中</option>
<option value="5">大专</option>
<option value="6">本科</option>
<option value="7">研究生</option>
<option value="8">博士</option>
</select>
</li>
<li>
<input id="BirthdayMin" name="BirthdayMin" class="Wdate" placeholder="生日" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'BirthdayMax\')}'});" />
-
<input id="BirthdayMax" name="BirthdayMax" class="Wdate" placeholder="生日" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'BirthdayMin\')}'});" />
</li>
<li>
<label>状态</label>
<select name="Status" class="form-control input-sm" placeholder="状态">
<option value="">全部</option>
<option value="1">启用</option>
<option value="0">禁用</option>
</select>
</li>
<li>
<label>是否设置主图</label>
<input name="Img" type="checkbox" value="true" />
</li>
<li>
<label>身高</label>
<input name="BodyHeightMin" value="" />
-
<input name="BodyHeightMax" value="" />
</li>
<li>
<label>体重</label>
<input name="BodyWeightMin" value="" />
-
<input name="BodyWeightMax" value="" />
</li>
</ul>
<button type="submit">查询</button>
</fieldset>
</fieldset>
</form>
</div>
</div>
</div>
</body>
</html>