chore: stabilize lint and verify builds
This commit is contained in:
@@ -674,6 +674,54 @@ type SuperOrderReconcileForm struct {
|
||||
Note string `json:"note"`
|
||||
}
|
||||
|
||||
// RechargeCodeActivateForm 超管批量激活充值码表单。
|
||||
type RechargeCodeActivateForm struct {
|
||||
// Amount 充值码面额(单位元,必填且需大于 0)。
|
||||
Amount float64 `json:"amount" validate:"required,gt=0"`
|
||||
// Quantity 生成数量(可选,默认 1,单次上限 500)。
|
||||
Quantity int `json:"quantity" validate:"omitempty,gt=0"`
|
||||
// Remark 激活备注(可选,用于审计记录)。
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
// RechargeCodeItem 充值码明细。
|
||||
type RechargeCodeItem struct {
|
||||
// ID 充值码ID。
|
||||
ID int64 `json:"id"`
|
||||
// Code 充值码字符串(兑换时输入)。
|
||||
Code string `json:"code"`
|
||||
// Amount 充值码面额(单位元)。
|
||||
Amount float64 `json:"amount"`
|
||||
// Status 充值码状态(active 已激活 / redeemed 已兑换)。
|
||||
Status string `json:"status"`
|
||||
// ActivatedAt 激活时间(RFC3339)。
|
||||
ActivatedAt string `json:"activated_at"`
|
||||
// ActivatedBy 激活操作者用户ID。
|
||||
ActivatedBy int64 `json:"activated_by"`
|
||||
// RedeemedAt 兑换时间(RFC3339,未兑换为空)。
|
||||
RedeemedAt string `json:"redeemed_at"`
|
||||
// RedeemedBy 兑换用户ID(未兑换为 0)。
|
||||
RedeemedBy int64 `json:"redeemed_by"`
|
||||
// RedeemedOrderID 兑换产生的充值订单ID(未兑换为 0)。
|
||||
RedeemedOrderID int64 `json:"redeemed_order_id"`
|
||||
// Remark 激活备注(可选)。
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
// RechargeCodeActivateResponse 充值码激活返回结果。
|
||||
type RechargeCodeActivateResponse struct {
|
||||
// Items 本次生成的充值码列表。
|
||||
Items []RechargeCodeItem `json:"items"`
|
||||
}
|
||||
|
||||
// SuperWalletCreditForm 超管为用户充值表单。
|
||||
type SuperWalletCreditForm struct {
|
||||
// Amount 充值金额(单位元,必填且需大于 0)。
|
||||
Amount float64 `json:"amount" validate:"required,gt=0"`
|
||||
// Remark 充值备注(可选,用于审计记录)。
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
// AdminContentItem for super admin view
|
||||
type AdminContentItem struct {
|
||||
// Content 内容摘要信息。
|
||||
|
||||
Reference in New Issue
Block a user