package dao import "lone-services/pkg/utils" type LogCreate struct { Id int64 `json:"id" gorm:"id"` UserId int64 `json:"user_id" gorm:"user_id"` // 用户ID HostCode string `json:"host_code" gorm:"host_code"` // 设备号 Salt int64 `gorm:"column:salt;type:int;default:NULL" json:"salt"` // 剩余盐量 Water int64 `gorm:"column:water;type:int;default:NULL" json:"water"` // 水量 } type LogInfo struct { Id int64 `json:"id" gorm:"id"` UserId int64 `json:"user_id" gorm:"user_id"` // 用户ID HostCode string `json:"host_code" gorm:"host_code"` // 设备号 Salt int64 `gorm:"column:salt;type:int;default:NULL" json:"salt"` // 剩余盐量 Water int64 `gorm:"column:water;type:int;default:NULL" json:"water"` // 水量 CarteTime utils.CustomTime `json:"carte_time" gorm:"carte_time"` }