This commit is contained in:
2026-10-16 17:40:51 +08:00
parent f5749b87dc
commit 9c8ce51f4f
27 changed files with 1892 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
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"` // 设备号
Data string `json:"data" gorm:"data"` // 数据
}
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"` // 设备号
Data string `json:"data" gorm:"data"` // 数据
CarteTime utils.CustomTime `json:"carte_time" gorm:"carte_time"`
}
+39
View File
@@ -0,0 +1,39 @@
package dao
import "lone-services/pkg/utils"
const (
UserTypeStore = 1
UserTypeUser = 2
WifiDone = 1
WifiNotDone = 2
)
type SettingCreate struct {
Id int64 `json:"id" gorm:"id"`
UserId int64 `json:"user_id" gorm:"user_id"` // 用户ID
UserType int32 `json:"user_type" gorm:"user_type"` // 用户类型,1为用户,2为门店
HostCode string `json:"host_code" gorm:"host_code"` // 设备
WifiDone int32 `json:"wifi_done" gorm:"wifi_done"` // 是否配置了wifi,2为没有配置,1为配置了
Hardness int32 `json:"hardness" gorm:"hardness"` // 水的硬度
RefreshTime string `json:"refresh_time" gorm:"refresh_time"` // 重生时间
SaltPercent int32 `json:"salt_percent" gorm:"salt_percent"` // 盐量最大100
UseNumber int32 `json:"use_number" gorm:"use_number"` // 剩余使用次数
Soften int32 `json:"soften" gorm:"soften"` // 软化最大100
}
type WifiInfo struct {
Id int64 `json:"id" gorm:"id"`
UserId int64 `json:"user_id" gorm:"user_id"` // 用户ID
UserType int32 `json:"user_type" gorm:"user_type"` // 用户类型,1为用户,2为门店
HostCode string `json:"host_code" gorm:"host_code"` // 设备
WifiDone int32 `json:"wifi_done" gorm:"wifi_done"` // 是否配置了wifi,2为没有配置,1为配置了
Hardness int32 `json:"hardness" gorm:"hardness"` // 水的硬度
RefreshTime string `json:"refresh_time" gorm:"refresh_time"` // 重生时间
SaltPercent int32 `json:"salt_percent" gorm:"salt_percent"` // 盐量最大100
UseNumber int32 `json:"use_number" gorm:"use_number"` // 剩余使用次数
Soften int32 `json:"soften" gorm:"soften"` // 软化最大100
UpdateTime utils.CustomTime `json:"update_time" gorm:"update_time"`
CarteTime utils.CustomTime `json:"carte_time" gorm:"carte_time"`
}