<?php
 namespace Module\Member\Web\Controller; use ModStart\Core\Input\Response; use ModStart\Module\ModuleBaseController; use Module\Member\Support\MemberLoginCheck; use Module\Member\Util\MemberVipUtil; class MemberVipController extends ModuleBaseController implements MemberLoginCheck { private $api; public function __construct() { $this->api = app(\Module\Member\Api\Controller\MemberVipController::class); } public function index() { return $this->view('memberVip.index', [ 'memberVips' => MemberVipUtil::all(), ]); } public function buy() { return Response::jsonFromGenerate($this->api->buy()); } public function calc() { return Response::jsonFromGenerate($this->api->calc()); } public function watchView($id) { return Response::jsonFromGenerate($this->api->watch($id)); } }