simple

package
v0.0.0-...-a5e1bbd Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFirstDateOfWeek

func GetFirstDateOfWeek() (weekMonday time.Time)

* 获取本周周一的日期

func GetLastWeekFirstDate

func GetLastWeekFirstDate() (weekMonday time.Time)

* 获取上周的周一日期

Types

type Simple

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

func NewSimple

func NewSimple(conf *conf.PgSQLConfig) (*Simple, error)

func (*Simple) DB

func (s *Simple) DB() *gorm.DB

func (*Simple) DeleteGood

func (s *Simple) DeleteGood(goodID string, account string) (err error)

func (*Simple) GetUserCenter

func (s *Simple) GetUserCenter(account string) (*models.UserCenter, error)

func (*Simple) Good

func (s *Simple) Good(barcodes string, account string) (*models.TemporaryGoodsInventories, error)

func (*Simple) Goods

func (s *Simple) Goods()

func (*Simple) IOHistory

func (s *Simple) IOHistory(goodsID string, account string) (resp []models.InventoryHistoryDetailed, err error)

func (*Simple) IOList

func (s *Simple) IOList(account string, limit int, offset int) (count int64, ids []models.InventoryHistoryDetailed, err error)

func (*Simple) IORevoke

func (s *Simple) IORevoke(orderID string, account string) (result []models.InventoryHistoryDetailed, err error)

func (*Simple) OutStock

func (s *Simple) OutStock(goodsId string, barcode string, account string, cost float64, numberProducts int, price float64, remark string) (err error)

func (*Simple) ResetStatistics

func (s *Simple) ResetStatistics() (err error)

func (*Simple) Search

func (s *Simple) Search(keyword string, account string) ([]models.TemporaryGoodsInventories, error)

func (*Simple) Statistics

func (s *Simple) Statistics(account string) (scs []models.StatisticsBand, err error)

func (*Simple) WareHousing

func (s *Simple) WareHousing(goodsId string, barcode string, account string, cost float64, numberProducts int, remark string) (err error)

Jump to

Keyboard shortcuts

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