CoreSQLTime2

package
v5.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCoreTime

type DataCoreTime struct {
	//最小时间
	// Default时间
	MinTime string `json:"minTime" check:"defaultTime"`
	//最大时间
	// Default时间
	MaxTime string `json:"maxTime" check:"defaultTime"`
}

DataCoreTime 外部参数类型

func (*DataCoreTime) GetBetweenByISO

func (t *DataCoreTime) GetBetweenByISO() (data FieldsCoreTime, err error)

GetBetweenByISO 将ISO时间转为标准时间

func (*DataCoreTime) GetOldTime

func (t *DataCoreTime) GetOldTime() (data CoreSQLTime.DataCoreTime, err error)

type DataOldCoreTime

type DataOldCoreTime struct {
	//最小时间
	// Default时间
	MinTime string `json:"minTime" check:"isoTime"`
	//最大时间
	// Default时间
	MaxTime string `json:"maxTime" check:"isoTime"`
}

func (*DataOldCoreTime) GetBetweenByISO

func (t *DataOldCoreTime) GetBetweenByISO() (data DataCoreTime)

type FieldsCoreTime

type FieldsCoreTime struct {
	//最小时间
	MinTime time.Time `json:"minTime"`
	//最大时间
	MaxTime time.Time `json:"maxTime"`
}

FieldsCoreTime 时间周期选择器和处理器

func (*FieldsCoreTime) GetBetweenByTime

func (t *FieldsCoreTime) GetBetweenByTime(fieldsName string, maps map[string]interface{}) (query string, newMaps map[string]interface{})

GetBetweenByTime 获取时间范围的mgo

func (*FieldsCoreTime) GetBetweenByTimeAnd

func (t *FieldsCoreTime) GetBetweenByTimeAnd(fieldsName string, query string, maps map[string]interface{}) (newQuery string, newMaps map[string]interface{})

GetBetweenByTimeAnd 带有query处理的方法

func (*FieldsCoreTime) GetOldFields

func (t *FieldsCoreTime) GetOldFields() CoreSQLTime.FieldsCoreTime

GetOldFields 获取旧的结构方式

Jump to

Keyboard shortcuts

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