Vestmore_GO/model/killara_customer_device_logic.go

16 lines
317 B
Go

package model
import (
"gorm.io/gorm"
)
type KillaraCustomerDeviceModel struct {
// fields ...
db *gorm.DB
TableName string // 表名
}
func (m *KillaraCustomerModel) InsertCustomerDevice(deviceData *KillaraCustomerDevice) error {
return m.db.Model(&KillaraCustomerDevice{}).Create(deviceData).Error
}