catchAdmin/catch/wechat/model/WechatReply.php
2020-06-30 07:36:38 +08:00

52 lines
1.6 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 catchAdmin\wechat\model\search\ReplySearchTrait;
use catcher\base\CatchModel;
class WechatReply extends CatchModel
{
use ReplySearchTrait;
protected $name = 'wechat_reply';
protected $field = [
'id', //
'keyword', // 关键字
'media_id', // 微信资源ID
'media_url', // 本地资源 URL
'image_url', // 图片资源
'title', // 内容
'content', // 内容
'type', // 1文字 2图文 3图片 4音乐 5视频 6语音 7转客服
'status', // 1 正常 2 禁用
'rule_type', // 1 关键字 2 关注 3 默认
'creator_id', // 创建人ID
'created_at', // 创建时间
'updated_at', // 更新时间
'deleted_at', // 软删除
];
const KEYWORD_RULE = 1;
const ATTENTION_RULE = 2;
const DEFAULT_RULE = 3;
const WORD = 1;
const GRAPHIC = 2;
const IMAGE = 3;
const MUSIC = 4;
const VIDEO = 5;
const VOICE = 6;
const CUSTOMER_SERVICE = 7;
}