entity

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company struct {
	ID     string `gorm:"id" json:"id"`         // id
	Code   string `gorm:"code" json:"code"`     // 编码
	Market string `gorm:"market" json:"market"` // 市场
	Name   string `gorm:"name" json:"name"`     // 名称
}

companies

func (Company) TableName

func (Company) TableName() string

TableName table name

type CompanyQueryCondition

type CompanyQueryCondition struct {
	ID      *string   // id
	IDs     *[]string // ids
	Code    *string   // 编码
	Market  *string   // 市场
	Name    *string   // 名称
	OrderBy string
	*dbo.Pager
}

func (CompanyQueryCondition) GetConditions

func (c CompanyQueryCondition) GetConditions() ([]string, []any)

func (CompanyQueryCondition) GetOrderBy

func (c CompanyQueryCondition) GetOrderBy() string

func (CompanyQueryCondition) GetPager

func (c CompanyQueryCondition) GetPager() *dbo.Pager

type Kv

type Kv struct {
	Code  string  `gorm:"code" json:"code"`   // 市场
	Date  string  `gorm:"date" json:"date"`   // 时间YYYYMMDD
	Key   string  `gorm:"key" json:"key"`     // 属性
	Value float64 `gorm:"value" json:"value"` // 值
}

func (Kv) TableName

func (Kv) TableName() string

TableName table name

type KvQueryCondition

type KvQueryCondition struct {
	Code    *string  // 市场
	Date    *string  // 时间YYYYMMDD
	Key     *string  // 属性
	Value   *float64 // 值
	OrderBy string
	*dbo.Pager
}

func (KvQueryCondition) GetConditions

func (c KvQueryCondition) GetConditions() ([]string, []any)

func (KvQueryCondition) GetOrderBy

func (c KvQueryCondition) GetOrderBy() string

func (KvQueryCondition) GetPager

func (c KvQueryCondition) GetPager() *dbo.Pager

type Market

type Market struct {
	Market string `gorm:"market" json:"market"` // 编码
	Name   string `gorm:"name" json:"name"`     // 名称
}

markets

func (Market) TableName

func (Market) TableName() string

TableName table name

type MarketQueryCondition

type MarketQueryCondition struct {
	Market  *string // 编码
	Name    *string // 名称
	OrderBy string
	*dbo.Pager
}

func (MarketQueryCondition) GetConditions

func (c MarketQueryCondition) GetConditions() ([]string, []any)

func (MarketQueryCondition) GetOrderBy

func (c MarketQueryCondition) GetOrderBy() string

func (MarketQueryCondition) GetPager

func (c MarketQueryCondition) GetPager() *dbo.Pager

Jump to

Keyboard shortcuts

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