package com.pcloud.common.trade.service;



import java.util.List;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import com.pcloud.common.dto.ResponseDto;
import com.pcloud.common.trade.vo.PayParamVO;
import com.pcloud.common.trade.vo.TargetIdAndTypeVO;

/**
 * 交易公用接口
 * Created by ${user} on ${date}
 */
public interface TradeCommonService {

    @RequestMapping(value = "/getPayParam",method = RequestMethod.POST)
    ResponseEntity<ResponseDto<List<PayParamVO>>>getPayParam(@RequestBody TargetIdAndTypeVO targetIdAndTypeVO);

    @RequestMapping(value = "getProductIdByAppId",method = RequestMethod.GET)
    ResponseEntity<ResponseDto<Long>>getProductIdByAppId(@RequestParam("appId") Long appId);




}
