TODO: fix module name 无值问题
This commit is contained in:
@@ -9,3 +9,7 @@ type KillaraCustomerDeviceLogModel struct {
|
||||
db *gorm.DB
|
||||
TableName string // 表名
|
||||
}
|
||||
|
||||
func (m *KillaraCustomerModel) InsertCustomerDeviceLog(logData *KillaraCustomerDeviceLog) error {
|
||||
return m.db.Model(&KillaraCustomerDeviceLog{}).Create(logData).Error
|
||||
}
|
||||
|
||||
@@ -9,3 +9,7 @@ type KillaraCustomerDeviceModel struct {
|
||||
db *gorm.DB
|
||||
TableName string // 表名
|
||||
}
|
||||
|
||||
func (m *KillaraCustomerModel) InsertCustomerDevice(deviceData *KillaraCustomerDevice) error {
|
||||
return m.db.Model(&KillaraCustomerDevice{}).Create(deviceData).Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user