Skip to content

Commit

Permalink
📝 Writing docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed Oct 5, 2018
1 parent 0ed96d6 commit dd3efb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class DemoAction implements WorkAction {
private static AtomicLong index = new AtomicLong() ;

@Override
public WorkRes<DemoResVO> execute(Param paramMap) throws Exception {
public void execute(CicadaContext context,Param paramMap) throws Exception {
String name = paramMap.getString("name");
Integer id = paramMap.getInteger("id");
LOGGER.info("name=[{}],id=[{}]" , name,id);
Expand All @@ -84,7 +84,7 @@ public class DemoAction implements WorkAction {
res.setCode(StatusEnum.SUCCESS.getCode());
res.setMessage(StatusEnum.SUCCESS.getMessage());
res.setDataBody(demoResVO) ;
return res;
context.json(res);
}

}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public class DemoAction implements WorkAction {
private static AtomicLong index = new AtomicLong() ;

@Override
public WorkRes<DemoResVO> execute(Param paramMap) throws Exception {
public void execute(CicadaContext context,Param paramMap) throws Exception {
String name = paramMap.getString("name");
Integer id = paramMap.getInteger("id");
LOGGER.info("name=[{}],id=[{}]" , name,id);
Expand All @@ -92,7 +92,7 @@ public class DemoAction implements WorkAction {
res.setCode(StatusEnum.SUCCESS.getCode());
res.setMessage(StatusEnum.SUCCESS.getMessage());
res.setDataBody(demoResVO) ;
return res;
context.json(res);
}

}
Expand Down

0 comments on commit dd3efb6

Please sign in to comment.