This commit is contained in:
2025-01-07 14:52:54 +08:00
parent ab08f7e169
commit d7b004ea80
4 changed files with 117 additions and 9 deletions

View File

@@ -8,11 +8,10 @@ import (
type DevUpData struct {
Id int `gorm:"column:id;primaryKey" json:"id"`
Imei string `gorm:"column:imei;comment:IMEI;type:varchar(255)" json:"imei"`
Sum string `gorm:"column:sum;comment:IMEI;type:varchar(255)" json:"sum"`
Time string `gorm:"column:time;comment:IMEI;type:varchar(255)" json:"time"`
Mile string `gorm:"column:mile;comment:IMEI;type:varchar(255)" json:"mile"`
Imei string `gorm:"column:imei;unique;comment:IMEI;type:varchar(255)" json:"imei"`
Sum string `gorm:"column:sum;comment:总次数;type:varchar(255)" json:"sum"`
Time string `gorm:"column:time;comment:总运行时间;type:varchar(255)" json:"time"`
Mile string `gorm:"column:mile;comment:总里程;type:varchar(255)" json:"mile"`
Created time.Time `gorm:"column:created;autoCreateTime;comment:创建时间" json:"created"`
Updated time.Time `gorm:"column:updated;autoUpdateTime;comment:修改时间" json:"updated"`