nbcp.myoql.db.es.event.MongoUpdateAtEvent.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktmyoql Show documentation
Show all versions of ktmyoql Show documentation
kotlin orm -- mysql,mongo , just like ktorm
The newest version!
//package nbcp.db.es
//
//import nbcp.myoql.db.DbEntityEventResult
//import nbcp.myoql.db.es.*
//import org.springframework.stereotype.Component
//import java.time.LocalDateTime
//
///**
// * 同步处理,更新的实体,添加 updateAt 字段。
// */
//@Component
//class EsUpdateAtEvent : IEsEntityUpdate {
// override fun beforeUpdate(update: EsBaseUpdateClip): DbEntityEventResult {
// update.setValue("updateAt", LocalDateTime.now())
// return DbEntityEventResult(true, null)
// }
//
// override fun update(update: EsBaseUpdateClip, eventData: DbEntityEventResult) {
// }
//}