This commit is contained in:
@@ -93,6 +93,23 @@ type ShopSeriesGrantListRequest struct {
|
||||
Status *int `json:"status" query:"status" validate:"omitempty" description:"过滤状态 0=禁用 1=启用"`
|
||||
}
|
||||
|
||||
// ShopSeriesGrantPackageOptionRequest 是授权页面的套餐候选查询参数。
|
||||
type ShopSeriesGrantPackageOptionRequest struct {
|
||||
ShopID uint `json:"shop_id" query:"shop_id" validate:"required,min=1" required:"true" minimum:"1" description:"被授权代理店铺ID"`
|
||||
SeriesID uint `json:"series_id" query:"series_id" validate:"required,min=1" required:"true" minimum:"1" description:"套餐系列ID"`
|
||||
}
|
||||
|
||||
// ShopSeriesGrantPackageOption 是套餐列表字段及目标店铺的当前授权状态。
|
||||
type ShopSeriesGrantPackageOption struct {
|
||||
PackageResponse
|
||||
Authorized bool `json:"authorized" description:"目标店铺是否已启用授权"`
|
||||
}
|
||||
|
||||
// ShopSeriesGrantPackageOptionResult 是授权页面候选套餐列表。
|
||||
type ShopSeriesGrantPackageOptionResult struct {
|
||||
Items []ShopSeriesGrantPackageOption `json:"items" description:"套餐候选项"`
|
||||
}
|
||||
|
||||
// ShopSeriesGrantListItem 系列授权列表项
|
||||
type ShopSeriesGrantListItem struct {
|
||||
ID uint `json:"id" description:"授权记录ID"`
|
||||
|
||||
Reference in New Issue
Block a user