Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OpenRecord 是否启用数据记录模式 // 如果启用,将会记录处理前后的数据 OpenRecord = false )
Functions ¶
func FilterPriceAuto ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.