| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- namespace App\Http\Controllers;
- require_once __DIR__.'/../../../public/app/ucenter/function.php';
- use App\Models\Channel;
- use Illuminate\Http\Request;
- class ChannelController extends Controller
- {
- /**
- * Display a listing of the resource.
- *
- * @return \Illuminate\Http\Response
- */
- public function index()
- {
- //
- }
- /**
- * Store a newly created resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Illuminate\Http\Response
- */
- public function store(Request $request)
- {
- //
- }
- /**
- * Display the specified resource.
- *
- * @param int $id
- * @return \Illuminate\Http\Response
- */
- public function show($id)
- {
- //
- $channel = Channel::where("uid",$id)->select(['name','owner_uid'])->first();
- $userinfo = new \UserInfo();
- $channel->owner_info = $userinfo->getName($channel->owner_uid);
- return $this->ok($channel);
- }
- /**
- * Update the specified resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @param \App\Models\Channel $channel
- * @return \Illuminate\Http\Response
- */
- public function update(Request $request, Channel $channel)
- {
- //
- }
- /**
- * Remove the specified resource from storage.
- *
- * @param \App\Models\Channel $channel
- * @return \Illuminate\Http\Response
- */
- public function destroy(Channel $channel)
- {
- //
- }
- }
|