company_permission_log.go 552 B

1234567891011121314151617181920212223242526
  1. package company_permission_log
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type CompanyPermissionLog struct {
  7. Id int `orm:"column(id);pk"`
  8. CompanyId int
  9. ChartPermissionId int
  10. CreateTime time.Time
  11. SysUserId int
  12. SysUserName string
  13. StartDate string
  14. EndDate string
  15. ProductId int
  16. ProductName string
  17. }
  18. //新增客户权限日志
  19. func AddCompanyPermissionLog(item *CompanyPermissionLog) (err error) {
  20. o := orm.NewOrm()
  21. _, err = o.Insert(item)
  22. return
  23. }