|
|
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();
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|