面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

16 lines
879 B

  1. package model
  2. import (
  3. "time"
  4. )
  5. type AdmOpLog struct {
  6. Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"`
  7. AdmId int `json:"adm_id" xorm:"not null pk default 0 comment('管理员ID') INT(11)"`
  8. Uid int `json:"uid" xorm:"not null default 0 comment('被操作人UID,如非操作用户信息,默认为0') INT(11)"`
  9. Perm string `json:"perm" xorm:"not null default '' comment('操作权限,敏感模块权限') VARCHAR(128)"`
  10. Memo string `json:"memo" xorm:"not null default '' comment('操作描述') VARCHAR(512)"`
  11. Ip string `json:"ip" xorm:"not null default '' comment('操作IP') VARCHAR(15)"`
  12. State int `json:"state" xorm:"not null default 1 comment('操作结果1成功,0失败') TINYINT(1)"`
  13. CreateAt time.Time `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP comment('创建时间') TIMESTAMP"`
  14. }