65 lines
3.3 KiB
Go
65 lines
3.3 KiB
Go
package request
|
|
|
|
type QueryShopRequest struct {
|
|
Keyword string `form:"keyword"`
|
|
ShopType *int8 `form:"shop_type"`
|
|
Status *int8 `form:"status"`
|
|
TenantID string `form:"tenant_id"`
|
|
Page int `form:"page,default=1"`
|
|
PageSize int `form:"page_size,default=10"`
|
|
}
|
|
|
|
type CreateShopRequest struct {
|
|
MallID int64 `form:"mall_id"`
|
|
ShopNike string `form:"shop_nike" binding:"max=255"`
|
|
ShopType int8 `form:"shop_type" binding:"omitempty,oneof=1 2 5"`
|
|
ShopGroup string `form:"shop_group" binding:"max=255"`
|
|
ShopName string `form:"shop_name" binding:"required,max=255"`
|
|
ShopAliasName string `form:"shop_alias_name" binding:"max=255"`
|
|
ShopAuthorize string `form:"shop_authorize" binding:"max=255"`
|
|
ExpirationTime int64 `form:"expiration_time"`
|
|
ShopKey string `form:"shop_key" binding:"max=255"`
|
|
Token string `form:"token" binding:"max=255"`
|
|
RefreshToken string `form:"refresh_token" binding:"max=255"`
|
|
TenantID string `form:"tenant_id" binding:"max=20"`
|
|
UserID int64 `form:"user_id"`
|
|
Account string `form:"account" binding:"max=255"`
|
|
Password string `form:"password" binding:"max=255"`
|
|
IsSynOrder *int8 `form:"is_syn_order" binding:"omitempty,oneof=0 1"`
|
|
SkuSpec string `form:"sku_spec" binding:"max=255"`
|
|
ShopExpirationTime int64 `form:"shop_expiration_time"`
|
|
IsExpiration *int8 `form:"is_expiration" binding:"omitempty,oneof=0 1 2"`
|
|
PublishType *int8 `form:"publish_type" binding:"omitempty,oneof=0 1"`
|
|
Deregulation *int8 `form:"deregulation" binding:"omitempty,oneof=1 2"`
|
|
}
|
|
|
|
type UpdateShopRequest struct {
|
|
ID int64 `form:"id" binding:"required"`
|
|
MallID *int64 `form:"mall_id"`
|
|
ShopNike string `form:"shop_nike" binding:"omitempty,max=255"`
|
|
ShopType *int8 `form:"shop_type" binding:"omitempty,oneof=1 2 5"`
|
|
ShopGroup string `form:"shop_group" binding:"omitempty,max=255"`
|
|
ShopName string `form:"shop_name" binding:"omitempty,max=255"`
|
|
ShopAliasName string `form:"shop_alias_name" binding:"omitempty,max=255"`
|
|
ShopAuthorize string `form:"shop_authorize" binding:"omitempty,max=255"`
|
|
ExpirationTime *int64 `form:"expiration_time"`
|
|
ShopKey string `form:"shop_key" binding:"omitempty,max=255"`
|
|
Token string `form:"token" binding:"omitempty,max=255"`
|
|
RefreshToken string `form:"refresh_token" binding:"omitempty,max=255"`
|
|
Status *int8 `form:"status" binding:"omitempty,oneof=0 1"`
|
|
TenantID string `form:"tenant_id" binding:"omitempty,max=20"`
|
|
UserID *int64 `form:"user_id"`
|
|
Account string `form:"account" binding:"omitempty,max=255"`
|
|
Password string `form:"password" binding:"omitempty,max=255"`
|
|
IsSynOrder *int8 `form:"is_syn_order" binding:"omitempty,oneof=0 1"`
|
|
SkuSpec string `form:"sku_spec" binding:"omitempty,max=255"`
|
|
ShopExpirationTime *int64 `form:"shop_expiration_time"`
|
|
IsExpiration *int8 `form:"is_expiration" binding:"omitempty,oneof=0 1 2"`
|
|
PublishType *int8 `form:"publish_type" binding:"omitempty,oneof=0 1"`
|
|
Deregulation *int8 `form:"deregulation" binding:"omitempty,oneof=1 2"`
|
|
}
|
|
|
|
type DeleteShopRequest struct {
|
|
ID int64 `form:"id" binding:"required"`
|
|
}
|