service

package
v0.0.0-...-fa2ffe9 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishPost

func PublishPost(topicId, userId int64, content string) (int64, error)

Types

type PageInfo

type PageInfo struct {
	TopicInfo *TopicInfo
	PostList  []*PostInfo
}

func QueryPageInfo

func QueryPageInfo(topicId int64) (*PageInfo, error)

type PostInfo

type PostInfo struct {
	Post *repository.Post
	User *repository.User
}

type PublishPostFlow

type PublishPostFlow struct {
	// contains filtered or unexported fields
}

func NewPublishPostFlow

func NewPublishPostFlow(topicId, userId int64, content string) *PublishPostFlow

func (*PublishPostFlow) Do

func (f *PublishPostFlow) Do() (int64, error)

type QueryPageInfoFlow

type QueryPageInfoFlow struct {
	// contains filtered or unexported fields
}

func NewQueryPageInfoFlow

func NewQueryPageInfoFlow(topId int64) *QueryPageInfoFlow

func (*QueryPageInfoFlow) Do

func (f *QueryPageInfoFlow) Do() (*PageInfo, error)

type TopicInfo

type TopicInfo struct {
	Topic *repository.Topic
	User  *repository.User
}

Jump to

Keyboard shortcuts

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