73 lines
1.4 KiB
PHP
73 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace XuanChen\Coupon\Action;
|
|
|
|
use XuanChen\Coupon\Action\sinopec\ZhyCreate;
|
|
use XuanChen\Coupon\Contracts\CouponContracts;
|
|
|
|
/**
|
|
* Class SinopecAction 中石化控制器
|
|
* @Author: 玄尘
|
|
* @Date: 2020/9/23 15:14
|
|
* @package XuanChen\Coupon\Action
|
|
*/
|
|
class SinopecAction extends Init implements CouponContracts
|
|
{
|
|
/**
|
|
* Notes: 创建营销活动
|
|
* @Author: 玄尘
|
|
* @Date: 2020/9/23 16:01
|
|
* @param array $data
|
|
*/
|
|
public function create(array $data)
|
|
{
|
|
$action = new ZhyCreate();
|
|
$action->data = $data;
|
|
|
|
return $action->start();
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* Notes: 发券接口
|
|
* @Author: 玄尘
|
|
* @Date: 2020/9/23 15:58
|
|
*/
|
|
function grant()
|
|
{
|
|
// TODO: Implement grant() method.
|
|
}
|
|
|
|
/**
|
|
* Notes: 查询接口
|
|
* @Author: 玄尘
|
|
* @Date: 2020/9/23 15:58
|
|
* @return mixed|void
|
|
*/
|
|
function detail()
|
|
{
|
|
// TODO: Implement detail() method.
|
|
}
|
|
|
|
/**
|
|
* Notes: 作废接口
|
|
* @Author: 玄尘
|
|
* @Date: 2020/9/23 15:59
|
|
*/
|
|
function destroy()
|
|
{
|
|
// TODO: Implement destroy() method.
|
|
}
|
|
|
|
/**
|
|
* Notes: 核销接口
|
|
* @Author: 玄尘
|
|
* @Date: 2020/9/23 16:00
|
|
* @return mixed|void
|
|
*/
|
|
function start()
|
|
{
|
|
// TODO: Implement start() method.
|
|
}
|
|
} |