SquidSpirit a4394eea9e
All checks were successful
Frontend CI / build (push) Successful in 1m56s
BLOG-43 feat: get all posts
2025-03-28 00:02:34 +08:00

24 lines
389 B
Go

package dbdto
import (
"time"
"git.squidspirit.com/squid/blog.git/backend/internal/domain"
)
type Label struct {
ID uint32 `json:"id"`
Name string `json:"name"`
Color string `json:"color"`
CreatedTime time.Time
UpdatedTime time.Time
}
func (l *Label) ToEntity() *domain.Label {
return &domain.Label{
ID: l.ID,
Name: l.Name,
Color: l.Color,
}
}