api

package
v0.0.0-...-422268b Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(ac appctx.AppContext, business Business) *service

Types

type Business

type Business interface {
	Register(ctx context.Context, data *entity.UserCreate) error
	Login(ctx context.Context, data *entity.UserLogin) (*common.Token, error)
	GetProfile(ctx context.Context) (*entity.User, error)
}

Jump to

Keyboard shortcuts

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