18 lines
461 B
Kotlin
18 lines
461 B
Kotlin
|
package database.service
|
||
|
|
||
|
import database.model.SampleObject
|
||
|
import api.ApiObject
|
||
|
import org.jetbrains.exposed.sql.transactions.transaction
|
||
|
|
||
|
class SampleObjectService : ISampleObjectService {
|
||
|
|
||
|
override fun addOne(apiObject: ApiObject) {
|
||
|
transaction {
|
||
|
SampleObject.new {
|
||
|
tag = apiObject.tag
|
||
|
device_date = apiObject.device_date
|
||
|
device_id = apiObject.device_id
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|