27 lines
502 B
PHP
27 lines
502 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\GatewayWorker\UserService;
|
|
use Illuminate\Http\Request;
|
|
|
|
class UserController extends Controller
|
|
{
|
|
//
|
|
/**
|
|
* 获取用户列表
|
|
* @Method GET
|
|
* @return \Illuminate\Http\JsonResponse
|
|
*/
|
|
public function userList()
|
|
{
|
|
try {
|
|
return jok(
|
|
(new UserService())->userList()
|
|
);
|
|
} catch (\Exception $e) {
|
|
return jerr($e->getMessage());
|
|
}
|
|
}
|
|
}
|