model

package
v0.0.0-...-6dfb00d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 上下文变量存储键名
	ContextKey = "ContextKey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Session *ghttp.Session // 当前Session管理对象
}

请求上下文结构

type Customer

type Customer struct {
	CustomersID               int            `db:"customers_id"`
	CustomerSeg               int            `db:"customer_seg"`
	IsGuest                   sql.NullInt64  `db:"is_guest"`
	CustomersGender           string         `db:"customers_gender"`
	CustomersFirstname        string         `db:"customers_firstname"`
	CustomersLastname         string         `db:"customers_lastname"`
	CustomersDob              time.Time      `db:"customers_dob"`
	CustomersEmailAddress     sql.NullString `db:"customers_email_address"`
	CustomersDefaultAddressID int            `db:"customers_default_address_id"`
	CustomersTelephone        string         `db:"customers_telephone"`
	CustomersFax              sql.NullString `db:"customers_fax"`
	CustomersPassword         string         `db:"customers_password"`
	CustomersNewsletter       sql.NullString `db:"customers_newsletter"`
	CustomersComment          sql.NullString `db:"customers_comment"`
	InternalID                sql.NullInt64  `db:"internalId"`
	ErpModified               sql.NullTime   `db:"erp_modified"`
	UniqueEmailID             sql.NullString `db:"unique_email_id"`
	Sns                       sql.NullInt64  `db:"sns"`
	DefaultDeliveryAddressID  sql.NullInt64  `db:"default_delivery_address_id"`
	EmailVerifiedAt           sql.NullTime   `db:"email_verified_at"`
}

type JcApiHSetValueReq

type JcApiHSetValueReq struct {
	Key   string      `json:"key" v:"required#Redis HSet Key can not be empty"`
	Field string      `json:"field" v:"required#Redis HSet Field can not be empty"`
	Data  interface{} `json:"data" v:""`
}

type JcApiInfoFieldReq

type JcApiInfoFieldReq struct {
	Field string `json:"field" v:""`
}

type JcApiKeyValuePairReq

type JcApiKeyValuePairReq struct {
	Key  string      `json:"key" v:"required#Redis Set Key can not be empty"`
	Data interface{} `json:"data" v:""`
}

type JcApiOnlyKeyFieldReq

type JcApiOnlyKeyFieldReq struct {
	Key   string `json:"key" v:"required#Redis Key can not be empty"`
	Field string `json:"field" v:""`
}

Jump to

Keyboard shortcuts

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