postwriteservice

package
v0.2.79 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPostNotFound      = errors.New("post not found")
	ErrTopicUnavailable  = errors.New("topic unavailable")
	ErrParentPostMissing = errors.New("parent post missing")
	ErrOwnerMismatch     = errors.New("post owner mismatch")
)

Functions

func Create

func Create(input CreateInput) (posts.Entity, error)

func Update

func Update(input UpdateInput) (posts.Entity, error)

Types

type CreateInput

type CreateInput struct {
	UserID        uint64
	TopicID       uint64
	Content       string
	ReplyToPostID uint64
}

type UpdateInput

type UpdateInput struct {
	UserID  uint64
	PostID  uint64
	Content string
}

Jump to

Keyboard shortcuts

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