Code.php 523 字节
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/4/28
 * Time: 17:48
 */

namespace app\index\model;


use think\Model;

class Code extends Model
{
    public function findData($where){
        $data = $this->where($where)->find();
        return $data;
    }
    public function insertData($data){
        $result = $this->insert($data);
        return $result;
    }
    public function updateData($where,$data){
        $result = $this->where($where)->update($data);
        return $result;
    }
}