poem

package
v0.0.0-...-2eb6bad Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePoemArgs

type CreatePoemArgs struct {
	repo.CreatePoemArgs
}

type GetPoemResp

type GetPoemResp struct {
	Title     string      `json:"title"`
	Dynasty   string      `json:"dynasty"`
	Author    string      `json:"author"`
	Content   string      `json:"content"`
	Translate interface{} `json:"translate"`
}

type Poem

type Poem struct {
	repo.Poem
}

type Service

type Service interface {
	GetRandomPoem(ctx context.Context) (*GetPoemResp, error)
	CreatePoem(ctx context.Context, args *CreatePoemArgs) (*Poem, error)
}

func NewService

func NewService(conf *conf.AppConf) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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