report_selection_third_name.go 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. package cygx
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. //重点公司三方名称 类似产业、标的的三方名称
  7. type CygxReportSelectionThirdName struct {
  8. ThirdId int `orm:"column(third_id);pk"description:"类似产业、标的的三方ID"`
  9. ThirdName string `description:"类似产业、标的的三方名称"`
  10. ChartPermissionId int `description:"行业ID"`
  11. ChartPermissionName string `description:"行业名称"`
  12. CreateTime time.Time `description:"创建时间"`
  13. }
  14. type AddReportSelectionThirdNameReq struct {
  15. ThirdName string `description:"类似产业、标的的三方名称"`
  16. ChartPermissionId int `description:"行业ID"`
  17. }
  18. type AddReportSelectionThirdNameResp struct {
  19. ThirdName string `description:"类似产业、标的的三方名称"`
  20. ThirdId string `description:"类似产业、标的的三方ID"`
  21. }
  22. // 添加
  23. func AddCygxReportSelectionThirdName(item *CygxReportSelectionThirdName) (lastId int64, err error) {
  24. o := orm.NewOrmUsingDB("hz_cygx")
  25. lastId, err = o.Insert(item)
  26. return
  27. }