Authored by mali

发站内信接口

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;
}
}
... ...
... ... @@ -28,8 +28,8 @@ public class InboxUserProxyService {
@Autowired
ServiceCaller serviceCaller;
@Value("${erp-gateway.url}")
private String erpGatewayUrl;
/* @Value("${erp-gateway.url}")
private String erpGatewayUrl;*/
@Value("${uic.url:http://uic.yohoops.org/uic}")
private String uicUrl;
... ...