hyperf-chat/app/Constants/TalkModeConstant.php

30 lines
381 B
PHP

<?php
namespace App\Constants;
/**
* 聊天对话模式
*
* @package App\Constants
*/
class TalkModeConstant
{
/**
* 私信
*/
const PRIVATE_CHAT = 1;
/**
* 群聊
*/
const GROUP_CHAT = 2;
public static function getTypes(): array
{
return [
self::PRIVATE_CHAT,
self::GROUP_CHAT
];
}
}