email.php
662 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?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";
}
}