1
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user