hyperf-chat/app/Constants/TalkModeConstant.php

30 lines
374 B
PHP
Raw Normal View History

2021-07-05 21:52:44 +08:00
<?php
namespace App\Constants;
2021-07-08 19:30:03 +08:00
/**
* 聊天对话模式
*
* @package App\Constants
*/
2021-07-20 23:12:18 +08:00
class TalkModeConstant
2021-07-05 21:52:44 +08:00
{
2021-07-09 22:57:19 +08:00
/**
* 私信
*/
2021-07-05 21:52:44 +08:00
const PRIVATE_CHAT = 1;
2021-07-09 22:57:19 +08:00
/**
* 群聊
*/
2021-07-05 21:52:44 +08:00
const GROUP_CHAT = 2;
public static function getTypes()
{
return [
self::PRIVATE_CHAT,
self::GROUP_CHAT
];
}
}