taskrecord

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 (
	TypeSyncStock    = "sync-stock"
	TypeCalQuoteDay  = "cal-quote-day"
	TypeCalQuoteWeek = "cal-quote-week"
	TypeCalKDay      = "cal-k-day"
	TypeCalKWeek     = "cal-k-week"
	TypeCalMaDay     = "cal-ma-day"
	TypeCalMaWeek    = "cal-ma-week"
	TypeCalBollDay   = "cal-boll-day"
	TypeCalBollWeek  = "cal-boll-week"
)
View Source
const (
	FieldID              = "id"
	FieldCompleted       = "completed"
	FieldCount           = "`count`"
	FieldType            = "`type`"
	FieldDate            = "`date`"
	FieldPriority        = "priority"
	FieldCreateTimestamp = "create_timestamp"
	FieldModifyTimestamp = "modify_timestamp"
)

Variables

This section is empty.

Functions

func DeleteManyByDate

func DeleteManyByDate(exec mysql.Exec, date string, timeout time.Duration) (int64, error)

func InsertMany

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

func UpdateOneCompleted

func UpdateOneCompleted(exec mysql.Exec, count int64, date string, t string, timeout time.Duration) (int64, error)

Types

type Model

type Model struct {
	Id              int64        `json:"id"`
	Completed       bool         `json:"completed"`
	Count           int          `json:"count"`
	Type            string       `json:"type"`
	Date            string       `json:"date"`
	Priority        int64        `json:"priority"`
	CreateTimestamp time.Time    `json:"create_timestamp"`
	ModifyTimestamp sql.NullTime `json:"modify_timestamp"`
}

func Build

func Build(t time.Time) []*Model

func SelectManyByDate

func SelectManyByDate(exec mysql.Exec, date string, timeout time.Duration) ([]*Model, error)

func (*Model) String

func (t *Model) String() string

Jump to

Keyboard shortcuts

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