first commit
This commit is contained in:
27
Swoft_BackEndApi/app/Model/Service/impl/CourseService.php
Normal file
27
Swoft_BackEndApi/app/Model/Service/impl/CourseService.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user