member

package
v0.0.0-...-4606e03 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(route *gin.Engine, s Service, as auth.Service)

Routes in the domain route

Types

type Member

type Member struct {
	ID int64 `json:"id"`
}

Member model

type Repository

type Repository interface {
}

Repository is the domain storage

type Service

type Service interface {
	FindAllMember() (*Member, error)
	FindMember(id string) (*Member, error)
}

Service is the domain service

func NewService

func NewService(repo Repository) (Service, error)

NewService creates new domain service

Jump to

Keyboard shortcuts

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