service

package
v0.0.0-...-742107e Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category interface {
	Create(ctx context.Context, dto *dto.Category) object.Status
	Delete(ctx context.Context, id int) object.Status
	GetList(ctx context.Context, m model.Models) (interface{}, object.Status)
	GetFor(ctx context.Context, pc model.PostOrComment) object.Status
	GetForChan(ctx context.Context, pc model.PostOrComment, channel chan object.Status)
}

type Comment

type Comment interface {
	Create(ctx context.Context, dto *dto.Comment) (int, object.Status)
	Delete(ctx context.Context, id int) object.Status
	Get(ctx context.Context, m model.Models) (interface{}, object.Status)
	GetChan(ctx context.Context, m model.Models) (interface{}, object.Status)
}

type FileMaker

type FileMaker interface {
	CreateFile(ctx context.Context, d *dto.FileMaker) object.Status
}

type Middleware

type Middleware interface {
	CreateSession(ctx context.Context, dto *dto.Session) (int, object.Status)
	CheckSession(ctx context.Context, dto *dto.Session) (interface{}, object.Status)
	GetID(ctx context.Context, d *dto.CheckID) (int, object.Status)
}

type Post

type Post interface {
	Create(ctx context.Context, dto *dto.Post) (int, object.Status)
	Get(ctx context.Context, m model.Models) (interface{}, object.Status)
	GetChan(ctx context.Context, m model.Models) (interface{}, object.Status)
}

type Ratio

type Ratio interface {
	Create(ctx context.Context, d *dto.Ratio) (int, object.Status)
	CountFor(ctx context.Context, pc model.PostOrComment) object.Status
	Liked(ctx context.Context, pc model.PostOrComment) object.Status
	CountForChan(ctx context.Context, pc model.PostOrComment, channel chan object.Status)
	LikedChan(ctx context.Context, pc model.PostOrComment, channel chan object.Status)
}

type User

type User interface {
	Create(ctx context.Context, dto *dto.User) (int, object.Status)
	CheckLoginPassword(ctx context.Context, dto *dto.User) (int, object.Status)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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