25 lines
1.3 KiB
Go
25 lines
1.3 KiB
Go
package dao
|
|
|
|
import "lone-services/pkg/utils"
|
|
|
|
type UsedLog struct {
|
|
Id int64 `json:"id" gorm:"id"`
|
|
HostUserId int64 `json:"host_user_id" gorm:"host_user_id"` // 用户ID
|
|
HostCode string `json:"host_code" gorm:"host_code"` // 设备号
|
|
UserId int64 `json:"user_id" gorm:"user_id"` // 使用人的ID
|
|
Data string `json:"data" gorm:"data"` // 数据
|
|
Stamp utils.CustomTime `json:"stamp" gorm:"stamp"` // 标记,多次使用一个标记
|
|
Position int32 `json:"position" gorm:"position"` // 位置
|
|
}
|
|
|
|
type UsedLogInfo struct {
|
|
Id int64 `json:"id" gorm:"id"`
|
|
HostUserId int64 `json:"host_user_id" gorm:"host_user_id"` // 用户ID
|
|
HostCode string `json:"host_code" gorm:"host_code"` // 设备号
|
|
UserId int64 `json:"user_id" gorm:"user_id"` // 使用人的ID
|
|
Data string `json:"data" gorm:"data"` // 数据
|
|
Stamp utils.CustomTime `json:"stamp" gorm:"stamp"` // 标记,多次使用一个标记
|
|
Position int32 `json:"position" gorm:"position"` // 位置
|
|
CreateTime utils.CustomTime `json:"create_time" gorm:"create_time"` // 时间
|
|
}
|