connect_log.go 452 B

123456789101112131415161718
  1. package model
  2. import (
  3. "dy-admin/internal/pcmserver/common"
  4. "time"
  5. )
  6. type ConnectLog struct {
  7. common.Model
  8. IP string `json:"ip" gorm:"comment:'连接ip'"`
  9. Msg string `json:"msg" gorm:"comment:'连接信息'"`
  10. CreatedAt time.Time `json:"createdAt" gorm:"comment:创建时间"`
  11. UpdatedAt time.Time `json:"updatedAt" gorm:"comment:最后更新时间"`
  12. }
  13. func (ll *ConnectLog) TableName() string {
  14. return "bus_connect_logs"
  15. }