2ed5dfa6a1
iotlcm-app:小程序端 + 用户端服务。 - app/:uni-app 小程序前端(基于 unibest,MIT) - 微信 AppID → YOUR_WX_APPID,uni-app AppID → __UNI__YOURAPPID - 内网后端地址 → admin.iotlcm.example.com - 应用标题与 unibest 模板 README 重写(保留上游致谢与 MIT 声明) - server/:GoFrame 用户端服务(基于 XiuAdmin,Apache-2.0) - module xiuadmin → git.5iot.com/iotlcm-public/iotlcm-app(360 文件) - 支付回调地址 → app.iotlcm.example.com,商户名与应用名泛化 - 真实手机号 → 合法 11 位编造号(保留号段前 3 位 + 后 4 位) - 依赖号码尾部的断言同步更新 - 补 server/LICENSE(Apache-2.0) - 移除内部资产:CI 触发器 - 补根 README,LF 行尾 + .gitattributes 已知:TestSysDept_RefreshDeptAncestors 在源仓同一提交上同样失败,属既有缺陷。
73 lines
4.5 KiB
Go
73 lines
4.5 KiB
Go
package model
|
|
|
|
import (
|
|
"git.5iot.com/iotlcm-public/iotlcm-app/internal/model/request"
|
|
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|
)
|
|
|
|
type AppOrderListParam struct {
|
|
request.PageInfo
|
|
OrderType int `json:"orderType" dc:"订单类型:0全部 1套餐续费 2余额充值"`
|
|
PayStatus *int `json:"payStatus" dc:"支付状态:不传为全部,0未支付,2已支付"`
|
|
Keyword string `json:"keyword" dc:"订单号、支付流水或商品名称"`
|
|
}
|
|
|
|
type AppOrderDetailParam struct {
|
|
OrderSn string `json:"orderSn" v:"required#订单号不能为空" dc:"订单编号"`
|
|
}
|
|
|
|
type AppOrderItemModel struct {
|
|
ItemId int64 `json:"itemId" dc:"订单项ID"`
|
|
ProductName string `json:"productName" dc:"商品名称"`
|
|
ProductSn string `json:"productSn" dc:"商品编码"`
|
|
Price float64 `json:"price" dc:"单价"`
|
|
PriceText string `json:"priceText" dc:"单价文本"`
|
|
Quantity uint `json:"quantity" dc:"数量"`
|
|
OriginPrice float64 `json:"originPrice" dc:"原价"`
|
|
OriginPriceText string `json:"originPriceText" dc:"原价文本"`
|
|
ProductType uint `json:"productType" dc:"商品类型"`
|
|
SkuData string `json:"-" dc:"SKU数据"`
|
|
ExtraSkuData string `json:"-" dc:"扩展数据"`
|
|
ServiceBeginTime *gtime.Time `json:"serviceBeginTime" dc:"服务开始时间"`
|
|
ServiceEndTime *gtime.Time `json:"serviceEndTime" dc:"服务结束时间"`
|
|
}
|
|
|
|
type AppOrderModel struct {
|
|
OrderId int64 `json:"orderId" dc:"订单ID"`
|
|
OrderSn string `json:"orderSn" dc:"订单编号"`
|
|
OrderType int `json:"orderType" dc:"订单类型"`
|
|
OrderTypeText string `json:"orderTypeText" dc:"订单类型文本"`
|
|
OrderStatus int `json:"orderStatus" dc:"订单状态"`
|
|
OrderStatusText string `json:"orderStatusText" dc:"订单状态文本"`
|
|
PayType int `json:"payType" dc:"支付类型"`
|
|
PayTypeText string `json:"payTypeText" dc:"支付类型文本"`
|
|
PayStatus int `json:"payStatus" dc:"支付状态"`
|
|
PayStatusText string `json:"payStatusText" dc:"支付状态文本"`
|
|
PayOrderSn string `json:"payOrderSn" dc:"支付渠道流水号"`
|
|
ReturnStatus int `json:"returnStatus" dc:"退款状态"`
|
|
ReturnStatusText string `json:"returnStatusText" dc:"退款状态文本"`
|
|
PaymentExpireAt *gtime.Time `json:"paymentExpireAt" dc:"支付过期时间"`
|
|
PaymentRemainingSeconds int64 `json:"paymentRemainingSeconds" dc:"支付剩余秒数"`
|
|
PaymentExpired bool `json:"paymentExpired" dc:"支付是否已过期"`
|
|
TotalAmount float64 `json:"totalAmount" dc:"订单总金额"`
|
|
TotalAmountText string `json:"totalAmountText" dc:"订单总金额文本"`
|
|
PaidAmount float64 `json:"paidAmount" dc:"已支付金额"`
|
|
PaidAmountText string `json:"paidAmountText" dc:"已支付金额文本"`
|
|
OnlinePaidAmount float64 `json:"onlinePaidAmount" dc:"线上支付金额"`
|
|
OnlinePaidAmountText string `json:"onlinePaidAmountText" dc:"线上支付金额文本"`
|
|
Balance float64 `json:"balance" dc:"余额抵扣金额"`
|
|
BalanceText string `json:"balanceText" dc:"余额抵扣金额文本"`
|
|
UnpaidAmount float64 `json:"unpaidAmount" dc:"未支付金额"`
|
|
UnpaidAmountText string `json:"unpaidAmountText" dc:"未支付金额文本"`
|
|
UnrefundAmount float64 `json:"unrefundAmount" dc:"退款申请金额"`
|
|
UnrefundAmountText string `json:"unrefundAmountText" dc:"退款申请金额文本"`
|
|
BuyerNote string `json:"buyerNote" dc:"买家备注"`
|
|
Remark string `json:"remark" dc:"系统备注"`
|
|
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
|
PayTime *gtime.Time `json:"payTime" dc:"支付时间"`
|
|
ItemSummary string `json:"itemSummary" dc:"订单商品摘要"`
|
|
ItemCount int `json:"itemCount" dc:"订单项数量"`
|
|
Items []*AppOrderItemModel `json:"items" dc:"订单项"`
|
|
}
|