refactor: 移除不必要的上下文调用,简化服务方法参数
This commit is contained in:
@@ -30,5 +30,5 @@ func (c *Common) Upload(ctx fiber.Ctx, file *multipart.FileHeader, typeArg *stri
|
||||
if typeArg != nil {
|
||||
val = *typeArg
|
||||
}
|
||||
return services.Common.Upload(ctx.Context(), file, val)
|
||||
return services.Common.Upload(ctx, file, val)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user