This commit is contained in:
2026-07-24 13:05:57 +08:00
parent fc1e880fcc
commit 23c8a4c1ba
77 changed files with 1987 additions and 1408 deletions
@@ -3,8 +3,8 @@ package controller
import (
"context"
"fmt"
"video-factory/common"
"video-factory/shortdrama/middleware"
"video-factory/shortdrama/model/dto"
"video-factory/shortdrama/service"
@@ -19,7 +19,7 @@ func (c *transaction) List(ctx context.Context, req *dto.ListTransactionReq) (re
r := g.RequestFromCtx(ctx)
userId := req.UserId
if userId == 0 {
userId = middleware.GetUserId(r)
userId = common.GetUserId(r)
}
list, total, err := service.TransactionService.ListByUser(ctx, userId, req.Type, req.Page, req.PageSize)
if err != nil {