mirror of
https://github.com/wushuo894/ani-rss.git
synced 2026-03-13 09:20:23 +00:00
26 lines
706 B
Java
26 lines
706 B
Java
package ani.rss.action;
|
|
|
|
import ani.rss.entity.Mikan;
|
|
import ani.rss.util.other.MikanUtil;
|
|
import ani.rss.web.action.BaseAction;
|
|
import ani.rss.web.annotation.Auth;
|
|
import ani.rss.web.annotation.Path;
|
|
import cn.hutool.http.server.HttpServerRequest;
|
|
import cn.hutool.http.server.HttpServerResponse;
|
|
|
|
import java.io.IOException;
|
|
|
|
/**
|
|
* Mikan搜索
|
|
*/
|
|
@Auth
|
|
@Path("/mikan")
|
|
public class MikanAction implements BaseAction {
|
|
@Override
|
|
public void doAction(HttpServerRequest request, HttpServerResponse response) throws IOException {
|
|
String text = request.getParam("text");
|
|
Mikan.Season season = getBody(Mikan.Season.class);
|
|
resultSuccess(MikanUtil.list(text, season));
|
|
}
|
|
}
|