30 lines
1.1 KiB
Go
30 lines
1.1 KiB
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
const (
|
|
UserTypeStore = 1
|
|
UserTypeUser = 2
|
|
|
|
WifiDone = 1
|
|
WifiNotDone = 2
|
|
)
|
|
|
|
type Wifi 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"` // 设备
|
|
Done int32 `json:"done" gorm:"done"` // 是否配置了wifi,2为没有配置,1为配置了
|
|
}
|
|
|
|
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"` // 设备
|
|
Done int32 `json:"done" gorm:"done"` // 是否配置了wifi,2为没有配置,1为配置了
|
|
UpdateTime utils.CustomTime `json:"update_time" gorm:"update_time"`
|
|
CarteTime utils.CustomTime `json:"carte_time" gorm:"carte_time"`
|
|
}
|