whitelist.go 502 B

1234567891011121314
  1. package models
  2. // Whitelist ip白名单
  3. type Whitelist struct {
  4. Id string `gorm:"column:id;primaryKey" json:"id" bson:"_id"`
  5. IP string `json:"ip" bson:"ip"` // Ip
  6. Desc string `gorm:"column:desc;comment:描述" json:"desc" bson:"desc"`
  7. CreatedAt uint64 `gorm:"column:created_at;autoCreateTime" json:"created_at" bson:"created_at"`
  8. DeletedAt uint64 `gorm:"column:deleted_at;" json:"deleted_at" bson:"deleted_at"`
  9. }
  10. func (w *Whitelist) TableName() string {
  11. return "whitelist"
  12. }