2 changed files with 50 additions and 0 deletions
@ -0,0 +1,42 @@ |
|||
package cn.chjyj.szwh.controller.api; |
|||
|
|||
import cn.chjyj.szwh.controller.BaseController; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 支付 |
|||
* 仅仅使用post 方式提交 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping(value = "/api/Pay",method = RequestMethod.POST) |
|||
public class PayController extends BaseController { |
|||
/** |
|||
* 拼装付款方式 |
|||
* @param batchcode |
|||
* @return |
|||
*/ |
|||
@RequestMapping("/payment") |
|||
public JSONObject payment(String batchcode){ |
|||
jsonObject.put("code",200); |
|||
jsonObject.put("msg","success"); |
|||
jsonObject.put("data",batchcode); |
|||
return jsonObject; |
|||
} |
|||
|
|||
/** |
|||
* 支付回调 |
|||
* @return |
|||
*/ |
|||
@RequestMapping("/payCallback") |
|||
public JSONObject payCallback(){ |
|||
Map paydata=new HashMap<>(); |
|||
paydata.put("method",""); |
|||
return jsonObject; |
|||
} |
|||
} |
|||
@ -0,0 +1,8 @@ |
|||
package cn.chjyj.szwh.service; |
|||
|
|||
/** |
|||
* 支付服务接口 |
|||
*/ |
|||
public interface PayService { |
|||
|
|||
} |
|||
Loading…
Reference in new issue