data

package
v0.0.0-...-acbaf2f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT, MIT Imports: 10 Imported by: 0

README

Data

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is data providers.

Functions

func BeginTx

func BeginTx(db *sql.DB) *sql.Tx

开启mysql事务

func NewGoodsRepo

func NewGoodsRepo(data *Data, logger log.Logger) biz.GoodsRepo

func NewOrdersRepo

func NewOrdersRepo(data *Data, logger log.Logger) biz.OrdersRepo

Types

type Data

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

Data .

func NewData

func NewData(conf *conf.Data, logger log.Logger) (*Data, func(), error)

NewData .

type TransReq

type TransReq struct {
	Sn string `json:"sn"`
}

type TransReq1

type TransReq1 struct {
	Gid    int64 `json:"gid"`
	Amount int64 `json:"amount"`
}

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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