ProjectScheduleService.php 614 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\common\service;
  3. use app\common\model\ProjectSchedule;
  4. class ProjectScheduleService extends Service
  5. {
  6. public function create($param = [])
  7. {
  8. $param = $this->autoParams($param);
  9. return ProjectSchedule::create($param);
  10. }
  11. public function update($param = [])
  12. {
  13. $param = $this->autoParams($param);
  14. return ProjectSchedule::update($param);
  15. }
  16. public function delete($param = [])
  17. {
  18. $param = $this->autoParams($param);
  19. $schedule = $this->one(ProjectSchedule::class);
  20. return $schedule->delete();
  21. }
  22. }