实现外部商品调价
This commit is contained in:
@@ -16,6 +16,7 @@ type ListingDTO struct {
|
||||
OwnerPhone string `json:"owner_phone,omitempty"`
|
||||
OwnerNickname string `json:"owner_nickname,omitempty"`
|
||||
SourceChannel string `json:"source_channel,omitempty"`
|
||||
IsExternalUpload bool `json:"is_external_upload"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
GameName string `json:"game_name"`
|
||||
@@ -70,6 +71,23 @@ type AdminPriceAdjustRequest struct {
|
||||
Reason string `json:"reason"`
|
||||
}
|
||||
|
||||
const (
|
||||
ExternalAdjustModeDiscountAmount = "discount_amount"
|
||||
ExternalAdjustModeSaleRatio = "sale_ratio"
|
||||
)
|
||||
|
||||
type AdminExternalListingAdjustRequest struct {
|
||||
HafCoinAmount int64 `json:"haf_coin_amount" binding:"required,min=1"`
|
||||
AWMBullets int `json:"awm_bullets" binding:"min=0,max=1000000"`
|
||||
Level6Helmets int `json:"level6_helmets" binding:"min=0,max=1000000"`
|
||||
Level6Armor int `json:"level6_armor" binding:"min=0,max=1000000"`
|
||||
DepositAmountCent int64 `json:"deposit_amount_cent" binding:"min=0"`
|
||||
AdjustMode string `json:"adjust_mode" binding:"required,oneof=discount_amount sale_ratio"`
|
||||
DiscountAmountCent int64 `json:"discount_amount_cent" binding:"min=0"`
|
||||
SaleRatio float64 `json:"sale_ratio" binding:"min=0"`
|
||||
Reason string `json:"reason" binding:"required,max=255"`
|
||||
}
|
||||
|
||||
type TransferOwnerRequest struct {
|
||||
TargetUserID uint64 `json:"target_user_id" binding:"required"`
|
||||
Reason string `json:"reason"`
|
||||
|
||||
Reference in New Issue
Block a user