company_delete_bak.go 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. package company
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. // CompanyDeleteBak 客户删除的备份数据表
  7. type CompanyDeleteBak struct {
  8. DeleteBakId int `orm:"column(delete_bak_id);pk"`
  9. CompanyId int `description:"客户id"`
  10. CompanyName string `description:"客户名称"`
  11. CompanyInfo string `description:"客户主表信息"`
  12. CompanyProductInfo string `description:"客户产品信息"`
  13. CompanyPermissionInfo string `description:"客户产品权限信息"`
  14. UserSellerRelationInfo string `description:"联系人与销售关系信息"`
  15. UserRecordInfo string `description:"联系人关系信息"`
  16. UserInfo string `description:"联系人信息"`
  17. CompanyChartPermissionInfo string `description:"客户图表权限信息"`
  18. CompanyContractInfo string `description:"客户合同信息"`
  19. CompanyContractPermissionInfo string `description:"客户合同权限信息"`
  20. OpUserId int `description:"操作人id"`
  21. OpUserName string `description:"操作人名称"`
  22. CreateTime time.Time `description:"创建时间"`
  23. }
  24. // AddCompanyDeleteBak 添加客户删除之前的备注
  25. func AddCompanyDeleteBak(companyDeleteBak *CompanyDeleteBak) (err error) {
  26. o := orm.NewOrm()
  27. _, err = o.Insert(companyDeleteBak)
  28. return
  29. }