WechatMenus.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CatchAdmin [Just Like ~ ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2017~2020 http://catchadmin.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
  8. // +----------------------------------------------------------------------
  9. // | Author: JaguarJack [ njphper@gmail.com ]
  10. // +----------------------------------------------------------------------
  11. namespace catchAdmin\wechat\model;
  12. use think\Model;
  13. use catcher\traits\db\BaseOptionsTrait;
  14. class WechatMenus extends Model
  15. {
  16. use BaseOptionsTrait;
  17. protected $name = 'wechat_menus';
  18. protected $field = [
  19. 'id', //
  20. 'name', // 菜单名称
  21. 'parent_id', // 父级ID
  22. 'type', // 类型
  23. 'key', // key
  24. 'url', // view 类型 url 链接
  25. 'appid', // 小程序 appid
  26. 'pagepath', // 小程序页面
  27. 'media_id', // 调用新增永久素材接口返回的合法media_id
  28. 'created_at', // 创建时间
  29. 'updated_at', // 更新时间
  30. 'deleted_at', // 软删除
  31. ];
  32. }