cc23c30c9e
CI / changes (push) Successful in 1m34s
CI / ad (push) Successful in 27s
CI / admin (push) Successful in 17s
CI / aiserver (push) Successful in 26s
CI / analysis (push) Successful in 22s
CI / bff (push) Successful in 21s
CI / chore (push) Successful in 20s
CI / equipment (push) Successful in 19s
CI / express (push) Successful in 19s
CI / factory (push) Successful in 19s
CI / message (push) Successful in 18s
CI / order (push) Successful in 19s
CI / payment (push) Successful in 17s
CI / percutaneous (push) Successful in 17s
CI / product (push) Successful in 19s
CI / record (push) Successful in 19s
CI / sale (push) Successful in 19s
CI / store (push) Successful in 20s
CI / support (push) Successful in 19s
CI / task (push) Successful in 21s
CI / user (push) Successful in 22s
CI / water (push) Successful in 25s
CI / wecom (push) Successful in 21s
CI / ws (push) Successful in 9s
42 lines
3.1 KiB
Go
42 lines
3.1 KiB
Go
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"` // 剩余使用次数
|
|
NoDisturbing string `gorm:"column:no_disturbing;type:varchar(50);not null;default:''" json:"no_disturbing"` // 免打扰
|
|
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
|
|
NoDisturbing string `gorm:"column:no_disturbing;type:varchar(50);not null;default:''" json:"no_disturbing"` // 免打扰
|
|
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"`
|
|
}
|