package com.api.htsc.pubinterface;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;


/**
 * Created by K1810007 on 2020/9/27.
 */

@Path("/pubAction")
public class HttpPubInterfaceActionApi {

    @GET
    @Path("/pubGet")
    @Produces({MediaType.TEXT_PLAIN})
    public String index(@Context HttpServletRequest request, @Context HttpServletResponse response) {
        return "1";
    }

    @POST
    @Path("/pubPost")
    @Produces(MediaType.TEXT_PLAIN)
    public String remindLogin(@Context HttpServletRequest request, @Context HttpServletResponse response) {
        return "1";
    }
}
