Skip to content

Commit ac831cf

Browse files
committed
Server:同步eclipse版至idea版
1 parent 0df9819 commit ac831cf

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

APIJSON-Java-Server/APIJSON-Idea/src/main/java/apijson/demo/server/Controller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ private JSONObject newVerifyRequest(int type, String phone, String verify) {
403403
* @see
404404
* <pre>
405405
{
406-
"type": 0, //登录方式,非必须 0-密码 2-验证码
406+
"type": 0, //登录方式,非必须 0-密码 1-验证码
407407
"phone": "13000082001",
408408
"password": "1234567",
409409
"version": 1 //全局版本号,非必须

APIJSON-Java-Server/APIJSON-Idea/src/main/java/apijson/demo/server/Verifier.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import zuo.biao.apijson.RequestMethod;
4848
import zuo.biao.apijson.RequestRole;
4949
import zuo.biao.apijson.model.Column;
50+
import zuo.biao.apijson.model.Document;
5051
import zuo.biao.apijson.model.Request;
5152
import zuo.biao.apijson.model.Response;
5253
import zuo.biao.apijson.model.Table;
@@ -81,6 +82,7 @@ public class Verifier {
8182
ACCESS_MAP.put(Test.class.getSimpleName(), getAccessMap(Test.class.getAnnotation(MethodAccess.class)));
8283
ACCESS_MAP.put(Request.class.getSimpleName(), getAccessMap(Request.class.getAnnotation(MethodAccess.class)));
8384
ACCESS_MAP.put(Response.class.getSimpleName(), getAccessMap(Response.class.getAnnotation(MethodAccess.class)));
85+
ACCESS_MAP.put(Document.class.getSimpleName(), getAccessMap(Document.class.getAnnotation(MethodAccess.class)));
8486

8587
ACCESS_MAP.put(User.class.getSimpleName(), getAccessMap(User.class.getAnnotation(MethodAccess.class)));
8688
ACCESS_MAP.put(Privacy.class.getSimpleName(), getAccessMap(Privacy.class.getAnnotation(MethodAccess.class)));
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*Copyright ©2016 TommyLemon(https://github.com/TommyLemon/APIJSON)
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.*/
14+
15+
package zuo.biao.apijson.model;
16+
17+
import static zuo.biao.apijson.RequestRole.ADMIN;
18+
import static zuo.biao.apijson.RequestRole.LOGIN;
19+
20+
import zuo.biao.apijson.MethodAccess;
21+
22+
/**测试用例文档类
23+
* @author Lemon
24+
*/
25+
@MethodAccess(
26+
GET = {LOGIN, ADMIN},
27+
HEAD = {LOGIN, ADMIN}
28+
)
29+
public class Document {
30+
}

0 commit comments

Comments
 (0)