Files
online-backend/internal/cards/reasonscard/dto.go
GuwandykA d1a6fcaadc
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
ch some
2026-09-04 19:33:26 +05:00

43 lines
1.1 KiB
Go

package reasonscard
import (
"time"
"online-back/internal/shared"
)
type ReasonCardDTO struct {
Id int64 `json:"id"`
Title shared.LocalizedText `json:"title"`
Price string `json:"price"`
Notes string `json:"notes"`
Active bool `json:"active"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type CreateReasonCardDTO struct {
Title shared.LocalizedText `json:"title" binding:"required"`
Price string `json:"price" binding:"required"`
Notes string `json:"notes"`
Active *bool `json:"active"`
}
type UpdateReasonCardDTO struct {
Title shared.LocalizedText `json:"title" binding:"required"`
Price string `json:"price" binding:"required"`
Notes string `json:"notes"`
Active bool `json:"active"`
}
type ListFilter struct {
ReasonName string
Page int
Limit int
}
type ListReasonCardDTO struct {
Count int64 `json:"count"`
ReasonCards []ReasonCardDTO `json:"reasonCards"`
}