You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.7 KiB
66 lines
1.7 KiB
package vo
|
|
|
|
import (
|
|
"time"
|
|
|
|
"laic-backend/common"
|
|
)
|
|
|
|
// ProfileVO 账户资料
|
|
type ProfileVO struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
Phone string `json:"phone"`
|
|
Email string `json:"email"`
|
|
Role string `json:"role"`
|
|
Status int8 `json:"status"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|
|
|
|
// ProfileUpdateReq 更新个人资料
|
|
type ProfileUpdateReq struct {
|
|
Name string `json:"name" validate:"max=32"`
|
|
Email string `json:"email" validate:"omitempty,email"`
|
|
}
|
|
|
|
// TrafficBalanceVO 云媒体流量余额(Redis 权威,字节为基准)
|
|
type TrafficBalanceVO struct {
|
|
BalanceBytes int64 `json:"balanceBytes"`
|
|
BalanceGb float64 `json:"balanceGb"`
|
|
}
|
|
|
|
// UsagePageReq 流量消费流水分页
|
|
type UsagePageReq struct {
|
|
common.Pagination
|
|
SourceType string `json:"sourceType" form:"sourceType"` // live / replay / download
|
|
}
|
|
|
|
// OrderPageReq 流量订单分页
|
|
type OrderPageReq struct {
|
|
common.Pagination
|
|
PayStatus string `json:"payStatus" form:"payStatus"` // unpaid / paid
|
|
}
|
|
|
|
// TrafficOrderCreateReq 创建流量充值订单
|
|
type TrafficOrderCreateReq struct {
|
|
AmountGb int `json:"amountGb" validate:"required,min=1"`
|
|
}
|
|
|
|
// SimCardPageReq SIM 卡分页
|
|
type SimCardPageReq struct {
|
|
common.Pagination
|
|
Status string `json:"status" form:"status"` // active / expired
|
|
}
|
|
|
|
// SimRechargeLogPageReq SIM 卡充值记录分页
|
|
type SimRechargeLogPageReq struct {
|
|
common.Pagination
|
|
SimCardID int64 `json:"simCardId" form:"simCardId"`
|
|
RechargeStatus string `json:"rechargeStatus" form:"rechargeStatus"`
|
|
}
|
|
|
|
// SimRechargeReq SIM 卡充值
|
|
type SimRechargeReq struct {
|
|
AmountGb int `json:"amountGb" validate:"required,min=1"`
|
|
}
|
|
|