Documentation ¶
Index ¶
- type DataCoreTime
- type DataOldCoreTime
- type FieldsCoreTime
- func (t *FieldsCoreTime) GetBetweenByTime(fieldsName string, maps map[string]interface{}) (query string, newMaps map[string]interface{})
- func (t *FieldsCoreTime) GetBetweenByTimeAnd(fieldsName string, query string, maps map[string]interface{}) (newQuery string, newMaps map[string]interface{})
- func (t *FieldsCoreTime) GetOldFields() CoreSQLTime.FieldsCoreTime
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 获取旧的结构方式
Click to show internal directories.
Click to hide internal directories.