info

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColFmtMap = map[string]string{
		"dayFmt":   "date(%v)",
		"hourFmt":  "DATE_FORMAT(%v, '%%Y-%%m-%%d %%H:00:00')",
		"monthFmt": "DATE_FORMAT(%v, '%%Y-%%m')",
		"yearFmt":  "Year(%v)",
	}
)

Functions

func ColFmt

func ColFmt(old string, isToHump bool, as bool) string

func FilterFmt

func FilterFmt(conn *gorm.DB, si *relationDB.DataStatisticsInfo, k string, v any) *gorm.DB

Types

type IndexLogic

type IndexLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewIndexLogic

func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic

func (*IndexLogic) Index

type ReadLogic

type ReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewReadLogic

func NewReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReadLogic

func (*ReadLogic) Handle

func (*ReadLogic) Read

Jump to

Keyboard shortcuts

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