Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct {
ID uuid.UUID `bun:"type:uuid,default:uuid_generate_v4()"`
TopicID uuid.UUID `bun:"type:uuid"`
Topic Topic `bun:"rel:belongs-to,join:topic_id=id"`
Name string
Slug string
AuthorID uuid.UUID `bun:"type:uuid"`
Author user.User `bun:"rel:belongs-to,join:author_id=id"`
Content string
CreatedAt time.Time
UpdatedAt time.Time
}
type Repository ¶
type Service ¶
func ProvideService ¶
func ProvideService(repository Repository) Service
Click to show internal directories.
Click to hide internal directories.