scheme

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Count

func Count(db *gorm.DB) int64

func GetAMCs

func GetAMCs(db *gorm.DB) []string

func GetNAVNames

func GetNAVNames(db *gorm.DB, amc string) []string

func UpsertAll

func UpsertAll(db *gorm.DB, schemes []*Scheme)

Types

type Scheme

type Scheme struct {
	ID       uint `gorm:"primaryKey" json:"id"`
	AMC      string
	Code     string
	Name     string
	Type     string
	Category string
	NAVName  string
}

func FindScheme

func FindScheme(db *gorm.DB, amc string, NAVName string) Scheme

Jump to

Keyboard shortcuts

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