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"` }