1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace App\Http\Controllers\Client;
- use App\Http\Controllers\Controller;
- use App\Services\Client\WalletService;
- /**
- * @group 用户端-钱包管理
- *
- * 钱包相关的API接口
- */
- class WalletController extends Controller
- {
- protected WalletService $service;
- public function __construct(WalletService $service)
- {
- $this->service = $service;
- }
- /**
- * 获取钱包明细
- *
- * 获取钱包明细
- *
- * @authenticated
- *
- * @response {
- * "code": 200,
- * "message": "获取成功",
- * "data": {
- * "records": []
- * }
- * }
- */
- public function records()
- {
- return $this->service->getWalletRecords();
- }
- }
|