WechatReply.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 catchAdmin\wechat\model\search\ReplySearchTrait;
  13. use catcher\base\CatchModel;
  14. class WechatReply extends CatchModel
  15. {
  16. use ReplySearchTrait;
  17. protected $name = 'wechat_reply';
  18. protected $field = [
  19. 'id', //
  20. 'keyword', // 关键字
  21. 'media_id', // 微信资源ID
  22. 'media_url', // 本地资源 URL
  23. 'image_url', // 图片资源
  24. 'title', // 内容
  25. 'content', // 内容
  26. 'type', // 1文字 2图文 3图片 4音乐 5视频 6语音 7转客服
  27. 'status', // 1 正常 2 禁用
  28. 'rule_type', // 1 关键字 2 关注 3 默认
  29. 'creator_id', // 创建人ID
  30. 'created_at', // 创建时间
  31. 'updated_at', // 更新时间
  32. 'deleted_at', // 软删除
  33. ];
  34. const KEYWORD_RULE = 1;
  35. const ATTENTION_RULE = 2;
  36. const DEFAULT_RULE = 3;
  37. const WORD = 1;
  38. const GRAPHIC = 2;
  39. const IMAGE = 3;
  40. const MUSIC = 4;
  41. const VIDEO = 5;
  42. const VOICE = 6;
  43. const CUSTOMER_SERVICE = 7;
  44. }