123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\common\service;
- use app\common\model\ProjectSchedule;
- class ProjectScheduleService extends Service
- {
- public function create($param = [])
- {
- $param = $this->autoParams($param);
-
- return ProjectSchedule::create($param);
- }
- public function update($param = [])
- {
- $param = $this->autoParams($param);
- return ProjectSchedule::update($param);
- }
- public function delete($param = [])
- {
- $param = $this->autoParams($param);
- $schedule = $this->one(ProjectSchedule::class);
- return $schedule->delete();
- }
- }
|