экраны закупов и креативов

This commit is contained in:
Artem Tsyrulnikov
2025-12-30 22:21:57 +03:00
parent 2fb8c83041
commit c05ac84b38
16 changed files with 1962 additions and 493 deletions

View File

@@ -617,12 +617,19 @@ func (c *Client) DeletePlacement(
// Purchase Plan
// ============================================================================
type Channel struct {
ID string `json:"id"`
TelegramID *int64 `json:"telegram_id"`
Title *string `json:"title"`
Username *string `json:"username"`
}
type PurchasePlanChannel struct {
ID string `json:"id"`
ChannelID string `json:"channel_id"`
Status string `json:"status"`
PlannedCost *int `json:"planned_cost"`
Comment *string `json:"comment"`
ID string `json:"id"`
Channel Channel `json:"channel"`
Status string `json:"status"`
PlannedCost *float64 `json:"planned_cost"`
Comment *string `json:"comment"`
}
func (c *Client) GetPurchasePlanChannels(
@@ -650,10 +657,10 @@ func (c *Client) GetPurchasePlanChannels(
}
type AttachChannelToPurchasePlanInput struct {
ChannelID string `json:"channel_id"`
Status *string `json:"status,omitempty"`
PlannedCost *int `json:"planned_cost,omitempty"`
Comment *string `json:"comment,omitempty"`
Username string `json:"username"`
Status *string `json:"status,omitempty"`
PlannedCost *float64 `json:"planned_cost,omitempty"`
Comment *string `json:"comment,omitempty"`
}
func (c *Client) AttachChannelToPurchasePlan(
@@ -679,9 +686,9 @@ func (c *Client) AttachChannelToPurchasePlan(
}
type UpdatePurchasePlanChannelInput struct {
Status *string `json:"status,omitempty"`
PlannedCost *int `json:"planned_cost,omitempty"`
Comment *string `json:"comment,omitempty"`
Status *string `json:"status,omitempty"`
PlannedCost *float64 `json:"planned_cost,omitempty"`
Comment *string `json:"comment,omitempty"`
}
func (c *Client) UpdatePurchasePlanChannel(