43 lines
1.8 KiB
Go
43 lines
1.8 KiB
Go
package model
|
|
|
|
type CommonBatchExecuteMessage struct {
|
|
BatchNo string `json:"batchNo"`
|
|
BatchType int `json:"batchType"`
|
|
}
|
|
|
|
type CommonRenewCard struct {
|
|
Iccid string `json:"iccid,omitempty" dc:"ICCID"`
|
|
Msisdn string `json:"msisdn,omitempty" dc:"MSISDN/卡号"`
|
|
Imsi string `json:"imsi,omitempty" dc:"IMSI"`
|
|
PackageId string `json:"packageId,omitempty" dc:"套餐编码"`
|
|
}
|
|
|
|
type CommonRenewParam struct {
|
|
AppId string `json:"appId" v:"required#appId不能为空" dc:"平台API应用ID"`
|
|
Cards []CommonRenewCard `json:"cards" v:"required#续费卡不能为空" dc:"续费卡列表"`
|
|
DurationYears int `json:"durationYears" dc:"续费时长(年)"`
|
|
Remark string `json:"remark" dc:"续费备注"`
|
|
PackageId string `json:"packageId,omitempty" dc:"套餐编码"`
|
|
Validity int `json:"validity,omitempty" dc:"续费时长(年)"`
|
|
}
|
|
|
|
type CommonRenewRes struct {
|
|
BatchNo string `json:"batchNo" dc:"系统生成批次号"`
|
|
BatchType int `json:"batchType" dc:"批次类型"`
|
|
Total int `json:"total" dc:"提交数量"`
|
|
}
|
|
|
|
type CommonSingleRenewRes struct {
|
|
OrderId string `json:"orderId" dc:"订单ID"`
|
|
OrderSn string `json:"orderSn" dc:"订单号"`
|
|
Iccid string `json:"iccid" dc:"ICCID"`
|
|
PlanName string `json:"planName" dc:"套餐名称"`
|
|
EffectiveType string `json:"effectiveType" dc:"生效类型"`
|
|
EffectiveDate string `json:"effectiveDate" dc:"生效日期"`
|
|
ExpireDate string `json:"expireDate" dc:"到期日期"`
|
|
Amount float64 `json:"amount" dc:"续费金额"`
|
|
Status string `json:"status" dc:"续费状态"`
|
|
ErrorCode string `json:"errorCode,omitempty" dc:"错误编码"`
|
|
ErrorMessage string `json:"errorMessage,omitempty" dc:"错误说明"`
|
|
}
|