This commit is contained in:
+44
-3
@@ -109,6 +109,7 @@ type ApplicationResponseInfo struct {
|
||||
|
||||
type ApplicationVersion struct {
|
||||
Id int64 `json:"id"`
|
||||
Platform string `json:"platform"`
|
||||
Url string `json:"url"`
|
||||
Version string `json:"version" validate:"required"`
|
||||
MinVersion string `json:"min_version"`
|
||||
@@ -487,9 +488,10 @@ type Currency struct {
|
||||
}
|
||||
|
||||
type CurrencyConfig struct {
|
||||
AccessKey string `json:"access_key"`
|
||||
CurrencyUnit string `json:"currency_unit"`
|
||||
CurrencySymbol string `json:"currency_symbol"`
|
||||
AccessKey string `json:"access_key"`
|
||||
CurrencyUnit string `json:"currency_unit"`
|
||||
CurrencySymbol string `json:"currency_symbol"`
|
||||
FixedRate float64 `json:"fixed_rate"`
|
||||
}
|
||||
|
||||
type DeleteAdsRequest struct {
|
||||
@@ -2614,6 +2616,7 @@ type User struct {
|
||||
GiftAmount int64 `json:"gift_amount"`
|
||||
Telegram int64 `json:"telegram"`
|
||||
ReferCode string `json:"refer_code"`
|
||||
ShareLink string `json:"share_link,omitempty"`
|
||||
RefererId int64 `json:"referer_id"`
|
||||
Enable bool `json:"enable"`
|
||||
IsAdmin bool `json:"is_admin,omitempty"`
|
||||
@@ -2924,3 +2927,41 @@ type GetAppleStatusResponse struct {
|
||||
ExpiresAt int64 `json:"expires_at"`
|
||||
Tier string `json:"tier"`
|
||||
}
|
||||
|
||||
type CreateAppVersionRequest struct {
|
||||
Platform string `json:"platform" validate:"required,oneof=ios macos linux android windows harmony"`
|
||||
Version string `json:"version" validate:"required"`
|
||||
MinVersion string `json:"min_version"`
|
||||
ForceUpdate bool `json:"force_update"`
|
||||
Description string `json:"description"`
|
||||
Url string `json:"url" validate:"required,url"`
|
||||
IsDefault *bool `json:"is_default"`
|
||||
IsInReview *bool `json:"is_in_review"`
|
||||
}
|
||||
|
||||
type UpdateAppVersionRequest struct {
|
||||
Id int64 `json:"id" validate:"required"`
|
||||
Platform string `json:"platform" validate:"required,oneof=ios macos linux android windows harmony"`
|
||||
Version string `json:"version" validate:"required"`
|
||||
MinVersion string `json:"min_version"`
|
||||
ForceUpdate bool `json:"force_update"`
|
||||
Description string `json:"description"`
|
||||
Url string `json:"url" validate:"required,url"`
|
||||
IsDefault *bool `json:"is_default"`
|
||||
IsInReview *bool `json:"is_in_review"`
|
||||
}
|
||||
|
||||
type DeleteAppVersionRequest struct {
|
||||
Id int64 `json:"id" validate:"required"`
|
||||
}
|
||||
|
||||
type GetAppVersionListRequest struct {
|
||||
Page int `form:"page"`
|
||||
Size int `form:"size"`
|
||||
Platform string `form:"platform,optional"`
|
||||
}
|
||||
|
||||
type GetAppVersionListResponse struct {
|
||||
Total int64 `json:"total"`
|
||||
List []*ApplicationVersion `json:"list"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user