usecase

package
v0.0.0-...-b03bd75 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interactor

type Interactor interface {
	// contains filtered or unexported methods
}

Interactor interface

type InteractorConstructor

type InteractorConstructor struct {
	MenfessRepo MenfessRepo
}

InteractorConstructor constructor

func (InteractorConstructor) New

New Construct Interactor

type MenfessRepo

type MenfessRepo interface {
	NewID() string
	GetPostByID(id string) entity.MenfessPost
	GetPostListByParentID(parentID string, first int, after string, ascSort bool) []entity.MenfessPost
	GetPostListByRoomIDs(roomIDs []string, first int, after string, ascSort bool) []entity.MenfessPost
	PutPost(name string, avatar string, body string, parentID string, repostID string, roomID string) entity.MenfessPost
	UpdateUpvoterIDs(postID string, accountID string, exist bool)
	UpdateDownvoterIDs(postID string, accountID string, exist bool)
	GetRoomList() []entity.MenfessRoom
	GetRoom(id string) entity.MenfessRoom
}

MenfessRepo interface

Jump to

Keyboard shortcuts

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