Skip to content
On this page

InteractionHelper

App\Helpers\InteractionHelper

获取数据计数

php
InteractionHelper::fresnsOverview();

获取角色信息和权限参数

php
InteractionHelper::fresnsRoleInfo($roleId, $langTag);
参数名类型是否必传说明
roleIdNumberYes角色 ID
langTagStringNO语言标签,不传则使用默认语言

获取用户交互配置

php
InteractionHelper::fresnsUserInteraction($langTag);
Parameter NameTypeRequiredDescription
langTagStringoptionalIf empty, the default language is used.

获取小组交互配置

php
InteractionHelper::fresnsGroupInteraction($langTag);
Parameter NameTypeRequiredDescription
langTagStringoptionalIf empty, the default language is used.

获取话题交互配置

php
InteractionHelper::fresnsHashtagInteraction($langTag);
Parameter NameTypeRequiredDescription
langTagStringoptionalIf empty, the default language is used.

获取帖子交互配置

php
InteractionHelper::fresnsPostInteraction($langTag);
Parameter NameTypeRequiredDescription
langTagStringoptionalIf empty, the default language is used.

获取评论交互配置

php
InteractionHelper::fresnsCommentInteraction($langTag);
Parameter NameTypeRequiredDescription
langTagStringoptionalIf empty, the default language is used.

获取匿名用户信息

php
InteractionHelper::fresnsUserAnonymousProfile();

Released under the Apache-2.0 License