project_detail.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package youngee_talent_model
  2. import (
  3. "github.com/gogf/gf/util/gmeta"
  4. "github.com/gogf/gf/os/gtime"
  5. )
  6. type PlatformInfo struct {
  7. gmeta.Meta `orm:"table:info_third_platform"`
  8. PlatformId int `json:"platform_id"`
  9. PlatformIcon string `json:"platform_icon"`
  10. PlatformName string `json:"platform_name"`
  11. }
  12. type ProductInfo struct {
  13. gmeta.Meta `orm:"table:younggee_product"`
  14. ProductId int `json:"product_id"` // 商品id
  15. ProductName string `json:"product_name"` // 商品名称
  16. ProductType int `json:"product_type"` // 商品类型
  17. ShopAddress string `json:"shop_address"` // 店铺地址,商品类型为线下品牌时需填写
  18. ProductPrice int64 `json:"product_price"` // 商品价值
  19. ProductDetail string `json:"product_detail"` // 商品详情
  20. ProductUrl string `json:"product_url"` // 商品链接,可为电商网址、公司官网、大众点评的店铺地址等可以说明商品信息或者品牌信息的线上地址;
  21. BrandName string `json:"brand_name"` // 品牌名称
  22. ProductPhoto []*ProductPhoto `orm:"with:product_id=product_id"`
  23. }
  24. type ProductPhoto struct {
  25. gmeta.Meta `orm:"table:younggee_product_photo"`
  26. ProductPhotoId int `json:"product_photo_id"` // 商品图片id
  27. PhotoUrl string `json:"photo_url"` // 图片或视频url
  28. Symbol int `json:"symbol"` // 图片为主图或详情图标志位,1为主图,2为详情图,3为视频
  29. ProductId int `json:"product_id"` // 所属商品id
  30. }
  31. type RecruitStrategy struct {
  32. gmeta.Meta `orm:"table:recruit_strategy"`
  33. RecruitStrategyId int `json:"recruit_strategy_id"` // 招募策略id
  34. FeeForm int `json:"fee_form"` // 稿费形式,1-3分别代表产品置换、固定稿费、自报价
  35. StrategyId int `json:"strategy_id"` // 策略id
  36. FollowersLow int `json:"followers_low"` // 达人粉丝数下限
  37. FollowersUp int `json:"followers_up"` // 达人粉丝数上限
  38. RecruitNumber int `json:"recruit_number"` // 招募数量
  39. Offer int `json:"offer"` // 报价
  40. ProjectId int `json:"project_id"` // 所属项目id
  41. ServiceCharge int `json:"service_charge"` // 平台服务费,稿费形式为产品置换时必填
  42. }
  43. type ProjectPhoto struct {
  44. gmeta.Meta `orm:"table:project_photo"`
  45. ProjectPhotoId int `json:"project_photo_id"` // 项目图片id
  46. PhotoUrl string `json:"photo_url"` // 图片url
  47. PhotoUid string `json:"photo_uid"` //
  48. ProjectId int `json:"project_id"` // 所属项目id
  49. }
  50. type ProjectDetail struct {
  51. gmeta.Meta `orm:"table:project_info"`
  52. ProjectId int `json:"project_id"` // 项目id
  53. ProjectName string `json:"project_name"` // 项目名称
  54. ProjectType int `json:"project_type"` // 项目类型,1代表全流程项目,2代表专项项目
  55. ProjectPlatform int `json:"project_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  56. ProjectForm int `json:"project_form"` // 项目形式,1-4分别代表实体商品寄拍、虚拟产品测评、线下探店打卡、素材微原创
  57. TalentType string `json:"talent_type"` // 达人类型
  58. RecruitDdl *gtime.Time `json:"recruit_ddl"` // 招募截止时间
  59. ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
  60. ProjectDetail string `json:"project_detail"` // 项目详情
  61. ApplyNum int `json:"apply_num"` // 报名人数
  62. ProductId int `json:"product_id"` // 关联商品id
  63. Product *ProductInfo `orm:"with:product_id=product_id"`
  64. ProjectPhoto []*ProjectPhoto `orm:"with:project_id=project_id"` // 项目详情图
  65. RecruitStrategy []*RecruitStrategy `orm:"with:project_id=project_id"` // 招募策略
  66. PlatformInfo *PlatformInfo `orm:"with:platform_id=project_platform"`
  67. }