email.php 662 字节
<?php

namespace Model;

/**
 * @author:dc
 * @time 2023/2/13 14:11
 * Class email
 */
class email {


    /**
     * 通过email查询
     * @param $email
     * @return array
     * @author:dc
     * @time 2023/2/13 14:50
     */
    public static function first($email):array {
        return [
            "select * from `emails` where `email` = ? limit 1",
            [
                $email
            ]
        ];
    }

    /**
     * 统计邮箱的数量
     * @return string
     * @author:dc
     * @time 2023/2/14 16:16
     */
    public static function count():string {
        return "select count(*) from `emails` limit 1";
    }


}