Consult.php
526 字节
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2020/5/19
* Time: 21:45
*/
namespace app\index\model;
use think\Model;
class Consult extends Model
{
public function insertData($data){
$result = $this->insert($data);
return $result;
}
public function updateData($where,$data){
$result = $this->where($where)->update($data);
return $result;
}
public function findData($where){
$data = $this->where($where)->find();
return $data;
}
}