admin_operate_record.go 813 B

12345678910111213141516171819202122232425
  1. package system
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type AdminOperateRecord struct {
  7. AdminOperateRecordId int `orm:"column(admin_operate_record_id);pk" description:"id"`
  8. AdminId int `description:"系统客户id"`
  9. RealName string `description:"配置编码"`
  10. Uuid string `description:"配置值"`
  11. Uri string `description:"地址"`
  12. Params string `description:"参数"`
  13. Ip string `description:"IP"`
  14. UserAgent string `description:"用户代理信息"`
  15. CreateTime time.Time `description:"创建时间"`
  16. Header string
  17. }
  18. func (item *AdminOperateRecord) Insert() (err error) {
  19. o := orm.NewOrm()
  20. _, err = o.Insert(item)
  21. return
  22. }