<?php

namespace App\Http\Controllers\Client;

use App\Http\Controllers\Controller;
use App\Services\Client\WalletService;

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();
    }
}
