service

package
v0.0.0-...-61dbfe3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Voucher

type Voucher struct {
	VoucherId     int
	VoucherName   string
	VoucherAmount float32
	VoucherType   int
	VoucherStatus int
	StockCount    int
	TotalCount    int
	StartPeriod   time.Time
	EndPeriod     time.Time

	PageNum  int
	PageSize int
}

func (*Voucher) Add

func (v *Voucher) Add() error

func (*Voucher) Delete

func (v *Voucher) Delete() error

func (*Voucher) Edit

func (v *Voucher) Edit() error

func (*Voucher) ExistById

func (v *Voucher) ExistById() (bool, error)

func (*Voucher) Get

func (v *Voucher) Get() (*model.Voucher, error)

func (*Voucher) GetAll

func (v *Voucher) GetAll() ([]*model.Voucher, error)

Jump to

Keyboard shortcuts

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