first commit

This commit is contained in:
2026-04-15 20:16:52 +08:00
commit 8f45044411
1172 changed files with 329978 additions and 0 deletions
+34
View File
@@ -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;
}
}