# wallet-homework **Repository Path**: gxk1111/wallet-homework ## Basic Information - **Project Name**: wallet-homework - **Description**: 钱包-面试作业 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-26 - **Last Updated**: 2023-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wallet-homework #### 介绍 钱包-面试作业 1. 查询用户钱包余额 /wallet/getByUserId/123 2. 用户消费100元的接口 /wallet/consume 3. 用户退款20元接口 /wallet/refund 4. 查询用户钱包金额变动明细的接口 /walletLog/page?userId=123 redis lua脚本进行消费和退款,利用消费和退款的日志,通过定时任务同步更新到余额。