mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-28 13:21:37 +08:00
LiveChapter -> LiveChat
This commit is contained in:
parent
a56a891883
commit
41ffefcd48
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Api\Controllers;
|
namespace App\Http\Api\Controllers;
|
||||||
|
|
||||||
use App\Services\Logic\Live\LiveChapter as LiveChapterService;
|
use App\Services\Logic\Live\LiveChat as LiveChatService;
|
||||||
use App\Services\Logic\Live\LiveList as LiveListService;
|
use App\Services\Logic\Live\LiveList as LiveListService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,7 +33,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function chatsAction($id)
|
public function chatsAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$chats = $service->getRecentChats($id);
|
$chats = $service->getRecentChats($id);
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function statsAction($id)
|
public function statsAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$stats = $service->getStats($id);
|
$stats = $service->getStats($id);
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function statusAction($id)
|
public function statusAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$status = $service->getStatus($id);
|
$status = $service->getStatus($id);
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function bindUserAction($id)
|
public function bindUserAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$service->bindUser($id);
|
$service->bindUser($id);
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function sendMessageAction($id)
|
public function sendMessageAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$message = $service->sendMessage($id);
|
$message = $service->sendMessage($id);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Home\Controllers;
|
namespace App\Http\Home\Controllers;
|
||||||
|
|
||||||
use App\Services\Logic\Live\LiveChapter as LiveChapterService;
|
use App\Services\Logic\Live\LiveChat as LiveChatService;
|
||||||
use Phalcon\Mvc\View;
|
use Phalcon\Mvc\View;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -21,7 +21,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function chatsAction($id)
|
public function chatsAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$chats = $service->getRecentChats($id);
|
$chats = $service->getRecentChats($id);
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function statsAction($id)
|
public function statsAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$stats = $service->getStats($id);
|
$stats = $service->getStats($id);
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function statusAction($id)
|
public function statusAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$status = $service->getStatus($id);
|
$status = $service->getStatus($id);
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function bindUserAction($id)
|
public function bindUserAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$service->bindUser($id);
|
$service->bindUser($id);
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ class LiveController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function sendMessageAction($id)
|
public function sendMessageAction($id)
|
||||||
{
|
{
|
||||||
$service = new LiveChapterService();
|
$service = new LiveChatService();
|
||||||
|
|
||||||
$response = $service->sendMessage($id);
|
$response = $service->sendMessage($id);
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ use App\Services\Logic\Service as LogicService;
|
|||||||
use App\Validators\Live as LiveValidator;
|
use App\Validators\Live as LiveValidator;
|
||||||
use GatewayClient\Gateway;
|
use GatewayClient\Gateway;
|
||||||
|
|
||||||
class LiveChapter extends LogicService
|
class LiveChat extends LogicService
|
||||||
{
|
{
|
||||||
|
|
||||||
use ChapterTrait;
|
use ChapterTrait;
|
Loading…
x
Reference in New Issue
Block a user