company_report_permission_log.go 940 B

12345678910111213141516171819202122232425262728
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. //用户权限操作日志表
  7. type CompanyReportPermissionLog struct {
  8. Id int64 `orm:"column(id);pk"`
  9. CompanyReportPermissionId int64 `description:"用户权限id"`
  10. CompanyId int `description:"公司id"`
  11. ProductId int `description:"产品id"`
  12. ProductName string `description:"产品名称"`
  13. SysUserId int `description:"操作者id"`
  14. SysUserName string `description:"操作者名称"`
  15. Remark string `description:"备注"`
  16. Operation string `description:"操作"`
  17. Status string `description:"状态"`
  18. CreateTime time.Time `description:"操作时间"`
  19. }
  20. //添加用户权限操作日志
  21. func AddCompanyReportPermissionLog(item *CompanyReportPermissionLog) (lastId int64, err error) {
  22. o := orm.NewOrm()
  23. lastId, err = o.Insert(item)
  24. return
  25. }