1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- namespace app\store\model;
- use app\common\model\PromotionMonitorStatistics as PromotionMonitorStatisticsModel;
- /**
- * 推广监控统计模型
- * @package app\store\model
- */
- class PromotionMonitorStatistics extends PromotionMonitorStatisticsModel
- {
- public function getList()
- {
- return [];
- }
- /**
- * 新增记录
- * @param array $data
- * @return bool
- */
- public function add(array $data)
- {
- $this->transaction(function () use ($data) {
- $this->save($data);
- });
- return true;
- }
- /**
- * 更新记录
- * @param array $data
- * @return bool
- */
- public function edit(array $data)
- {
- $this->transaction(function () use ($data) {
- $this->save($data);
- });
- return true;
- }
-
- }
|