88dfe5c640
iotlcm-openapi:对外 OpenAPI 网关(V3 接口 + 旧版兼容接口)。
- Go module:iotlcm-openapi → git.5iot.com/iotlcm-public/iotlcm-openapi(178 文件)
- 凭据与地址脱敏:JWT signingKey、MySQL DSN、Redis 口令、
RabbitMQ DSN 全部改为 ${*} 占位;私网 IP → 文档地址段
- 7 处真实手机号 → 合法 11 位编造号
- 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名
- 移除内部资产:CI 触发器
- Dockerfile 改用公共基础镜像,移除 GOPRIVATE 内网设置
- README 重写(原为 GoFrame 模板占位文案),补 Apache-2.0 LICENSE,
LF 行尾 + .gitattributes
142 lines
6.8 KiB
Go
142 lines
6.8 KiB
Go
// Package model contains SIM flow package pricing API models.
|
|
package model
|
|
|
|
import (
|
|
"context"
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/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 TSimFlowPackagePriceAgentPackagePriceSaveParam struct {
|
|
TargetAgentId int64 `json:"targetAgentId" dc:"指定下级代理ID"`
|
|
Items []*TSimFlowPackagePriceAgentPackagePriceSaveItem `json:"items" dc:"保存项"`
|
|
}
|
|
|
|
func (in *TSimFlowPackagePriceAgentPackagePriceSaveParam) 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"`
|
|
}
|