You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
3.8 KiB
73 lines
3.8 KiB
6 months ago
|
package response
|
||
|
|
||
|
import (
|
||
|
"bkb-seller/model"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type MissionResponse struct {
|
||
|
Mission model.MissionDetail `json:"mission"`
|
||
|
}
|
||
|
|
||
|
type MissionClaimOrderResponse struct {
|
||
|
Order model.MissionClaimOrderDetail `json:"order"`
|
||
|
}
|
||
|
|
||
|
type MissionClaimVideo struct {
|
||
|
model.MissionClaimVideo
|
||
|
MissionId uint `json:"mission_id"` //任务id
|
||
|
MissionTitle string `json:"mission_title"` //任务名称
|
||
|
GoodsTitle string `json:"goods_title"` //商品名称
|
||
|
InfluencerUser model.InfluencerUserView `json:"influencer_user"` //网红信息
|
||
|
ClaimAt time.Time `json:"claim_at"` //接任务时间
|
||
|
ClaimDays int `json:"claim_days"` //完成任务时间
|
||
|
HireMoneyExpect string `gorm:"-" json:"hire_money_expect"` //预计佣金描述
|
||
|
}
|
||
|
|
||
|
type MissionClaimVideoDetail struct {
|
||
|
ClaimVideo model.MissionClaimVideo `json:"claim_video"`
|
||
|
InfluencerUser model.InfluencerUserDesc `json:"influencer_user"` //网红信息
|
||
|
ClaimGoods MissionClaimGoods `json:"claim_goods"` //商品信息
|
||
|
MissionClaim MissionClaimInfo `json:"mission_claim"` //任务领取信息
|
||
|
}
|
||
|
|
||
|
type MissionClaimGoods struct {
|
||
|
GoodsId uint `json:"goods_id"` //商品ID
|
||
|
OrderId string `json:"order_id"` //订单ID
|
||
|
SpuNo string `json:"spu_no"` //编号
|
||
|
Title string `json:"title"` //标题
|
||
|
TitleEng string `json:"title_eng"` //英文标题
|
||
|
Sales float64 `json:"sales"` //总销售量
|
||
|
Sales30 float64 `json:"sales_30"` //30天销售量
|
||
|
Status int `json:"status"` //1:上架 2:下架 3:售罄
|
||
|
Specs string `json:"specs"` //规格
|
||
|
SkuNo string `json:"sku_no"` //商品编码
|
||
|
Stock int64 `json:"stock"` //库存
|
||
|
Price float64 `json:"price"` //价格
|
||
|
Image string `json:"image"` //规格图片url
|
||
|
Tags string `json:"tags"` //标签
|
||
|
}
|
||
|
|
||
|
type MissionClaimInfo struct {
|
||
|
MissionId uint `json:"mission_id"` //任务id
|
||
|
Title string `json:"title"` //任务名称
|
||
|
ClaimAt time.Time `json:"claim_at"` //接任务时间
|
||
|
HireType int `json:"hire_type"` //佣金类型 1:固定佣金 2:比例抽成
|
||
|
HireMoney float64 `json:"hire_money"` //hire_type==1 佣金金额
|
||
|
HireRatio float64 `json:"hire_ratio"` //hire_type==2 抽成比例
|
||
|
HireMoneyExpect string `gorm:"-" json:"hire_money_expect"` //预计佣金描述
|
||
|
StartTime *time.Time `json:"start_time"` //任务起始时间
|
||
|
EndTime *time.Time `json:"end_time"` //任务结束时间
|
||
|
Status int `json:"status"` //状态 1:未开始 2:进行中 3:已结束
|
||
|
ClaimNum int64 `json:"claim_num"` //接任务人数
|
||
|
ClaimStock int64 `json:"claim_stock"` //可接任务库存
|
||
|
OrderNum int64 `gorm:"-" json:"order_num"` //订单数
|
||
|
ClaimDays int `gorm:"type:tinyint(11)" json:"claim_days"` //任务完成天数
|
||
|
ClaimDemands string `gorm:"type:varchar(500);" json:"claim_demands"` //任务拍摄要求
|
||
|
Description string `gorm:"type:varchar(2000);" json:"description"` //描述/卖点
|
||
|
model.Sample
|
||
|
model.VideoMaterial
|
||
|
ReleaseCountry string `gorm:"-" json:"release_country"` //发布国家
|
||
|
ReleaseChannels string `gorm:"-" json:"release_channels"` //发布渠道
|
||
|
}
|