Authored by LUOXC

添加帮助接口

... ... @@ -201,4 +201,8 @@ public class ErpGWOrderController {
LOG.info("api cancelOverseasOrder out, req is {}", request);
return new ApiResponse.ApiResponseBuilder().code(200).message("取消海外直邮订单成功").build();
}
}
... ...
package com.yohoufo.order.controller;
import com.yohoufo.common.ApiResponse;
import com.yohoufo.common.annotation.IgnoreSession;
import com.yohoufo.common.annotation.IgnoreSignature;
import com.yohoufo.common.annotation.InnerApi;
import com.yohoufo.order.model.request.TransferMoneyRequest;
import com.yohoufo.order.service.impl.TransferService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/erp/order/help")
public class OrderHelpController {
@Autowired
private TransferService transferService;
/**
* 转账
*/
@IgnoreSession
@IgnoreSignature
@InnerApi
@RequestMapping(value = "/transfer")
public ApiResponse transfer(@RequestBody TransferMoneyRequest req) {
return new ApiResponse.ApiResponseBuilder()
.code(200)
.message(transferService.transfer(req) ? "ok" : "ko")
.build();
}
}
... ...