resAllocDM

package
v0.0.0-...-cee649a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResAllocDM

type ResAllocDM interface {
	ResAllocReadOnlyDM
	Insert(record resAlloc.Record) (err error)
}

type ResAllocDirectDB

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

func NewResAllocDirectDB

func NewResAllocDirectDB(radb resAllocDB.ResAllocDB) ResAllocDirectDB

func (ResAllocDirectDB) Insert

func (rad ResAllocDirectDB) Insert(ra resAlloc.Record) (err error)

func (ResAllocDirectDB) QueryAll

func (rad ResAllocDirectDB) QueryAll() ([]resAlloc.Record, error)

func (ResAllocDirectDB) QueryByID

func (rad ResAllocDirectDB) QueryByID(recordID int) (rar resAlloc.Record, err error)

func (ResAllocDirectDB) QueryByProjectID

func (rad ResAllocDirectDB) QueryByProjectID(projectID int) ([]resAlloc.Record, error)

type ResAllocReadOnlyDM

type ResAllocReadOnlyDM interface {
	QueryByID(recordID int) (rar resAlloc.Record, err error)
	QueryByProjectID(projectID int) ([]resAlloc.Record, error)
	QueryAll() ([]resAlloc.Record, error)
}

Jump to

Keyboard shortcuts

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