feat(editor): update

This commit is contained in:
2025-12-31 14:50:18 +08:00
parent 20e1a2fa19
commit 984770c6a1
14 changed files with 303 additions and 117 deletions

View File

@@ -37,7 +37,7 @@ func (c *Common) Upload(
if typeArg != nil {
val = *typeArg
}
return services.Common.Upload(ctx.Context(), user.ID, file, val)
return services.Common.Upload(ctx, user.ID, file, val)
}
// Get options (enums)
@@ -50,5 +50,5 @@ func (c *Common) Upload(
// @Produce json
// @Success 200 {object} dto.OptionsResponse
func (c *Common) GetOptions(ctx fiber.Ctx) (*dto.OptionsResponse, error) {
return services.Common.Options(ctx.Context())
return services.Common.Options(ctx)
}