Files
web_huangguo_server/web/service/srv_viporder/define.go
T
rootandClaude Opus 5.5 7974a42301 Initial commit
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-23 11:07:42 +08:00

45 lines
1.5 KiB
Go

package srv_viporder
import (
"time"
"videoweb/pub/models/vipordermod"
"videoweb/pub/pubdef"
)
type VipOrderReq struct {
pubdef.Page
UserId *int64 `json:"userId"` // 用户ID
OrderType *vipordermod.OrderType `json:"orderType"` // 订单类型:1会员 2金币
Status *pubdef.VipOrderStatus `json:"status"` // 订单状态
TradeNo *string `json:"tradeNo"` // 订单号
DistrictCode string `json:"districtCode"` // 渠道码
StartTime *string `json:"startTime"` // 创建时间-开始
EndTime *string `json:"endTime"` // 创建时间-结束
}
type VipOrderResp struct {
Total int64 `json:"total"`
List vipordermod.VipOrderList `json:"list"`
}
type SyncDistrictCodeReq struct {
MaxSize int64 `json:"maxSize"` // 本次最多扫描的空渠道码订单数,默认500,最大2000
}
type SyncDistrictCodeResp struct {
Scanned int64 `json:"scanned"` // 本次扫描的空渠道码订单数
OrderUpdated int64 `json:"orderUpdated"` // 成功回填的订单数
UserUpdated int64 `json:"userUpdated"` // 成功回填的用户数
UserSkipped int64 `json:"userSkipped"` // 用户本身没有渠道码
HasMore bool `json:"hasMore"` // 是否还有未处理的历史订单
}
type timeLayout = string
const layout timeLayout = "2006-01-02 15:04:05"
func parseTime(s string) (time.Time, bool) {
t, err := time.ParseInLocation(layout, s, time.Local)
return t, err == nil
}