41 lines
1020 B
PHP
41 lines
1020 B
PHP
<?php
|
|
|
|
namespace App\Contracts;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
interface PromotionResourceInterface
|
|
{
|
|
|
|
public function listing($params);
|
|
|
|
public function store(Request $request);
|
|
|
|
public function getByField($field,$value, $relationship = null);
|
|
|
|
public function update($request, $uuid);
|
|
|
|
public function delete($uuid);
|
|
|
|
public function getDetailsWhereIn($field,$value,$relationship = null);
|
|
|
|
public function get_promotion($include_promotion = null);
|
|
|
|
public function getTopTwoPromotion($type);
|
|
|
|
public function get_promo_by_date_type($date,$type);
|
|
|
|
public function get_promo_by_date_birthdate_type($date,$birthdate,$type);
|
|
|
|
public function get_promo_by_date_station_gps($station_ids, $date, $type);
|
|
|
|
public function get_promo_by_birthdate_station_gps($station_ids,$date,$birthdate,$type);
|
|
|
|
public function expire_top_two();
|
|
|
|
public function get_all_branch_promo($date, $type);
|
|
|
|
public function get_all_branch_promo_by_birthdate($date,$birthdate,$type);
|
|
|
|
}
|