package service

import (
	"git.gocasts.ir/ebhomengo/niki/types"
	"time"
)

type GetCampaignResponse struct {
	ID types.ID `json:"user_id"`
}

type AddCampaignRequest struct {
	Title       string     `json:"title"`
	Description string     `json:"description"`
	GoalAmount  float64    `json:"goal_amount"`
	DeadlineAt  *time.Time `json:"deadline_at,omitempty"`
	AdminID     types.ID   `json:"admin_id"`
}

type UpdateCampaignRequest struct {
	Title       *string    `json:"title,omitempty"`
	Description *string    `json:"description,omitempty"`
	GoalAmount  *float64   `json:"goal_amount,omitempty"`
	DeadlineAt  *time.Time `json:"deadline_at,omitempty"`
	Status      *string    `json:"status,omitempty"` // draft/active/completed/paused/cancelled
}
