123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- package youngee_talent_model
- import (
- "github.com/gogf/gf/os/gtime"
- "github.com/gogf/gf/util/gmeta"
- )
- type YounggeeLocalLifeInfo struct {
- gmeta.Meta `orm:"table:younggee_local_life_info"`
- Id int `json:"id"` // 本地生活表主键ID
- LocalId string `json:"local_id"` // 项目id
- LocalType int `json:"local_type"` // 项目类型,1代表全流程项目,2代表专项项目
- LocalPlatform int `json:"local_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
- ServiceChargeRate float64 `json:"service_charge_rate"` // 公开服务费率
- StoreId int `json:"store_id"` // 关联门店id
- StoreRelatedAt *gtime.Time `json:"store_related_at"` // 关联门店时间
- TeamBuyingId int `json:"team_buying_id"` // 关联团购id
- TeamBuyingRelatedAt *gtime.Time `json:"team_buying_related_at"` // 关联团购时间
- PromoteBody int `json:"promote_body"` // 推广主体(1门店 2团购)
- Donate int `json:"donate"` // 赠送达人套餐(1有赠送 2无赠送)
- LocalName string `json:"local_name"` // 任务标题
- TalentType string `json:"talent_type"` // 达人类型(,分隔)
- RecruitDdl *gtime.Time `json:"recruit_ddl"` // 招募截止时间
- TaskForm int `json:"task_form"` // 任务形式,1-3分别代表商品寄拍、素材分发、虚拟产品测评
- ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
- TaskDetail string `json:"task_detail"` // 任务详情
- TaskStatus int `json:"task_status"` // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、执行中、失效、已结案
- EnterpriseId string `json:"enterprise_id"` // 所属企业id
- SubAccountId int `json:"sub_account_id"` // 子账号id
- OperatorType int `json:"operator_type"` // 创建者类型,1商家主账号,2商家子账号
- ApplyNum int `json:"apply_num"` // 报名人数
- RecruitNum int `json:"recruit_num"` // 已招募人数
- CreatedAt *gtime.Time `json:"created_at"` // 创建时间
- UpdatedAt *gtime.Time `json:"updated_at"` // 修改时间
- AutoFailAt *gtime.Time `json:"auto_fail_at"` // 失效自动处理时间
- AutoTaskId int `json:"auto_task_id"` // 定时任务id
- AutoDefaultId int `json:"auto_default_id"` // 违约状态id
- PaymentAmount float32 `json:"payment_amount"` // 支付金额
- PayAt *gtime.Time `json:"pay_at"` // 支付时间
- SubmitAt *gtime.Time `json:"submit_at"` // 提交审核时间
- PassAt *gtime.Time `json:"pass_at"` // 审核通过时间
- FinishAt *gtime.Time `json:"finish_at"` // 结案时间
- EstimatedCost float64 `json:"estimated_cost"` // 预估成本
- SettlementAmount float64 `json:"settlement_amount"` // 结算金额
- TotalRecruitNum int `json:"total_recruit_num"` // 此任务各策略招募人数总和
- Tools string `json:"tools"` // 工具选择,1邀约招募 2样品物流 3审稿工具 4作品审查 5数据巡检 6结算账单(,分隔)
- InvoiceStatus int `json:"invoice_status"` // 开票状态(1开票中 2已开票)
- YounggeeStore *YounggeeStore `json:"younggee_store"` //关联门店
- RecruitStrategys []*RecruitStrategy `orm:"with:project_id=project_id"`
- Enterprise *Enterprise `orm:"with:enterprise_id=enterprise_id"`
- WatchNum int `json:"watch_num"`
- }
- // 服务商接手的项目信息
- type LocalInfoSupplier struct {
- gmeta.Meta `orm:"table:younggee_s_local_info"`
- SProjectID int `orm:"s_project_id" json:"s_project_id"` // 服务商种草任务ID
- ProjectID string `orm:"project_id" json:"project_id"` // 被服务商加入商单的原种草任务ID
- ProjectStatus int8 `orm:"project_status" json:"project_status"` // 项目状态
- ProjectType int8 `orm:"project_type" json:"project_type"` // 种草任务类型
- ProjectName string `orm:"project_name" json:"project_name"` // 种草任务名称
- ProjectPlatform int8 `orm:"project_platform" json:"project_platform"` // 种草任务平台
- ProjectForm int8 `orm:"project_form" json:"project_form"` // 任务形式
- ContentType int8 `orm:"content_type" json:"content_type"` // 内容形式
- ShareCode string `orm:"share_code" json:"share_code"` // 分享码URL
- SupplierID int `orm:"supplier_id" json:"supplier_id"` // 服务商ID
- EnterpriseID string `orm:"enterprise_id" json:"enterprise_id"` // 所属企业ID
- ApplyNum int `orm:"apply_num" json:"apply_num"` // 报名人数
- RecruitNum int `orm:"recruit_num" json:"recruit_num"` // 已招募人数
- SettleNum int `orm:"settle_num" json:"settle_num"` // 已结算人数
- SubAccountID int `orm:"sub_account_id" json:"sub_account_id"` // 服务商子账号ID
- ServiceCharge float64 `orm:"service_charge" json:"service_charge"` // 服务商预估可赚服务费
- ServiceChargeActual float64 `orm:"service_charge_actual" json:"service_charge_actual"` // 服务商实际可赚服务费
- OperatorType int `orm:"operator_type" json:"operator_type"`
- }
- type LocalInfoDetail struct {
- Id int `json:"id"` // 本地生活表主键ID
- LocalId string `json:"local_id"` // 项目id
- LocalType int `json:"local_type"` // 项目类型,1代表全流程项目,2代表专项项目
- LocalPlatform int `json:"local_platform"` // 项目平台,1-7分别代表小红书、抖音、微博、快手、b站、大众点评、知乎
- ServiceChargeRate float64 `json:"service_charge_rate"` // 公开服务费率
- StoreId int `json:"store_id"` // 关联门店id
- StoreRelatedAt *gtime.Time `json:"store_related_at"` // 关联门店时间
- TeamBuyingId int `json:"team_buying_id"` // 关联团购id
- TeamBuyingRelatedAt *gtime.Time `json:"team_buying_related_at"` // 关联团购时间
- PromoteBody int `json:"promote_body"` // 推广主体(1门店 2团购)
- Donate int `json:"donate"` // 赠送达人套餐(1有赠送 2无赠送)
- LocalName string `json:"local_name"` // 任务标题
- TalentType string `json:"talent_type"` // 达人类型(,分隔)
- RecruitDdl *gtime.Time `json:"recruit_ddl"` // 招募截止时间
- TaskForm int `json:"task_form"` // '任务形式,1-2分别代表线下探店,素材分发',
- ContentType int `json:"content_type"` // 内容形式,1代表图文,2代表视频
- TaskDetail string `json:"task_detail"` // 任务详情
- TaskStatus int `json:"task_status"` // 项目状态,1-10分别代表创建中、待审核、审核通过、招募中、招募完毕、待支付、已支付、执行中、失效、已结案
- EnterpriseId string `json:"enterprise_id"` // 所属企业id
- SubAccountId int `json:"sub_account_id"` // 子账号id
- OperatorType int `json:"operator_type"` // 创建者类型,1商家主账号,2商家子账号
- ApplyNum int `json:"apply_num"` // 报名人数
- RecruitNum int `json:"recruit_num"` // 已招募人数
- CreatedAt *gtime.Time `json:"created_at"` // 创建时间
- UpdatedAt *gtime.Time `json:"updated_at"` // 修改时间
- AutoFailAt *gtime.Time `json:"auto_fail_at"` // 失效自动处理时间
- AutoTaskId int `json:"auto_task_id"` // 定时任务id
- AutoDefaultId int `json:"auto_default_id"` // 违约状态id
- PaymentAmount float32 `json:"payment_amount"` // 支付金额
- PayAt *gtime.Time `json:"pay_at"` // 支付时间
- SubmitAt *gtime.Time `json:"submit_at"` // 提交审核时间
- PassAt *gtime.Time `json:"pass_at"` // 审核通过时间
- FinishAt *gtime.Time `json:"finish_at"` // 结案时间
- EstimatedCost float64 `json:"estimated_cost"` // 预估成本
- SettlementAmount float64 `json:"settlement_amount"` // 结算金额
- TotalRecruitNum int `json:"total_recruit_num"` // 此任务各策略招募人数总和
- Tools string `json:"tools"` // 工具选择,1邀约招募 2样品物流 3审稿工具 4作品审查 5数据巡检 6结算账单(,分隔)
- InvoiceStatus int `json:"invoice_status"` // 开票状态(1开票中 2已开票)
- WatchedNum int `json:"watched_num"` // 浏览量
- YounggeeStore *YounggeeStore `orm:"with:store_id=store_id"` //关联门店
- RecruitStrategys []*RecruitStrategy `orm:"with:project_id=store_id"` //门店的策略
- Enterprise *Enterprise `orm:"with:enterprise_id=enterprise_id"` //商家信息
- YounggeeSupplier *YounggeeSupplier `json:"younggee_supplier"` //服务商信息
- PlatformInfo *PlatformInfo `orm:"with:platform_id=local_platform"` //平台信息
- LocalInfoSupplier *LocalInfoSupplier //服务商提供的LocalInfo
- ProjectBrief []*ProjectBrief `orm:"with:project_brief_id=id"` // 项目brief图
- ProjectMaterial []*ProjectMaterial `orm:"with:project_material=id"` // 项目brief图
- //违约说明
- DraftDefault *DraftDefault `json:"draft_default"` //初稿违约说明
- LinkDefault *LinkDefault `json:"link_breach"` //链接违约说明
- DataDefault *DataDefault `json:"data_default"` //数据违约说明
- }
- type YounggeeStore struct {
- gmeta.Meta `orm:"table:younggee_store"`
- StoreId int `json:"store_id"` // 门店id
- StoreName string `json:"store_name"` // 门店名称
- StoreCategory string `json:"store_category"` // 门店类目(/分隔)
- StoreType int `json:"store_type"` // 门店类型,1单门店,2连锁门店
- StoreLocation string `json:"store_location"` // 门店地址
- StoreDetail string `json:"store_detail"` // 门店特点
- StoreLink string `json:"store_link"` // 分销链接
- TeamNum int `json:"team_num"` // 包含团购套餐数
- BelongEnterpriseId string `json:"belong_enterprise_id"` // 门店所属商家ID
- CreatedAt *gtime.Time `json:"created_at"` // 创建时间
- IsDeleted int `json:"is_deleted"` // 已删除(0否 1是)
- OperateType int `json:"operate_type"` // 操作人类型(1商家 2后台)
- EnterpriseId string `json:"enterprise_id"` // 商家id
- SubAccountId int `json:"sub_account_id"` // 商家子账号id
- YounggeeTeamBuying []*YounggeeTeamBuying `json:"younggee_team_buying"` //关联团购
- YounggeeProductPhoto []*YounggeeProductPhoto `json:"younggee_product_photo"` //门店照片
- }
- type YounggeeTeamBuying struct {
- gmeta.Meta `orm:"table:younggee_team_buying"`
- TeamBuyingId int `json:"team_buying_id"` // 团购id
- StoreId int `json:"store_id"` // 所属门店ID
- TeamBuyingCategory string `json:"team_buying_category"` // 团购类目(/分隔)
- TeamBuyingName string `json:"team_buying_name"` // 团购标题
- TeamBuyingPrice float64 `json:"team_buying_price"` // 团购售价
- PublicCommission int `json:"public_commission"` // 公开佣金%
- TeamBuyingDetail string `json:"team_buying_detail"` // 团购详情
- TeamBuyingLink string `json:"team_buying_link"` // 分销链接
- CreatedAt *gtime.Time `json:"created_at"` // 创建时间
- IsDeleted int `json:"is_deleted"` // 删除(0否 1是)
- OperateType int `json:"operate_type"` // 操作人类型(1商家 2后台)
- EnterpriseId string `json:"enterprise_id"` // 商家id
- SubAccountId int `json:"sub_account_id"` // 商家子账号id
- }
- type LocalInfoList struct {
- MaxPage int `json:"max_page"`
- LocalInfos []*YounggeeLocalLifeInfo
- //ProjectDetail []*ProjectDetail
- }
|