repositories

package
v0.0.0-...-3754bd3 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.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 Catcher

type Catcher struct {
	ID                 int
	LicensePlateNumber string
	UserID             string
	UserName           string
	SelfIntro          string
	HauntedPlaces      string
	CoverURL           string
	GroupID            string
	GroupName          string
}

type CatchersRepository

type CatchersRepository interface {
	Create(catcher Catcher) (int, error)
	SearchByLicensePlateNumber(groupID, licensePlateNumber string) ([]Catcher, error)
	IncreaseWildCatcher(licensePlateNumber string) (int, error)
}

func NewCatcherRepository

func NewCatcherRepository() CatchersRepository

type WildCatcher

type WildCatcher struct {
	ID                 int
	LicensePlateNumber string
	Count              int
}

Jump to

Keyboard shortcuts

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