nutz 整合swagger,不能自定义api的方法名字吗
我想自定义doLogout的api方法名,但是@Api只支持类声明
@GET
@ApiOperation(value = "心跳接口", notes = "发我一个ping,回你一个pong", httpMethod="GET")
@Filters(@By(type = AccessTokenFilter.class, args = {"ioc:tokenFilter"}))
@At("/logout")
public Rs doLogout(){
Rs<UserDb> rs = new Rs<UserDb>();
rs.setCode(Rs.SUCCESS);
rs.setMsg("logout");
rs.setData(UserContext.getCurrentuser().get());
return rs;
}