first commit
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* The file was created by Assimon.
|
||||
*
|
||||
* @author assimon<ashang@utf8.hk>
|
||||
* @copyright assimon<ashang@utf8.hk>
|
||||
* @link http://utf8.hk/
|
||||
*/
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
|
||||
use App\Models\Emailtpl;
|
||||
|
||||
class EmailtplService
|
||||
{
|
||||
|
||||
/**
|
||||
* 通过邮件标识获得邮件模板
|
||||
*
|
||||
* @param string $token 邮件标识
|
||||
* @return Emailtpl
|
||||
*
|
||||
* @author assimon<ashang@utf8.hk>
|
||||
* @copyright assimon<ashang@utf8.hk>
|
||||
* @link http://utf8.hk/
|
||||
*/
|
||||
public function detailByToken(string $token): Emailtpl
|
||||
{
|
||||
$tpl = Emailtpl::query()->where('tpl_token', $token)->first();
|
||||
return $tpl;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user