<?php

namespace app\dao;

use App\model\Message;
use App\model\BankLog;
use plugin\admin\app\model\User;

class MessageDao {
    /**
     * 发送消息 提醒
     *
     * @param [int] $to_user_id 用户id
     * @param [string] $title   标题
     * @param [string] $content 内容
     * @param string $parameters 携带参数
     * @return void
     */
    public static function SendMessage($to_user_id,$title,$content,$parameters=""){
        $Message = new Message();
        $Message->content = $content;
        $Message->title = $title;
        $Message->parameters = $parameters;
        $Message->userid = $to_user_id;
        $Message->save();
    }
}