k

package
v0.0.0-...-3851a7b Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Day   = "day"
	Week  = "week"
	Red   = "红"
	Green = "绿"
	Flat  = "平"
)
View Source
const (
	FieldCode            = "code"
	FieldP               = "p"
	FieldC               = "c"
	FieldS               = "s"
	FieldU               = "u"
	FieldE               = "e"
	FieldD               = "d"
	FieldDate            = "date"
	FieldCreateTimestamp = "create_timestamp"
	FieldModifyTimestamp = "modify_timestamp"
)

Variables

This section is empty.

Functions

func DeleteMany

func DeleteMany(exec mysql.Exec, model string, date string, codes []string, timeout time.Duration) (int64, error)

func InsertMany

func InsertMany(exec mysql.Exec, model string, data []*Model, timeout time.Duration) (int64, error)

Types

type Model

type Model struct {
	Id              int64        `json:"id"`
	Code            string       `json:"code"`
	P               float64      `json:"p"`
	C               string       `json:"c"`
	S               float64      `json:"s"`
	U               float64      `json:"u"`
	E               float64      `json:"e"`
	D               float64      `json:"d"`
	Date            time.Time    `json:"date"`
	CreateTimestamp time.Time    `json:"create_timestamp"`
	ModifyTimestamp sql.NullTime `json:"modify_timestamp"`
}

func (*Model) String

func (m *Model) String() string

Jump to

Keyboard shortcuts

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