mirror of
https://github.com/dqjdda/Aurora.git
synced 2018-11-06 05:33:29 +00:00
完美集成支付宝支付,并提供沙箱测试环境,更新sql文件
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
package me.aurora.service;
|
||||
|
||||
import me.aurora.domain.utils.AlipayConfig;
|
||||
import me.aurora.domain.vo.TradeVo;
|
||||
import org.springframework.cache.annotation.CacheConfig;
|
||||
import org.springframework.cache.annotation.CachePut;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
|
||||
/**
|
||||
* @author zhengjie
|
||||
* @date 2018/09/30 14:12:41
|
||||
*/
|
||||
@CacheConfig(cacheNames = "alipay")
|
||||
public interface AlipayService {
|
||||
|
||||
/**
|
||||
* 处理来自PC的交易请求
|
||||
* @param alipay
|
||||
* @param trade
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
String toPayAsPC(AlipayConfig alipay, TradeVo trade) throws Exception;
|
||||
|
||||
/**
|
||||
* 处理来自手机网页的交易请求
|
||||
* @param alipay
|
||||
* @param trade
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
String toPayAsWeb(AlipayConfig alipay, TradeVo trade) throws Exception;
|
||||
|
||||
/**
|
||||
* 查询配置
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Cacheable(key = "#p0")
|
||||
AlipayConfig findById(long id);
|
||||
|
||||
/**
|
||||
* 配置
|
||||
* @param alipayConfig
|
||||
*/
|
||||
@CachePut(key = "#p0.getId()")
|
||||
AlipayConfig updateConfig(AlipayConfig alipayConfig);
|
||||
}
|
||||
Reference in New Issue
Block a user