package cn.com.poc.user.wecom.rest;

import cn.com.yict.framemax.core.rest.BaseRest;
import cn.com.yict.framemax.web.permission.Access;
import cn.com.yict.framemax.web.permission.Permission;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Permission(Access.Anonymous)
public interface WecomCallbackRest extends BaseRest {

    void commandEvent(HttpServletRequest request, HttpServletResponse response,
                      @RequestParam(value = "msg_signature") String msgSignature,
                      @RequestParam(value = "timestamp") String timestamp,
                      @RequestParam(value = "nonce") String nonce,
                      @RequestParam(value = "echostr", required = false) String data) throws Exception;
}
