2025-06-25 16:12:51 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
2025-06-26 15:41:29 +08:00
|
|
|
use App\Services\GatewayWorker\UserService;
|
2025-06-25 16:12:51 +08:00
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
|
|
class UserController extends Controller
|
|
|
|
|
{
|
|
|
|
|
//
|
2025-06-26 15:41:29 +08:00
|
|
|
/**
|
|
|
|
|
* 获取用户列表
|
|
|
|
|
* @Method GET
|
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
|
*/
|
|
|
|
|
public function userList()
|
|
|
|
|
{
|
|
|
|
|
try {
|
|
|
|
|
return jok(
|
|
|
|
|
(new UserService())->userList()
|
|
|
|
|
);
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return jerr($e->getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-25 16:12:51 +08:00
|
|
|
}
|