Files
iotlcm/admin-svr/server/internal/model/t_sim_flow_package_price.go

169 lines
7.9 KiB
Go

// Package model contains SIM flow package pricing API models.
package model
import (
"context"
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/model/request"
"github.com/gogf/gf/v2/os/gtime"
)
type TSimFlowPackagePriceAgentTreeParam struct{}
type TSimFlowPackagePriceAgentTreeRes struct {
Items []*SysDeptTreeModel `json:"items" dc:"代理/公司树"`
}
// TSimFlowPackagePriceAgentPackagePriceListParam 查询指定下级代理套餐生效定价参数
type TSimFlowPackagePriceAgentPackagePriceListParam struct {
request.PageInfo
TargetAgentId int64 `json:"targetAgentId" dc:"指定下级代理ID"`
PackageCode string `json:"packageCode" dc:"套餐编码(可选)"`
PackageName string `json:"packageName" dc:"套餐名称(可选)"`
}
func (in *TSimFlowPackagePriceAgentPackagePriceListParam) Filter(ctx context.Context) (err error) {
return
}
type TSimFlowPackagePriceAgentDefaultPackagePriceSaveItem struct {
PriceSource string `json:"priceSource" dc:"价格来源:system/agentDefault"`
AgentDefaultPriceId int64 `json:"agentDefaultPriceId" dc:"本级默认定价ID"`
PackageCode string `json:"packageCode" dc:"套餐编码"`
AgentCostRatio float64 `json:"agentCostRatio" dc:"渠道成本系数"`
AgentCostProfit float64 `json:"agentCostProfit" dc:"渠道利润"`
TerminalCostRatio float64 `json:"terminalCostRatio" dc:"终端成本系数"`
TerminalCostProfit float64 `json:"terminalCostProfit" dc:"终端利润"`
Remark string `json:"remark" dc:"备注"`
}
type TSimFlowPackagePriceAgentPackagePriceSaveItem struct {
PriceSource string `json:"priceSource" dc:"价格来源:system/agentDefault/target"`
TargetPriceId int64 `json:"targetPriceId" dc:"下级专属定价ID"`
AgentDefaultPriceId int64 `json:"agentDefaultPriceId" dc:"本级默认定价ID"`
PackageCode string `json:"packageCode" dc:"套餐编码"`
AgentCostRatio float64 `json:"agentCostRatio" dc:"渠道成本系数"`
AgentCostProfit float64 `json:"agentCostProfit" dc:"渠道利润"`
TerminalCostRatio float64 `json:"terminalCostRatio" dc:"终端成本系数"`
TerminalCostProfit float64 `json:"terminalCostProfit" dc:"终端利润"`
Remark string `json:"remark" dc:"备注"`
}
type TSimFlowPackagePriceAgentDefaultPackagePriceSaveParam struct {
Items []*TSimFlowPackagePriceAgentDefaultPackagePriceSaveItem `json:"items" dc:"保存项"`
}
func (in *TSimFlowPackagePriceAgentDefaultPackagePriceSaveParam) Filter(ctx context.Context) (err error) {
return
}
type TSimFlowPackagePriceAgentDefaultPackagePriceInheritItem struct {
AgentDefaultPriceId int64 `json:"agentDefaultPriceId" dc:"本级默认定价ID"`
PackageCode string `json:"packageCode" dc:"套餐编码"`
}
type TSimFlowPackagePriceAgentDefaultPackagePriceInheritParam struct {
Items []*TSimFlowPackagePriceAgentDefaultPackagePriceInheritItem `json:"items" dc:"承袭项"`
}
func (in *TSimFlowPackagePriceAgentDefaultPackagePriceInheritParam) Filter(ctx context.Context) (err error) {
return
}
type TSimFlowPackagePriceAgentPackagePriceSaveParam struct {
TargetAgentId int64 `json:"targetAgentId" dc:"指定下级代理ID"`
Items []*TSimFlowPackagePriceAgentPackagePriceSaveItem `json:"items" dc:"保存项"`
}
func (in *TSimFlowPackagePriceAgentPackagePriceSaveParam) Filter(ctx context.Context) (err error) {
return
}
type TSimFlowPackagePriceAgentPackagePriceInheritItem struct {
TargetPriceId int64 `json:"targetPriceId" dc:"下级专属定价ID"`
PackageCode string `json:"packageCode" dc:"套餐编码"`
}
type TSimFlowPackagePriceAgentPackagePriceInheritParam struct {
TargetAgentId int64 `json:"targetAgentId" dc:"指定下级代理ID"`
Items []*TSimFlowPackagePriceAgentPackagePriceInheritItem `json:"items" dc:"承袭项"`
}
func (in *TSimFlowPackagePriceAgentPackagePriceInheritParam) Filter(ctx context.Context) (err error) {
return
}
// TSimFlowPackagePriceAgentPackagePriceListItem 查询指定下级代理套餐生效定价响应项
type TSimFlowPackagePriceAgentPackagePriceListItem struct {
TargetAgentId int64 `json:"targetAgentId" dc:"目标代理ID"`
PackageCode string `json:"packageCode" dc:"套餐编码"`
PackageName string `json:"packageName" dc:"套餐名称"`
AgentDefaultPriceId int64 `json:"agentDefaultPriceId" dc:"本级默认定价ID,没有则为0"`
TargetPriceId int64 `json:"targetPriceId" dc:"本级对当前下级代理的专属定价ID,没有则为0"`
PriceSource string `json:"priceSource" dc:"价格来源:system-系统级/agentDefault-本级默认/target-下级专属"`
AgentCost float64 `json:"agentCost" dc:"代理成本"`
TerminalCost float64 `json:"terminalCost" dc:"终端成本"`
AgentCostRatio float64 `json:"agentCostRatio" dc:"代理成本系数"`
AgentCostProfit float64 `json:"agentCostProfit" dc:"渠道利润"`
AgentShipmentPrice float64 `json:"agentShipmentPrice" dc:"渠道出货价"`
TerminalCostRatio float64 `json:"terminalCostRatio" dc:"终端成本系数"`
TerminalCostProfit float64 `json:"terminalCostProfit" dc:"终端利润"`
TerminalSalePrice float64 `json:"terminalSalePrice" dc:"终端售价"`
Remark string `json:"remark" dc:"备注"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
}
type TSimFlowPackagePriceAgentDefaultPackagePriceListParam struct {
request.PageInfo
PackageCode string `json:"packageCode" dc:"套餐编码(可选)"`
PackageName string `json:"packageName" dc:"套餐名称(可选)"`
}
func (in *TSimFlowPackagePriceAgentDefaultPackagePriceListParam) Filter(ctx context.Context) (err error) {
return
}
// TSimFlowPackagePriceAgentDefaultPackagePriceListItem 查询本级默认套餐定价响应项
type TSimFlowPackagePriceAgentDefaultPackagePriceListItem struct {
PackageCode string `json:"packageCode" dc:"套餐编码"`
PackageName string `json:"packageName" dc:"套餐名称"`
AgentDefaultPriceId int64 `json:"agentDefaultPriceId" dc:"本级默认定价ID,没有则为0"`
PriceSource string `json:"priceSource" dc:"价格来源:system-系统级/agentDefault-本级默认"`
AgentCost float64 `json:"agentCost" dc:"代理成本"`
TerminalCost float64 `json:"terminalCost" dc:"终端成本"`
AgentCostRatio float64 `json:"agentCostRatio" dc:"渠道成本系数"`
AgentCostProfit float64 `json:"agentCostProfit" dc:"渠道利润"`
AgentShipmentPrice float64 `json:"agentShipmentPrice" dc:"渠道出货价"`
TerminalCostRatio float64 `json:"terminalCostRatio" dc:"终端成本系数"`
TerminalCostProfit float64 `json:"terminalCostProfit" dc:"终端利润"`
TerminalSalePrice float64 `json:"terminalSalePrice" dc:"终端售价"`
Remark string `json:"remark" dc:"备注"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
}
type TSimFlowPackagePriceAgentDefaultPackagePricePackageItem struct {
PackageCode string `json:"packageCode"`
PackageName string `json:"packageName"`
CostPrice float64 `json:"costPrice"`
TerminalCost float64 `json:"terminalCost"`
SysDefaultRatio float64 `json:"sysDefaultRatio"`
SysDefaultProfit float64 `json:"sysDefaultProfit"`
SysDefaultTerminalRatio float64 `json:"sysDefaultTerminalRatio"`
SysDefaultTerminalProfit float64 `json:"sysDefaultTerminalProfit"`
}
type TSimFlowPackagePriceAgentDefaultPackagePriceRecord struct {
Id int64 `json:"id"`
PackageCode string `json:"packageCode"`
AgentCostRatio float64 `json:"agentCostRatio"`
AgentCostProfit float64 `json:"agentCostProfit"`
UserCostRatio float64 `json:"userCostRatio"`
UserCostProfit float64 `json:"userCostProfit"`
Remark string `json:"remark"`
UpdatedAt *gtime.Time `json:"updatedAt"`
}