gormer

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Code generated by gormer. DO NOT EDIT.

Index

Constants

View Source
const OrderTableName = "orders"

Table Level Info

Variables

View Source
var OrderFieldAll = []OrderField{"id", "name", "price", "create_time", "update_time", "delete_status"}

Functions

This section is empty.

Types

type Order

type Order struct {
	Id           int64     `gorm:"column:id"`            // 主键
	Name         string    `gorm:"column:name"`          // 名称,建议唯一
	Price        float64   `gorm:"column:price"`         // 订单价格
	CreateTime   time.Time `gorm:"column:create_time"`   // 创建时间
	UpdateTime   time.Time `gorm:"column:update_time"`   // 更新时间
	DeleteStatus int       `gorm:"column:delete_status"` // 删除状态,1表示软删除
}

Kernel struct for table for one row

type OrderField

type OrderField string

Field Level Info

const (
	OrderFieldId           OrderField = "id"
	OrderFieldName         OrderField = "name"
	OrderFieldPrice        OrderField = "price"
	OrderFieldCreateTime   OrderField = "create_time"
	OrderFieldUpdateTime   OrderField = "update_time"
	OrderFieldDeleteStatus OrderField = "delete_status"
)

type OrderOptions

type OrderOptions struct {
	Order  *Order
	Fields []string
}

Kernel struct for table operation

func NewOrderOptions

func NewOrderOptions(target *Order, fields ...OrderField) *OrderOptions

func NewOrderOptionsAll

func NewOrderOptionsAll(target *Order) *OrderOptions

func NewOrderOptionsRawString

func NewOrderOptionsRawString(target *Order, fields ...string) *OrderOptions

Jump to

Keyboard shortcuts

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