fix: cdr/ue结构体指定表名
This commit is contained in:
@@ -9,11 +9,16 @@ type CDREventSMF struct {
|
||||
Timestamp int64 `json:"timestamp" gorm:"column:timestamp"`
|
||||
CDRJSONStr string `json:"cdrJSON" gorm:"column:cdr_json"`
|
||||
CreatedAt string `json:"createdAt" gorm:"column:created_at;default:CURRENT_TIMESTAMP"`
|
||||
TenantID string `json:"tenantID" gorm:"column:tenant_id"`
|
||||
TenantName string `json:"tenantName" gorm:"column:tenant_name"`
|
||||
TenantID string `json:"tenantID" gorm:"-"`
|
||||
TenantName string `json:"tenantName" gorm:"-"`
|
||||
// ====== 非数据库字段属性 ======
|
||||
}
|
||||
|
||||
// TableName 表名称
|
||||
func (*CDREventSMF) TableName() string {
|
||||
return "cdr_event_smf"
|
||||
}
|
||||
|
||||
// CDREventSMFQuery CDR会话对象SMF查询参数结构体
|
||||
type CDREventSMFQuery struct {
|
||||
NeType string `json:"neType" form:"neType" binding:"required"` // SMF
|
||||
|
||||
Reference in New Issue
Block a user