Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Call ¶
type Call struct {
// call id
CallId string `gorm:"column:callid"`
// sip code
SipCode string `gorm:"column:sip_code"`
// sip 信息
SipReason string `gorm:"column:sip_reason"`
// 呼叫时间
Time time.Time `gorm:"column:time"`
// 被叫号
ToU string `gorm:"column:toU"`
}
表: acc 表: missed_calls
func (*Call) MarshalLogObject ¶
func (c *Call) MarshalLogObject(enc zapcore.ObjectEncoder) error
zap 日志格式化
type CallRepository ¶
func NewCallRepository ¶
func NewCallRepository() *CallRepository
func (*CallRepository) Calls ¶
func (c *CallRepository) Calls(from, to string) <-chan Call
Click to show internal directories.
Click to hide internal directories.