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.
114 lines
5.0 KiB
114 lines
5.0 KiB
package request
|
|
|
|
import "bkb-seller/model"
|
|
|
|
type SearchMission struct {
|
|
Title string `json:"title" form:"title"` //名称
|
|
Status int `json:"status" form:"status"` //状态 1:未开始 2:进行中 3:已结束
|
|
MissionTime string `json:"mission_time" form:"mission_time"` //筛选任务时间
|
|
PageInfo
|
|
TimeZoneStruct
|
|
}
|
|
|
|
type CreateMission struct {
|
|
Title string `json:"title"` //名称
|
|
GoodsId uint `json:"goods_id"` //商品id
|
|
Num int64 `json:"num"` //数量
|
|
HireType int `json:"hire_type"` //佣金类型 1:固定佣金 2:比例抽成
|
|
HireMoney float64 `json:"hire_money"` //hire_type==1 佣金金额
|
|
HireRatio float64 `json:"hire_ratio"` //hire_type==2 抽成比例
|
|
StartTimeUnix string `json:"start_time"` //任务起始时间
|
|
EndTimeUnix string `json:"end_time"` //任务结束时间
|
|
ClaimStock int64 `json:"claim_stock"` //可接任务库存
|
|
ClaimDays int `json:"claim_days"` //任务完成天数
|
|
ClaimDemands string `json:"claim_description"` //任务拍摄要求
|
|
Description string `json:"description"` //描述/卖点
|
|
model.Sample
|
|
model.VideoMaterial
|
|
}
|
|
|
|
type UpdateMission struct {
|
|
ID uint `json:"id"` //id
|
|
Title string `json:"title"` //名称
|
|
GoodsId uint `json:"goods_id"` //商品id
|
|
Num int64 `json:"num"` //数量
|
|
HireType int `json:"hire_type"` //佣金类型 1:固定佣金 2:比例抽成
|
|
HireMoney float64 `json:"hire_money"` //hire_type==1 佣金金额
|
|
HireRatio float64 `json:"hire_ratio"` //hire_type==2 抽成比例
|
|
StartTimeUnix string `json:"start_time"` //任务起始时间
|
|
EndTimeUnix string `json:"end_time"` //任务结束时间
|
|
ClaimStock int64 `json:"claim_stock"` //可接任务库存
|
|
ClaimDays int `json:"claim_days"` //任务完成天数
|
|
ClaimDemands string `json:"claim_description"` //任务拍摄要求
|
|
Description string `json:"description"` //描述/卖点
|
|
model.Sample
|
|
model.VideoMaterial
|
|
}
|
|
|
|
type SearchMissionClaim struct {
|
|
CreateBy string `json:"-"` //领取人
|
|
MissionId uint `json:"mission_id" form:"mission_id"` //任务id
|
|
Status int `json:"status" form:"status"` //状态 1:已领取待发货 2:已发货 3:已收货推广中
|
|
Uuid string `json:"uuid" form:"uuid"` //网红用户ID
|
|
PageInfo
|
|
}
|
|
|
|
type SearchMissionClaimOrder struct {
|
|
OrderID string `json:"order_id" form:"order_id"` //订单id
|
|
Status int `json:"status" form:"status"` //状态 2:待发货 3:已发货
|
|
SpuNo string `json:"spu_no" form:"spu_no"` //商品编号
|
|
AddressName string `json:"address_name" form:"address_name"` //收件人姓名
|
|
AddressPhone string `json:"address_phone" form:"address_phone"` //收件人手机号
|
|
OrderTimeStart string `json:"order_time_start" form:"order_time_start"` //订单时间起始
|
|
OrderTimeEnd string `json:"order_time_end" form:"order_time_end"` //订单时间结束
|
|
PageInfo
|
|
}
|
|
|
|
type MissionAnalyses struct {
|
|
Chart
|
|
MissionId uint `json:"mission_id" form:"mission_id"` //任务id
|
|
InfluencerId string `json:"influencer_id" form:"influencer_id"` //网红uuid
|
|
TimeZoneStruct
|
|
}
|
|
|
|
type MissionInfluencerAnalyses struct {
|
|
Chart
|
|
MissionId uint `json:"mission_id" form:"mission_id"` //任务id
|
|
TimeZoneStruct
|
|
}
|
|
|
|
type MissionInfluencerRank struct {
|
|
PageInfo
|
|
MissionId uint `json:"mission_id" form:"mission_id"` //任务id
|
|
Type int `json:"type" form:"type"` //1:个数 2:金额
|
|
}
|
|
|
|
type MissionClaimOrderSend struct {
|
|
OrderID string `json:"order_id"` //订单编号
|
|
Courier string `json:"courier"` //快递公司
|
|
CourierUrl string `json:"courier_url"` //快递查询地址
|
|
CourierNumber string `json:"courier_number"` //快递单号
|
|
}
|
|
|
|
type OrderId struct {
|
|
OrderID string `json:"order_id" form:"order_id"` //订单编号
|
|
}
|
|
|
|
type SearchMissionClaimVideo struct {
|
|
MissionId uint `json:"mission_id" form:"mission_id"` //任务id
|
|
Status int `json:"status" form:"status"` //状态 1:待审核 2:审核通过 3:审核未通过
|
|
Uuid string `json:"uuid" form:"uuid"` //网红用户ID
|
|
MissionTitle string `json:"mission_title" form:"mission_title"` //任务标题
|
|
RewardStatus int `form:"reward_status" json:"reward_status"` // 奖励发放状态 1:未发放 2:已发放
|
|
PageInfo
|
|
}
|
|
|
|
type MissionInfluencers struct {
|
|
MissionId uint `json:"mission_id" form:"mission_id"` //任务id
|
|
SalesType int `json:"sales_type" form:"sales_type"` //销售情况 0:所有 1:仅看有销售额的
|
|
}
|
|
|
|
type StopMission struct {
|
|
ID uint `json:"id" form:"id"`
|
|
Remark string `json:"remark" form:"remark"`
|
|
}
|
|
|