feat: align ids to int64
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user