Vestmore_GO/model/killara_customer_device_log_logic.go

16 lines
323 B
Go

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
}