hyperf-chat/app/Constants/TalkMessageType.php

22 lines
577 B
PHP
Raw Normal View History

2021-07-01 23:10:18 +08:00
<?php
namespace App\Constants;
/**
* Class TalkMessageType
*
* @package App\Constants
*/
2021-07-08 19:30:03 +08:00
class TalkMessageType
2021-07-01 23:10:18 +08:00
{
const TEXT_MESSAGE = 1;//文本消息
const FILE_MESSAGE = 2;//文件消息
const FORWARD_MESSAGE = 3;//会话消息
const CODE_MESSAGE = 4;//代码消息
const VOTE_MESSAGE = 5;//投票消息
2021-07-08 19:30:03 +08:00
const GROUP_NOTICE_MESSAGE = 6;//群组公告
2021-07-01 23:10:18 +08:00
const FRIEND_APPLY_MESSAGE = 7;//好友申请
2021-07-05 21:52:44 +08:00
const USER_LOGIN_MESSAGE = 8;//登录通知
const GROUP_INVITE_MESSAGE = 9;//入群退群消息
2021-07-01 23:10:18 +08:00
}