You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
988 B
33 lines
988 B
<?php
|
|
|
|
namespace App\Service;
|
|
|
|
interface CouponServiceInterface
|
|
{
|
|
|
|
public function getSystemCouponUserList($userId,$receiveType);
|
|
|
|
public function userCouponAccount();
|
|
|
|
public function userReceiveCoupon();
|
|
|
|
public function getUserReceiveCouponList();
|
|
|
|
public function getUserAvailableCoupons();
|
|
|
|
/**
|
|
* 当前订单可用优惠券列表
|
|
* @param $orderAmount 订单金额
|
|
* @param $marketId 市场ID
|
|
* @param $userId 用户ID
|
|
* @param int $type 优惠券类型,1全平台 2线上 3线下
|
|
* @param int[] $storeTypeIds 商户类型ID数组
|
|
* @param array $fields
|
|
* @return mixed
|
|
*/
|
|
public function getOrderCanUseCoupons($orderAmount, $marketId, $userId, $fields=[], $type=1, $storeTypeIds=[0]);
|
|
|
|
public function refundOrderCoupons($order_id,$user_id);
|
|
public function clearTodayCouponUsed($userId, $couponId);
|
|
public function orderRefundCoupon($global_order_id);
|
|
}
|