27 lines
521 B
PHP
27 lines
521 B
PHP
<?php
|
|
|
|
|
|
namespace App\Model\Service\impl;
|
|
|
|
use App\Model\Service\CourseInterface;
|
|
use Swoft\Bean\Annotation\Mapping\Bean;
|
|
use Swoft\Bean\Annotation\Mapping\Inject;
|
|
|
|
/**
|
|
* @Bean("CourseService")
|
|
*/
|
|
class CourseService implements CourseInterface {
|
|
|
|
/**
|
|
* @Inject("CourseDao")
|
|
*/
|
|
private $CourseDao;
|
|
|
|
public function addNewCourse(array $info) {
|
|
$data = [
|
|
"tableName" => "coures",
|
|
"data" => $info
|
|
];
|
|
return $this->CourseDao->addNewCourseDao($data);
|
|
}
|
|
} |