model

package
v0.0.0-...-ec24a78 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Pay

type Pay struct {
	Id         int64     `db:"id"`
	Uid        int64     `db:"uid"`    // 用户ID
	Oid        int64     `db:"oid"`    // 订单ID
	Amount     int64     `db:"amount"` // 产品金额
	Source     int64     `db:"source"` // 支付方式
	Status     int64     `db:"status"` // 支付状态
	CreateTime time.Time `db:"create_time"`
	UpdateTime time.Time `db:"update_time"`
}

type PayModel

type PayModel interface {
	FindOneByOid(ctx context.Context, oid int64) (*Pay, error)
	// contains filtered or unexported methods
}

PayModel is an interface to be customized, add more methods here, and implement the added methods in customPayModel.

func NewPayModel

func NewPayModel(conn sqlx.SqlConn, c cache.CacheConf) PayModel

NewPayModel returns a model for the database table.

Jump to

Keyboard shortcuts

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