经皮湿水仪init and bind's all api
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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为门店
|
||||
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为门店
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user