feat: 接入旧站管理端并完整迁移后台能力
This commit is contained in:
@@ -16,10 +16,17 @@ type UserDTO struct {
|
||||
DepositFreeUsedCent int64 `json:"deposit_free_used_cent"`
|
||||
DepositFreeRemainingCent int64 `json:"deposit_free_remaining_cent"`
|
||||
RenterGrowthPoints int64 `json:"renter_growth_points"`
|
||||
PointsAvailable int64 `json:"points_available"`
|
||||
RenterGrowthLevel string `json:"renter_growth_level"`
|
||||
RenterGrowthLevelName string `json:"renter_growth_level_name"`
|
||||
RenterGrowthLevelOverride string `json:"renter_growth_level_override"`
|
||||
RenterGrowthLevelManual bool `json:"renter_growth_level_manual"`
|
||||
AvailableBalanceCent int64 `json:"available_balance_cent"`
|
||||
FrozenBalanceCent int64 `json:"frozen_balance_cent"`
|
||||
QualityOwnerStatus string `json:"quality_owner_status"`
|
||||
QualityOwnerDepositCent int64 `json:"quality_owner_deposit_cent"`
|
||||
QualityOwnerDepositSource string `json:"quality_owner_deposit_source"`
|
||||
QualityOwnerActivatedAt *time.Time `json:"quality_owner_activated_at"`
|
||||
Status string `json:"status"`
|
||||
OrderCount int64 `json:"order_count"`
|
||||
ListingCount int64 `json:"listing_count"`
|
||||
@@ -51,6 +58,11 @@ type GrowthPointsAdjustRequest struct {
|
||||
Reason string `json:"reason" binding:"required"`
|
||||
}
|
||||
|
||||
type GrowthLevelAdjustRequest struct {
|
||||
TargetLevel string `json:"target_level"`
|
||||
Reason string `json:"reason" binding:"required"`
|
||||
}
|
||||
|
||||
// WalletAdjustRequest 后台人工调整用户可用余额。
|
||||
// Direction: in=加款 out=扣款;仅操作 available,不改 frozen。
|
||||
type WalletAdjustRequest struct {
|
||||
@@ -65,6 +77,13 @@ type ListQuery struct {
|
||||
Keyword string
|
||||
Status string
|
||||
HasDepositFreeQuota bool
|
||||
QualityOwnerOnly bool
|
||||
// DepositFreeQuota: has=有免押额度, none=无免押额度, 空=全部。
|
||||
DepositFreeQuota string
|
||||
// OwnerType: quality=优质号主, normal=普通用户, 空=全部。
|
||||
OwnerType string
|
||||
// GrowthLevel: 成长等级 code(normal/platinum/diamond/peak),空=全部。
|
||||
GrowthLevel string
|
||||
}
|
||||
|
||||
type PaginatedResult struct {
|
||||
|
||||
Reference in New Issue
Block a user