cdr.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package model
  2. // Cdr 通话记录
  3. type Cdr struct {
  4. AnswerTime string `xorm:"AnswerTime"`
  5. BillableSeconds string `xorm:"BillableSeconds"`
  6. CallerID string `xorm:"CallerID"`
  7. Channel string `xorm:"Channel"`
  8. Destination string `xorm:"Destination"`
  9. DestinationChannel string `xorm:"DestinationChannel"`
  10. DestinationContext string `xorm:"DestinationContext"`
  11. Disposition string `xorm:"Disposition"`
  12. Duration string `xorm:"Duration"`
  13. EndTime string `xorm:"EndTime"`
  14. Event string `xorm:"Event"`
  15. LastApplication string `xorm:"LastApplication"`
  16. LastData string `xorm:"LastData"`
  17. Privilege string `xorm:"Privilege"`
  18. RecordFile string `xorm:"RecordFile"`
  19. Source string `xorm:"Source"`
  20. StartTime string `xorm:"StartTime"`
  21. Timestamp string `xorm:"Timestamp"`
  22. UniqueID string `xorm:"UniqueID"`
  23. }
  24. type RcdConf struct {
  25. PadRcdEnable int `xorm:"pad_rcd_enable" json:"padRcdEnable"`
  26. PadRcdStorageDays int `xorm:"pad_rcdstorage_days" json:"padRcdStorageDays"`
  27. PaRcdStorageDays int `xorm:"pa_rcdstorage_days" json:"paRcdStorageDays"`
  28. CpaRcdStorageDays int `xorm:"cpa_rcdstorage_days" json:"cpaRcdStorageDays"`
  29. OpaRcdStorageDays int `xorm:"0pa_rcdstorage_days" json:"opaRcdStorageDays"`
  30. }
  31. func (*RcdConf) TableName() string {
  32. return "t_record_conf"
  33. }