set operationId

This commit is contained in:
MaxToby
2021-01-08 22:52:15 +08:00
parent 5dff96f958
commit 9d54da3c67
2 changed files with 13 additions and 31 deletions

View File

@ -6,38 +6,14 @@ info(
type IndexResp struct {
NewList []NewList `json:"NewList"`
RandomList []RandomList `json:"Randomlist"`
BannerList []BannerList `json:"bannerlist"`
NewList
}
type NewList struct {
GoodsList
}
type RandomList struct {
GoodsList
}
type BannerList struct {
Image string `json:"image"`
Title string `json:"title"`
ID int64 `json:"id"`
}
type GoodsList {
GoodsID int64 `json:"goods_id"`
GoodsName string `json:"goods_name"`
CategoryID int64 `json:"category_id"`
Images string `json:"images"`
SpecType string `json:"spec_type"`
DeductStockType string `json:"deduct_stock_type"`
Content string `json:"content"`
SalesInitial int `json:"sales_initial"`
SalesActual int `json:"sales_actual"`
GoodsSort int `json:"goods_sort"`
DeliveryID int64 `json:"delivery_id"`
GoodsStatus string `json:"goods_status"`
IsDelete string `json:"is_delete"`
ImageFrist string `json:"ImageFrist"`
GoodsSales int `json:"goods_sales"`
type NewList struct{
id int `json:"id"`
}
service index-api {
@doc(
summary: "首页列表"