local_info.go 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. package youngee_talent_model
  2. import (
  3. "github.com/gogf/gf/os/gtime"
  4. "github.com/gogf/gf/util/gmeta"
  5. )
  6. type YounggeeLocalLifeInfo struct {
  7. gmeta.Meta `orm:"table:younggee_local_life_info"`
  8. Id int `json:"id"` // 本地生活表主键ID
  9. LocalId string `json:"local_id"` // 项目id
  10. LocalType int `json:"local_type"` // 项目类型,1代表全流程项目,2代表专项项目
  11. LocalPlatform int `json:"local_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  12. ServiceChargeRate float64 `json:"service_charge_rate"` // 公开服务费率
  13. StoreId int `json:"store_id"` // 关联门店id
  14. StoreRelatedAt *gtime.Time `json:"store_related_at"` // 关联门店时间
  15. TeamBuyingId int `json:"team_buying_id"` // 关联团购id
  16. TeamBuyingRelatedAt *gtime.Time `json:"team_buying_related_at"` // 关联团购时间
  17. PromoteBody int `json:"promote_body"` // 推广主体(1门店 2团购)
  18. Donate int `json:"donate"` // 赠送达人套餐(1有赠送 2无赠送)
  19. LocalName string `json:"local_name"` // 任务标题
  20. TalentType string `json:"talent_type"` // 达人类型(,分隔)
  21. RecruitDdl *gtime.Time `json:"recruit_ddl"` // 招募截止时间
  22. TaskForm int `json:"task_form"` // 任务形式,1-3分别代表商品寄拍、素材分发、虚拟产品测评
  23. ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
  24. TaskDetail string `json:"task_detail"` // 任务详情
  25. TaskStatus int `json:"task_status"` // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、执行中、失效、已结案
  26. EnterpriseId string `json:"enterprise_id"` // 所属企业id
  27. SubAccountId int `json:"sub_account_id"` // 子账号id
  28. OperatorType int `json:"operator_type"` // 创建者类型,1商家主账号,2商家子账号
  29. ApplyNum int `json:"apply_num"` // 报名人数
  30. RecruitNum int `json:"recruit_num"` // 已招募人数
  31. CreatedAt *gtime.Time `json:"created_at"` // 创建时间
  32. UpdatedAt *gtime.Time `json:"updated_at"` // 修改时间
  33. AutoFailAt *gtime.Time `json:"auto_fail_at"` // 失效自动处理时间
  34. AutoTaskId int `json:"auto_task_id"` // 定时任务id
  35. AutoDefaultId int `json:"auto_default_id"` // 违约状态id
  36. PaymentAmount float32 `json:"payment_amount"` // 支付金额
  37. PayAt *gtime.Time `json:"pay_at"` // 支付时间
  38. SubmitAt *gtime.Time `json:"submit_at"` // 提交审核时间
  39. PassAt *gtime.Time `json:"pass_at"` // 审核通过时间
  40. FinishAt *gtime.Time `json:"finish_at"` // 结案时间
  41. EstimatedCost float64 `json:"estimated_cost"` // 预估成本
  42. SettlementAmount float64 `json:"settlement_amount"` // 结算金额
  43. TotalRecruitNum int `json:"total_recruit_num"` // 此任务各策略招募人数总和
  44. Tools string `json:"tools"` // 工具选择,1邀约招募 2样品物流 3审稿工具 4作品审查 5数据巡检 6结算账单(,分隔)
  45. InvoiceStatus int `json:"invoice_status"` // 开票状态(1开票中 2已开票)
  46. YounggeeStore *YounggeeStore `json:"younggee_store"` //关联门店
  47. RecruitStrategys []*RecruitStrategy `orm:"with:project_id=project_id"`
  48. Enterprise *Enterprise `orm:"with:enterprise_id=enterprise_id"`
  49. WatchNum int `json:"watch_num"`
  50. }
  51. // 服务商接手的项目信息
  52. type LocalInfoSupplier struct {
  53. gmeta.Meta `orm:"table:younggee_s_local_info"`
  54. SProjectID int `orm:"s_project_id" json:"s_project_id"` // 服务商种草任务ID
  55. ProjectID string `orm:"project_id" json:"project_id"` // 被服务商加入商单的原种草任务ID
  56. ProjectStatus int8 `orm:"project_status" json:"project_status"` // 项目状态
  57. ProjectType int8 `orm:"project_type" json:"project_type"` // 种草任务类型
  58. ProjectName string `orm:"project_name" json:"project_name"` // 种草任务名称
  59. ProjectPlatform int8 `orm:"project_platform" json:"project_platform"` // 种草任务平台
  60. ProjectForm int8 `orm:"project_form" json:"project_form"` // 任务形式
  61. ContentType int8 `orm:"content_type" json:"content_type"` // 内容形式
  62. ShareCode string `orm:"share_code" json:"share_code"` // 分享码URL
  63. SupplierID int `orm:"supplier_id" json:"supplier_id"` // 服务商ID
  64. EnterpriseID string `orm:"enterprise_id" json:"enterprise_id"` // 所属企业ID
  65. ApplyNum int `orm:"apply_num" json:"apply_num"` // 报名人数
  66. RecruitNum int `orm:"recruit_num" json:"recruit_num"` // 已招募人数
  67. SettleNum int `orm:"settle_num" json:"settle_num"` // 已结算人数
  68. SubAccountID int `orm:"sub_account_id" json:"sub_account_id"` // 服务商子账号ID
  69. ServiceCharge float64 `orm:"service_charge" json:"service_charge"` // 服务商预估可赚服务费
  70. ServiceChargeActual float64 `orm:"service_charge_actual" json:"service_charge_actual"` // 服务商实际可赚服务费
  71. OperatorType int `orm:"operator_type" json:"operator_type"`
  72. }
  73. type LocalInfoDetail struct {
  74. Id int `json:"id"` // 本地生活表主键ID
  75. LocalId string `json:"local_id"` // 项目id
  76. LocalType int `json:"local_type"` // 项目类型,1代表全流程项目,2代表专项项目
  77. LocalPlatform int `json:"local_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
  78. ServiceChargeRate float64 `json:"service_charge_rate"` // 公开服务费率
  79. StoreId int `json:"store_id"` // 关联门店id
  80. StoreRelatedAt *gtime.Time `json:"store_related_at"` // 关联门店时间
  81. TeamBuyingId int `json:"team_buying_id"` // 关联团购id
  82. TeamBuyingRelatedAt *gtime.Time `json:"team_buying_related_at"` // 关联团购时间
  83. PromoteBody int `json:"promote_body"` // 推广主体(1门店 2团购)
  84. Donate int `json:"donate"` // 赠送达人套餐(1有赠送 2无赠送)
  85. LocalName string `json:"local_name"` // 任务标题
  86. TalentType string `json:"talent_type"` // 达人类型(,分隔)
  87. RecruitDdl *gtime.Time `json:"recruit_ddl"` // 招募截止时间
  88. TaskForm int `json:"task_form"` // '任务形式,1-2分别代表线下探店,素材分发',
  89. ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
  90. TaskDetail string `json:"task_detail"` // 任务详情
  91. TaskStatus int `json:"task_status"` // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、执行中、失效、已结案
  92. EnterpriseId string `json:"enterprise_id"` // 所属企业id
  93. SubAccountId int `json:"sub_account_id"` // 子账号id
  94. OperatorType int `json:"operator_type"` // 创建者类型,1商家主账号,2商家子账号
  95. ApplyNum int `json:"apply_num"` // 报名人数
  96. RecruitNum int `json:"recruit_num"` // 已招募人数
  97. CreatedAt *gtime.Time `json:"created_at"` // 创建时间
  98. UpdatedAt *gtime.Time `json:"updated_at"` // 修改时间
  99. AutoFailAt *gtime.Time `json:"auto_fail_at"` // 失效自动处理时间
  100. AutoTaskId int `json:"auto_task_id"` // 定时任务id
  101. AutoDefaultId int `json:"auto_default_id"` // 违约状态id
  102. PaymentAmount float32 `json:"payment_amount"` // 支付金额
  103. PayAt *gtime.Time `json:"pay_at"` // 支付时间
  104. SubmitAt *gtime.Time `json:"submit_at"` // 提交审核时间
  105. PassAt *gtime.Time `json:"pass_at"` // 审核通过时间
  106. FinishAt *gtime.Time `json:"finish_at"` // 结案时间
  107. EstimatedCost float64 `json:"estimated_cost"` // 预估成本
  108. SettlementAmount float64 `json:"settlement_amount"` // 结算金额
  109. TotalRecruitNum int `json:"total_recruit_num"` // 此任务各策略招募人数总和
  110. Tools string `json:"tools"` // 工具选择,1邀约招募 2样品物流 3审稿工具 4作品审查 5数据巡检 6结算账单(,分隔)
  111. InvoiceStatus int `json:"invoice_status"` // 开票状态(1开票中 2已开票)
  112. WatchedNum int `json:"watched_num"` // 浏览量
  113. YounggeeStore *YounggeeStore `orm:"with:store_id=store_id"` //关联门店
  114. RecruitStrategys []*RecruitStrategy `orm:"with:project_id=store_id"` //门店的策略
  115. Enterprise *Enterprise `orm:"with:enterprise_id=enterprise_id"` //商家信息
  116. YounggeeSupplier *YounggeeSupplier `json:"younggee_supplier"` //服务商信息
  117. PlatformInfo *PlatformInfo `orm:"with:platform_id=local_platform"` //平台信息
  118. LocalInfoSupplier *LocalInfoSupplier //服务商提供的LocalInfo
  119. ProjectBrief []*ProjectBrief `orm:"with:project_brief_id=id"` // 项目brief图
  120. ProjectMaterial []*ProjectMaterial `orm:"with:project_material=id"` // 项目brief图
  121. //违约说明
  122. DraftDefault *DraftDefault `json:"draft_default"` //初稿违约说明
  123. LinkDefault *LinkDefault `json:"link_breach"` //链接违约说明
  124. DataDefault *DataDefault `json:"data_default"` //数据违约说明
  125. }
  126. type YounggeeStore struct {
  127. gmeta.Meta `orm:"table:younggee_store"`
  128. StoreId int `json:"store_id"` // 门店id
  129. StoreName string `json:"store_name"` // 门店名称
  130. StoreCategory string `json:"store_category"` // 门店类目(/分隔)
  131. StoreType int `json:"store_type"` // 门店类型,1单门店,2连锁门店
  132. StoreLocation string `json:"store_location"` // 门店地址
  133. StoreDetail string `json:"store_detail"` // 门店特点
  134. StoreLink string `json:"store_link"` // 分销链接
  135. TeamNum int `json:"team_num"` // 包含团购套餐数
  136. BelongEnterpriseId string `json:"belong_enterprise_id"` // 门店所属商家ID
  137. CreatedAt *gtime.Time `json:"created_at"` // 创建时间
  138. IsDeleted int `json:"is_deleted"` // 已删除(0否 1是)
  139. OperateType int `json:"operate_type"` // 操作人类型(1商家 2后台)
  140. EnterpriseId string `json:"enterprise_id"` // 商家id
  141. SubAccountId int `json:"sub_account_id"` // 商家子账号id
  142. YounggeeTeamBuying []*YounggeeTeamBuying `json:"younggee_team_buying"` //关联团购
  143. YounggeeProductPhoto []*YounggeeProductPhoto `json:"younggee_product_photo"` //门店照片
  144. }
  145. type YounggeeTeamBuying struct {
  146. gmeta.Meta `orm:"table:younggee_team_buying"`
  147. TeamBuyingId int `json:"team_buying_id"` // 团购id
  148. StoreId int `json:"store_id"` // 所属门店ID
  149. TeamBuyingCategory string `json:"team_buying_category"` // 团购类目(/分隔)
  150. TeamBuyingName string `json:"team_buying_name"` // 团购标题
  151. TeamBuyingPrice float64 `json:"team_buying_price"` // 团购售价
  152. PublicCommission int `json:"public_commission"` // 公开佣金%
  153. TeamBuyingDetail string `json:"team_buying_detail"` // 团购详情
  154. TeamBuyingLink string `json:"team_buying_link"` // 分销链接
  155. CreatedAt *gtime.Time `json:"created_at"` // 创建时间
  156. IsDeleted int `json:"is_deleted"` // 删除(0否 1是)
  157. OperateType int `json:"operate_type"` // 操作人类型(1商家 2后台)
  158. EnterpriseId string `json:"enterprise_id"` // 商家id
  159. SubAccountId int `json:"sub_account_id"` // 商家子账号id
  160. }
  161. type LocalInfoList struct {
  162. MaxPage int `json:"max_page"`
  163. LocalInfos []*YounggeeLocalLifeInfo
  164. //ProjectDetail []*ProjectDetail
  165. }