package model import ( "gorm.io/gorm" ) type KillaraCustomerDeviceLogModel struct { // fields ... db *gorm.DB TableName string // 表名 } func (m *KillaraCustomerModel) InsertCustomerDeviceLog(logData *KillaraCustomerDeviceLog) error { return m.db.Model(&KillaraCustomerDeviceLog{}).Create(logData).Error }