Vestmore_GO/model/killara_customer_device_log_logic.go

16 lines
323 B
Go
Raw Normal View History

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