service

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.1.0

type Config struct {
	MaxPageSize int `validate:"gt=0,lte=100"`
}

type Service

type Service struct {
	DB          *gorm.DB
	MaxPageSize int
}

func New

func New(db *gorm.DB, config *Config) *Service

func (*Service) FindRecordBy

func (s *Service) FindRecordBy(q *query.Record) []*model.Record

func (*Service) FindStationBy

func (s *Service) FindStationBy(q *query.Station) []*model.Station

Jump to

Keyboard shortcuts

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