| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 198d897 commit 8592367
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,16 +22,14 @@ | |||
| 22 | 22 | import zuo.biao.apijson.server.AbstractParser; | |
| 23 | 23 | import zuo.biao.apijson.server.JSONRequest; | |
| 24 | 24 | import zuo.biao.apijson.server.SQLConfig; | |
| 25 | - import zuo.biao.apijson.server.SQLCreator; | ||
| 26 | 25 | import zuo.biao.apijson.server.SQLExecutor; | |
| 27 | - import zuo.biao.apijson.server.Structure; | ||
| 28 | 26 | import zuo.biao.apijson.server.Verifier; | |
| 29 | 27 | ||
| 30 | 28 | ||
| 31 | 29 | /**请求解析器 | |
| 32 | 30 | * @author Lemon | |
| 33 | 31 | */ | |
| 34 | - public class DemoParser extends AbstractParser implements SQLCreator { | ||
| 32 | + public class DemoParser extends AbstractParser { | ||
| 35 | 33 | ||
| 36 | 34 | ||
| 37 | 35 | public DemoParser() { | |
@@ -125,12 +123,6 @@ protected void onVerifyContent() throws Exception { | |||
| 125 | 123 | super.onVerifyContent(); | |
| 126 | 124 | } | |
| 127 | 125 | ||
| 128 | - | ||
| 129 | - @Override | ||
| 130 | - public JSONObject parseCorrectRequest(JSONObject target) throws Exception { | ||
| 131 | - return Structure.parseRequest(requestMethod, "", target, requestObject, getMaxUpdateCount(), this); | ||
| 132 | - } | ||
| 133 | - | ||
| 134 | 126 | // //可重写来设置最大查询数量 | |
| 135 | 127 | // @Override | |
| 136 | 128 | // public int getMaxQueryCount() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,7 @@ | |||
| 45 | 45 | /**parser for parsing request to JSONObject | |
| 46 | 46 | * @author Lemon | |
| 47 | 47 | */ | |
| 48 | - public abstract class AbstractParser implements Parser { | ||
| 48 | + public abstract class AbstractParser implements Parser, SQLCreator { | ||
| 49 | 49 | protected static final String TAG = "AbstractParser"; | |
| 50 | 50 | ||
| 51 | 51 | ||
@@ -340,9 +340,11 @@ public static JSONObject parseRequest(String request) throws Exception { | |||
| 340 | 340 | return obj; | |
| 341 | 341 | } | |
| 342 | 342 | ||
| 343 | - | ||
| 344 | - | ||
| 345 | - | ||
| 343 | + @Override | ||
| 344 | + public JSONObject parseCorrectRequest(JSONObject target) throws Exception { | ||
| 345 | + return Structure.parseRequest(requestMethod, "", target, requestObject, getMaxUpdateCount(), this); | ||
| 346 | + } | ||
| 347 | + | ||
| 346 | 348 | ||
| 347 | 349 | /**新建带状态内容的JSONObject | |
| 348 | 350 | * @param code | |
| Back | FazBrowse Home | New Git URL |
0 commit comments