|
@@ -3,6 +3,7 @@ package data_manage
|
|
|
import (
|
|
|
"eta/eta_api/global"
|
|
|
"eta/eta_api/utils"
|
|
|
+ "gorm.io/gorm"
|
|
|
"time"
|
|
|
|
|
|
"github.com/rdlucklib/rdluck_tools/paging"
|
|
@@ -242,6 +243,12 @@ type BaseRelationEdbInfo struct {
|
|
|
RelationTime string `description:"引用时间"`
|
|
|
}
|
|
|
|
|
|
+func (e *BaseRelationEdbInfo) AfterFind(db *gorm.DB) (err error) {
|
|
|
+ e.RelationTime = utils.GormDateStrToDateTimeStr(e.RelationTime)
|
|
|
+
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
type BaseRelationEdbInfoResp struct {
|
|
|
Paging *paging.PagingItem
|
|
|
List []*BaseRelationEdbInfo
|