You've already forked think-plugs-notice
notice基础内容
This commit is contained in:
13
src/model/NoticeNotice.php
Normal file
13
src/model/NoticeNotice.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace jerryyan\notice\model;
|
||||
|
||||
use think\admin\Model;
|
||||
|
||||
class NoticeNotice extends Model
|
||||
{
|
||||
public static function types()
|
||||
{
|
||||
return static::mk()->group('type')->field('type,count(id) as count')->select();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user