AnalysisIndexRawFilter

package
v5.4.31 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// OpenRecord 是否启用数据记录模式
	// 如果启用,将会记录处理前后的数据
	OpenRecord = false
)

Functions

func FilterPrice

func FilterPrice(price any) (result float64)

FilterPrice 处理金额、数值类数据

func FilterPriceAuto

func FilterPriceAuto(price string) (result float64)

FilterPriceAuto 全自动处理模式 仅用于字符串类型的数据,如果是其他类型数据,需转化后提供 1. 剔除无效的数据 2. 如果数据中发现“万”,则乘以10000 3. 四舍五入保留两位小数

Types

type FieldsFilter

type FieldsFilter struct {
	// ID
	ID int64 `db:"id" json:"id" check:"id" unique:"true"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt" default:"now()"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt" default:"now()"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt" default:"0" index:"true"`
}

Jump to

Keyboard shortcuts

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