123456789101112131415161718192021222324 |
- <?php
- namespace app\service;
- use app\model\Grid;
- use app\model\Statstics;
- class StatsticsService {
- public static function delStatistic($info): bool
- {
- return Statstics::destroy($info['id']);
- }
- public static function editStatisticInfo($info,$id): Grid
- {
- return Statstics::update($info,["id"=>$id]);
- }
- public static function addStatistic($info): bool
- {
- return (new Statstics())->save($info);
- }
- }
|