cm_white_list.go 554 B

1234567891011
  1. package models
  2. type CmWhiteList struct {
  3. Id int `xorm:"not null pk autoincr comment('自增ID') INT(11)"`
  4. Ip string `xorm:"comment('ip地址') VARCHAR(32)"`
  5. Type int `xorm:"comment('白名单类型 1为后台访问限制 2为接口访问限制') TINYINT(1)"`
  6. Enable int `xorm:"comment('是否启用 0为禁用') TINYINT(1)"`
  7. Token string `xorm:"comment('接口访问token') VARCHAR(32)"`
  8. CreateTime int `xorm:"comment('创建时间') INT(11)"`
  9. Remark string `xorm:"comment('备注') VARCHAR(32)"`
  10. }