catchAdmin/catch/wechat/model/WechatMenus.php
2020-06-26 16:27:20 +08:00

39 lines
1.2 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2020 http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
namespace catchAdmin\wechat\model;
use think\Model;
use catcher\traits\db\BaseOptionsTrait;
class WechatMenus extends Model
{
use BaseOptionsTrait;
protected $name = 'wechat_menus';
protected $field = [
'id', //
'name', // 菜单名称
'parent_id', // 父级ID
'type', // 类型
'key', // key
'url', // view 类型 url 链接
'appid', // 小程序 appid
'pagepath', // 小程序页面
'media_id', // 调用新增永久素材接口返回的合法media_id
'created_at', // 创建时间
'updated_at', // 更新时间
'deleted_at', // 软删除
];
}