新功能(#26): 拆分退款日志查询接口

拆分用户中心退款日志查询:

- 新增 GET /v1/public/user/commission_return_log(333/337/338)
- 旧 GET /v1/public/user/withdrawal_log?biz_type=commission_refund 复用新逻辑做兼容
- 默认 withdrawal_log 行为不变(仍查 withdrawals 表)
- 单测覆盖 333/337/338 happy path、坏 JSON 跳过、object_id 隔离、handler 级 HTTP 响应

父 issue: HIF-25
子 issue: HIF-26
This commit is contained in:
2026-06-11 22:02:22 -07:00
committed by GitHub
parent 3e6318dcdf
commit f11097ab83
9 changed files with 494 additions and 70 deletions
@@ -8,7 +8,7 @@ import (
"github.com/perfect-panel/server/pkg/result"
)
// Query Withdrawal Log
// Query Withdrawal Log (biz_type=commission_refund deprecated, use /commission_return_log)
func QueryWithdrawalLogHandler(svcCtx *svc.ServiceContext) func(c *gin.Context) {
return func(c *gin.Context) {
var req types.QueryWithdrawalLogListRequest