Skip to content

Commit

Permalink
Server:同步eclipse版至idea版
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Nov 26, 2017
1 parent 0df9819 commit ac831cf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ private JSONObject newVerifyRequest(int type, String phone, String verify) {
* @see
* <pre>
{
"type": 0, //登录方式,非必须 0-密码 2-验证码
"type": 0, //登录方式,非必须 0-密码 1-验证码
"phone": "13000082001",
"password": "1234567",
"version": 1 //全局版本号,非必须
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import zuo.biao.apijson.RequestMethod;
import zuo.biao.apijson.RequestRole;
import zuo.biao.apijson.model.Column;
import zuo.biao.apijson.model.Document;
import zuo.biao.apijson.model.Request;
import zuo.biao.apijson.model.Response;
import zuo.biao.apijson.model.Table;
Expand Down Expand Up @@ -81,6 +82,7 @@ public class Verifier {
ACCESS_MAP.put(Test.class.getSimpleName(), getAccessMap(Test.class.getAnnotation(MethodAccess.class)));
ACCESS_MAP.put(Request.class.getSimpleName(), getAccessMap(Request.class.getAnnotation(MethodAccess.class)));
ACCESS_MAP.put(Response.class.getSimpleName(), getAccessMap(Response.class.getAnnotation(MethodAccess.class)));
ACCESS_MAP.put(Document.class.getSimpleName(), getAccessMap(Document.class.getAnnotation(MethodAccess.class)));

ACCESS_MAP.put(User.class.getSimpleName(), getAccessMap(User.class.getAnnotation(MethodAccess.class)));
ACCESS_MAP.put(Privacy.class.getSimpleName(), getAccessMap(Privacy.class.getAnnotation(MethodAccess.class)));
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*Copyright ©2016 TommyLemon(https://github.com/TommyLemon/APIJSON)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/

package zuo.biao.apijson.model;

import static zuo.biao.apijson.RequestRole.ADMIN;
import static zuo.biao.apijson.RequestRole.LOGIN;

import zuo.biao.apijson.MethodAccess;

/**测试用例文档类
* @author Lemon
*/
@MethodAccess(
GET = {LOGIN, ADMIN},
HEAD = {LOGIN, ADMIN}
)
public class Document {
}

0 comments on commit ac831cf

Please sign in to comment.