Files
sendico/api/pkg/model/archivable.go
Stephan D 62a6631b9a
All checks were successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
service backend
2025-11-07 18:35:26 +01:00

19 lines
324 B
Go

package model
type Archivable interface {
IsArchived() bool
SetArchived(archived bool)
}
type ArchivableBase struct {
Archived bool `bson:"isArchived" json:"isArchived"`
}
func (a *ArchivableBase) IsArchived() bool {
return a.Archived
}
func (a *ArchivableBase) SetArchived(archived bool) {
a.Archived = archived
}