supplier

package
v0.0.0-...-10680b3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContact

func CreateContact(ctx context.Context, db *gorm.DB, s entity.Contact) (int64, error)

func CreateRelation

func CreateRelation(ctx context.Context, s entity.Relation, db *gorm.DB) (int64, error)

func CreateSupplier

func CreateSupplier(ctx context.Context, db *gorm.DB, s entity.Supplier) (int64, error)

func DeleteEntityByID

func DeleteEntityByID(ctx context.Context, tx *gorm.DB, entity interface{}, id int64) error

func GetContractByID

func GetContractByID(ctx context.Context, db *gorm.DB, id int64) (entity.Contact, error)

func GetContractsByName

func GetContractsByName(ctx context.Context, db *gorm.DB, name string) ([]entity.Contact, error)

func GetRelationByID

func GetRelationByID(ctx context.Context, db *gorm.DB, id int64) (entity.Relation, error)

func GetSupplierByID

func GetSupplierByID(ctx context.Context, db *gorm.DB, id int64) (entity.Supplier, error)

func GetSupplierByPage

func GetSupplierByPage(ctx context.Context, db *gorm.DB, page, pageSize int) ([]entity.Supplier, error)

func GetSuppliersByName

func GetSuppliersByName(ctx context.Context, db *gorm.DB, name string) ([]entity.Supplier, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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