feat: align ids to int64

This commit is contained in:
2026-01-08 09:57:04 +08:00
parent a1de16bc01
commit d98f41f1ac
39 changed files with 298 additions and 339 deletions

View File

@@ -125,17 +125,17 @@ func (c *Common) AbortUpload(ctx fiber.Ctx, user *models.User, uploadId string)
return services.Common.AbortUpload(ctx.Context(), user.ID, uploadId)
}
// @Router /v1/media-assets/:id [delete]
// @Router /v1/media-assets/:id<int> [delete]
// @Summary Delete media asset
// @Description Delete media asset
// @Tags Common
// @Accept json
// @Produce json
// @Param id path string true "Asset ID"
// @Param id path int64 true "Asset ID"
// @Success 200 {string} string "OK"
// @Bind user local key(__ctx_user)
// @Bind id path
func (c *Common) DeleteMediaAsset(ctx fiber.Ctx, user *models.User, id string) error {
func (c *Common) DeleteMediaAsset(ctx fiber.Ctx, user *models.User, id int64) error {
return services.Common.DeleteMediaAsset(ctx.Context(), user.ID, id)
}