|
|
package com.yohoufo.inboxclient.controller;
|
|
|
|
|
|
import com.yohoufo.common.annotation.IgnoreSession;
|
|
|
import com.yohoufo.common.annotation.IgnoreSignature;
|
|
|
import com.yohoufo.inboxclient.model.InBoxResponse;
|
|
|
import com.yohoufo.inboxclient.model.InboxReqVO;
|
|
|
import com.yohoufo.inboxclient.sdk.InBoxSDK;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
/**
|
|
|
* Created by li.ma on 2019/3/19.
|
|
|
* 供后台调用发站内信
|
|
|
*/
|
|
|
@RequestMapping("/erp")
|
|
|
@Controller
|
|
|
public class InboxController {
|
|
|
private final Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
@Autowired
|
|
|
private InBoxSDK inBoxSDK;
|
|
|
|
|
|
@RequestMapping(value = "/addInboxForPlatform")
|
|
|
@IgnoreSession
|
|
|
@IgnoreSignature
|
|
|
public InBoxResponse addInboxForPlatform(@RequestBody InboxReqVO reqVO){
|
|
|
logger.info("InboxController.addInbox with param is {}", reqVO);
|
|
|
InBoxResponse result = inBoxSDK.addInbox(reqVO);
|
|
|
logger.info("InboxController.addInbox call result is {}",result);
|
|
|
return result;
|
|
|
}
|
|
|
} |
...
|
...
|
|