You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
463 B
31 lines
463 B
<?php
|
|
namespace app\index\model;
|
|
|
|
use think\Model;
|
|
use think\Db;
|
|
use \app\index\model\Option;
|
|
|
|
class Task extends Model{
|
|
|
|
public $taskModel;
|
|
public $taskName;
|
|
public $taskType;
|
|
public $taskContent;
|
|
|
|
public function __construct($id=null){
|
|
if($id!==null){
|
|
|
|
}
|
|
}
|
|
|
|
public function saveTask(){
|
|
Db::name("task")->insert([
|
|
"task_name" => $this->taskName,
|
|
"attr" => $this->taskContent,
|
|
"type" => $this->taskType,
|
|
"status" => "todo",
|
|
]);
|
|
}
|
|
|
|
}
|
|
?>
|