domain

package
v0.0.0-...-c4e7f1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostStatus_Active int8 = iota
	PostStatus_Passive
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	ID         primitive.ObjectID `bson:"_id"`
	Content    string
	CreatedAt  time.Time
	DeletedAt  time.Time
	Properties map[string]interface{}
	Status     int8
}

type PostRepository

type PostRepository interface {
	GetAll() []Post
	GetById(id string) (*Post, error)
	Insert(Post) error
	Delete(Post) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL