53 lines
3.6 KiB
Go
53 lines
3.6 KiB
Go
package model
|
|
|
|
type JxSettlementInfo struct {
|
|
JxStoreId int `json:"jx_store_id"` // jx门店ID
|
|
Name string `json:"name"` // 门店名称
|
|
BrandId int `json:"brand_id"` // 品牌ID
|
|
BrandName string `json:"brand_name"` // 品牌名称
|
|
MtStoreId string `json:"mt_store_id"` // 美团平台ID
|
|
JdStoreId string `json:"jd_store_id"` // 京东平台ID
|
|
SgStoreId string `json:"sg_store_id"` // 闪购平台ID
|
|
CityName string `json:"city_name"` // 市
|
|
DistrictName string `json:"district_name"` // 市
|
|
MarketManPhone string `json:"market_man_phone"` // 平台负责人电话
|
|
MarketManName string `json:"market_man_name"` // 平台负责人名称
|
|
Operator1Name string `json:"operator1_name"` // 美团负责人
|
|
Operator2Name string `json:"operator2_name"` // 京东负责人
|
|
Operator3Name string `json:"operator3_name"` // 闪购负责人
|
|
JxBrandFeeFactor string `json:"jx_brand_fee_factor"` // 京西品牌费因子
|
|
MarketAddFeeFactor string `json:"market_add_fee_factor"` // 市场费因子
|
|
PayPercentage int `json:"pay_percentage"` // 扣点模式,小于50为扣点,其他为报价
|
|
OrderCount int `json:"order_count"` // 有效订单数
|
|
TotalShopMoney int `json:"total_shop_money"` // 平台结算金额
|
|
TotalDesiredFee int `json:"total_desired_fee"` // 总运费
|
|
RefundMoney int `json:"refund_money"` // 订单售后金额
|
|
PackageSetting int `json:"package_setting"` // 服务费
|
|
PackagingFee int `json:"packaging_fee"` // 包装费-每单0.4元
|
|
StoreIncome float64 `json:"store_income"` // 门店收入
|
|
PlatformIncome float64 `json:"platform_income"` // 平台收益
|
|
JxIncome float64 `json:"jx_income"` // 京西收益
|
|
MarketIncome float64 `json:"market_income"` // 市场收益
|
|
Profit float64 `json:"-"` // 纯收益
|
|
}
|
|
|
|
// SettlementByCityCode 根据城市统计
|
|
type SettlementByCityCode struct {
|
|
CityName string `json:"city_name"` // 市
|
|
JxStoreID int64 `json:"jx_store_id" orm:"column(jx_store_id)"` // jx门店ID
|
|
BrandId int `json:"brand_id"` // 品牌ID
|
|
UserName string `json:"user_name"` // 名称
|
|
Mobile string `json:"mobile"` // 电话
|
|
OrderCount int `json:"order_count"` // 有效订单数
|
|
PackageSetting int `json:"package_setting"` // 服务费
|
|
PackagingFee int `json:"packaging_fee"` // 包装费-每单0.4元
|
|
TotalDesiredFee int `json:"total_desired_fee"` // 总运费
|
|
JxIncome float64 `json:"jx_income"` // 京西收益
|
|
MarketIncome float64 `json:"market_income"` // 市场收益
|
|
StoreInCome float64 `json:"store_income" orm:"column(store_income)"` // 门店收入
|
|
TotalShopMoney int `json:"total_shop_money"` // 平台结算金额
|
|
PlatformIncome float64 `json:"platform_income"` // 平台收益
|
|
RefundMoney int `json:"refund_money"` // 订单售后金额
|
|
Profit float64 `json:"-"` // 纯收益
|
|
}
|