service

package
v0.0.0-...-4e04f0c Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityService

type SecurityService struct{}

func NewSecurityService

func NewSecurityService() *SecurityService

func (*SecurityService) Check

func (s *SecurityService) Check(text, hash string) bool

func (*SecurityService) Hash

func (s *SecurityService) Hash(str string) (string, error)

type UserService

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

func NewUserService

func NewUserService() *UserService

func (*UserService) Create

func (u *UserService) Create(req *http.Request) (int64, error)

func (*UserService) Get

func (u *UserService) Get(id int64) (model.User, error)

func (*UserService) List

func (u *UserService) List(offset int64, limit int64, args ...any) ([]model.User, error)

Jump to

Keyboard shortcuts

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