performance_session

package
v0.0.0-...-861475b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type PerformanceSession

type PerformanceSession struct {
	Id            int64          `db:"id"`             // ID
	PerformanceId int64          `db:"performance_id"` // 关联的演出活动ID
	Tickets       sql.NullString `db:"tickets"`        // 规格票数,格式为:[{"seat": "vip","price": 2023,"quantity": 2000}]。seat: 席位、price: 票价、quantity: 数量。
	ShowAt        int64          `db:"show_at"`        // 演出时间
	CreatedAt     time.Time      `db:"created_at"`     // 创建时间
	UpdatedAt     time.Time      `db:"updated_at"`     // 更新时间
	IsDel         int64          `db:"is_del"`         // 是否删除: 0=未指定、1=是、2=否: 默认=2
}

type PerformanceSessionModel

type PerformanceSessionModel interface {
	// contains filtered or unexported methods
}

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

func NewPerformanceSessionModel

func NewPerformanceSessionModel(conn sqlx.SqlConn) PerformanceSessionModel

NewPerformanceSessionModel 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