Vestmore_GO/model/killara_customer_device_log_logic.go

16 lines
323 B
Go
Raw Normal View History

2024-04-08 00:03:37 +08:00
package model
2024-04-08 18:13:01 +08:00
import (
2024-04-10 14:58:19 +08:00
"gorm.io/gorm"
2024-04-08 18:13:01 +08:00
)
2024-04-08 00:03:37 +08:00
type KillaraCustomerDeviceLogModel struct {
// fields ...
2024-04-10 14:58:19 +08:00
db *gorm.DB
2024-04-08 18:13:01 +08:00
TableName string // 表名
2024-04-08 00:03:37 +08:00
}
2024-04-11 18:04:03 +08:00
func (m *KillaraCustomerModel) InsertCustomerDeviceLog(logData *KillaraCustomerDeviceLog) error {
return m.db.Model(&KillaraCustomerDeviceLog{}).Create(logData).Error
}