Documentation ¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- type BaseDataInfo
- type BaseIDInfo
- type BaseListInfo
- type BaseMsgResp
- type BaseUUIDInfo
- type BrandBase
- type BrandCreateReq
- type BrandListInfoResp
- type BrandListReq
- type BrandPageReq
- type BrandResp
- type BrandUpdateReq
- type CategoryBase
- type CategoryCreateReq
- type CategoryInfo
- type CategoryListReq
- type CategoryListResp
- type CategoryResp
- type CategoryUpdateReq
- type CommentInfo
- type CommentInfoResp
- type CommentListInfo
- type CommentListReq
- type CommentListResp
- type IDAtPathReq
- type IDPathReq
- type IDReq
- type IDsReq
- type PageAtPathInfo
- type PageInfo
- type PropertyAndValue
- type PropertyAndValueListResp
- type PropertyBase
- type PropertyInfo
- type PropertyListReq
- type PropertyListResp
- type PropertyPageReq
- type PropertyResp
- type PropertyUpdateReq
- type PropertyValueBase
- type PropertyValueDetailResp
- type PropertyValueInfo
- type PropertyValueListResp
- type PropertyValuePageReq
- type PropertyValueResp
- type PropertyValueUpdateReq
- type SkuBase
- type SkuInfo
- type SkuProperty
- type SpuBase
- type SpuCountResp
- type SpuCreateReq
- type SpuDetailResp
- type SpuInfo
- type SpuListResp
- type SpuPageReq
- type SpuPageResp
- type SpuResp
- type SpuSimpleListResp
- type SpuSimpleResp
- type SpuUpdateReq
- type SpuUpdateStatusReq
- type UUIDReq
- type UUIDsReq
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseDataInfo ¶
type BaseDataInfo struct { // Error code | 错误代码 Code int `json:"code"` // Message | 提示信息 Msg string `json:"msg"` // Data | 数据 Data string `json:"data,omitempty"` }
The basic response with data | 基础带数据信息 swagger:model BaseDataInfo
type BaseIDInfo ¶
type BaseIDInfo struct { // ID Id *uint64 `json:"id,optional"` // Create date | 创建日期 CreatedAt *int64 `json:"createdAt,optional"` // Update date | 更新日期 UpdatedAt *int64 `json:"updatedAt,optional"` }
The base ID response data | 基础ID信息 swagger:model BaseIDInfo
type BaseListInfo ¶
type BaseListInfo struct { // The total number of data | 数据总数 Total uint64 `json:"total"` // Data | 数据 Data string `json:"data,omitempty"` }
The basic response with data | 基础带数据信息 swagger:model BaseListInfo
type BaseMsgResp ¶
type BaseMsgResp struct { // Error code | 错误代码 Code int `json:"code"` // Message | 提示信息 Msg string `json:"msg"` }
The basic response without data | 基础不带数据信息 swagger:model BaseMsgResp
type BaseUUIDInfo ¶
type BaseUUIDInfo struct { // ID Id *string `json:"id,optional"` // Create date | 创建日期 CreatedAt *int64 `json:"createdAt,optional"` // Update date | 更新日期 UpdatedAt *int64 `json:"updatedAt,optional"` }
The base UUID response data | 基础UUID信息 swagger:model BaseUUIDInfo
type BrandListInfoResp ¶
type BrandListInfoResp struct { BaseListInfo Data []BrandResp `json:"data"` }
swagger:model BrandListInfoResp
type BrandListReq ¶
type BrandListReq struct { // Name Name *string `path:"name,optional"` }
swagger:model BrandListReq
type BrandPageReq ¶
type BrandPageReq struct { PageAtPathInfo // Name Name *string `path:"name,optional"` // Status Status *uint32 `path:"status,optional"` // Date CreatedAt []int64 `path:"createdAt,optional"` }
swagger:model BrandPageReq
type BrandResp ¶
type BrandResp struct { BaseIDInfo // Id *uint64 `json:"id"` // Name Name *string `json:"name"` // PicUrl PicUrl *string `json:"picUrl"` // Sort Sort *uint32 `json:"sort"` // Description Description *string `json:"description"` // Status Status *uint32 `json:"status"` }
swagger:model BrandResp
type BrandUpdateReq ¶
type BrandUpdateReq struct { BaseIDInfo BrandBase }
swagger:model BrandUpdateReq
type CategoryBase ¶
type CategoryCreateReq ¶
type CategoryCreateReq struct { CategoryBase Description *string `json:"description,optional"` }
swagger:model CategoryCreateReq
type CategoryInfo ¶
type CategoryInfo struct { BaseIDInfo // Status Status *uint32 `json:"status,optional"` // ParentId ParentId *uint64 `json:"parentId,optional"` // Name Name *string `json:"name,optional"` // PicUrl PicUrl *string `json:"picUrl,optional"` // BigPicUrl BigPicUrl *string `json:"bigPicUrl,optional"` }
The response data of category information | Category信息 swagger:model CategoryInfo
type CategoryListReq ¶
type CategoryListReq struct { // ParentId ParentId *uint64 `path:"parentId,optional"` // Name Name *string `path:"name,optional"` // Status Status *uint32 `path:"status,optional"` }
swagger:model CategoryListReq
type CategoryListResp ¶
type CategoryListResp struct { BaseListInfo Data []CategoryResp `json:"data"` }
swagger:model CategoryListResp
type CategoryResp ¶
type CategoryResp struct { BaseIDInfo // Status Status *uint32 `json:"status,optional"` // ParentId ParentId *uint64 `json:"parentId,optional"` // Name Name *string `json:"name,optional"` // PicUrl PicUrl *string `json:"picUrl,optional"` // BigPicUrl BigPicUrl *string `json:"bigPicUrl,optional"` // Sort Sort *uint32 `json:"sort,optional"` }
swagger:model CategoryResp
type CategoryUpdateReq ¶
type CategoryUpdateReq struct { IDReq CategoryBase Description string `json:"description,optional"` }
swagger:model CategoryUpdateReq
type CommentInfo ¶
type CommentInfo struct { BaseIDInfo // UserId UserId *int64 `json:"userId,optional"` // UserNickname UserNickname *string `json:"userNickname,optional"` // UserAvatar UserAvatar *string `json:"userAvatar,optional"` // Anonymous Anonymous *bool `json:"anonymous,optional"` // OrderId OrderId *int64 `json:"orderId,optional"` // OrderItemId OrderItemId *int64 `json:"orderItemId,optional"` // SpuId SpuId *int64 `json:"spuId,optional"` // SpuName SpuName *string `json:"spuName,optional"` // SkuId SkuId *int64 `json:"skuId,optional"` // SkuPicUrl SkuPicUrl *string `json:"skuPicUrl,optional"` // SkuProperties SkuProperties *string `json:"skuProperties,optional"` // Visible Visible *bool `json:"visible,optional"` // Scores Scores *int32 `json:"scores,optional"` // DescriptionScores DescriptionScores *int32 `json:"descriptionScores,optional"` // BenefitScores BenefitScores *int32 `json:"benefitScores,optional"` // Content Content *string `json:"content,optional"` // PicUrls PicUrls *string `json:"picUrls,optional"` // ReplyStatus ReplyStatus *bool `json:"replyStatus,optional"` // ReplyUserId ReplyUserId *int64 `json:"replyUserId,optional"` // ReplyContent ReplyContent *string `json:"replyContent,optional"` // ReplyTime ReplyTime *int64 `json:"replyTime,optional"` }
The response data of comment information | Comment信息 swagger:model CommentInfo
type CommentInfoResp ¶
type CommentInfoResp struct { BaseDataInfo // Comment information | Comment数据 Data CommentInfo `json:"data"` }
Comment information response | Comment信息返回体 swagger:model CommentInfoResp
type CommentListInfo ¶
type CommentListInfo struct { BaseListInfo // The API list data | Comment列表数据 Data []CommentInfo `json:"data"` }
Comment list data | Comment列表数据 swagger:model CommentListInfo
type CommentListReq ¶
type CommentListReq struct { PageInfo // UserNickname UserNickname *string `json:"userNickname,optional"` // UserAvatar UserAvatar *string `json:"userAvatar,optional"` // SpuName SpuName *string `json:"spuName,optional"` }
Get comment list request params | Comment列表请求参数 swagger:model CommentListReq
type CommentListResp ¶
type CommentListResp struct { BaseDataInfo // Comment list data | Comment列表数据 Data CommentListInfo `json:"data"` }
The response data of comment list | Comment列表数据 swagger:model CommentListResp
type IDAtPathReq ¶
type IDAtPathReq struct { // ID // Required: true Id uint64 `path:"id" validate:"number"` }
Basic ID request | 基础ID参数请求 swagger:model IDAtPathReq
type IDPathReq ¶
type IDPathReq struct { // ID // Required: true Id uint64 `path:"id"` }
Basic ID request | 基础ID地址参数请求 swagger:model IDPathReq
type IDReq ¶
type IDReq struct { // ID // Required: true Id uint64 `json:"id" validate:"number"` }
Basic ID request | 基础ID参数请求 swagger:model IDReq
type IDsReq ¶
type IDsReq struct { // IDs // Required: true Ids []uint64 `json:"ids"` }
Basic IDs request | 基础ID数组参数请求 swagger:model IDsReq
type PageAtPathInfo ¶
type PageAtPathInfo struct { // Page number | 第几页 // required : true // min : 0 Page uint64 `form:"page" validate:"required,number,gt=0"` // Page size | 单页数据行数 // required : true // max : 100000 PageSize uint64 `form:"pageSize" validate:"required,number,lt=100000"` }
The page request parameters | 列表请求参数 swagger:model PageAtPathInfo
type PageInfo ¶
type PageInfo struct { // Page number | 第几页 // required : true // min : 0 Page uint64 `json:"page" validate:"required,number,gt=0"` // Page size | 单页数据行数 // required : true // max : 100000 PageSize uint64 `json:"pageSize" validate:"required,number,lt=100000"` }
The page request parameters | 列表请求参数 swagger:model PageInfo
type PropertyAndValue ¶
type PropertyAndValueListResp ¶
type PropertyAndValueListResp struct {
PropertyAndValue []*PropertyAndValue `json:"propertyAndValue"`
}
swagger:model PropertyAndValueListResp
type PropertyBase ¶
type PropertyInfo ¶
type PropertyInfo struct { BaseIDInfo // Status Status *uint32 `json:"status,optional"` // Name Name *string `json:"name,optional"` // Remark Remark *string `json:"remark,optional"` }
The response data of property information | Property信息 swagger:model PropertyInfo
type PropertyListReq ¶
type PropertyListReq struct { // Name Name *string `json:"name,optional"` }
swagger:model PropertyListReq
type PropertyListResp ¶
type PropertyListResp struct { BaseListInfo Data []PropertyInfo `json:"data"` }
swagger:model PropertyListResp
type PropertyPageReq ¶
type PropertyPageReq struct { PageInfo // Status Status *uint32 `json:"status,optional"` // Name Name *string `json:"name,optional"` CreatedAt []int64 `json:"createdAt,optional"` }
swagger:model PropertyPageReq
type PropertyUpdateReq ¶
type PropertyUpdateReq struct { PropertyBase IDReq }
swagger:model PropertyUpdateReq
type PropertyValueBase ¶
type PropertyValueDetailResp ¶
type PropertyValueDetailResp struct { // PropertyId PropertyId uint64 `json:"propertyId"` // Name PropertyName string `json:"propertyName"` // Remark ValueId uint64 `json:"valueId"` // Name ValueName string `json:"valueName"` }
swagger:model PropertyValueDetailResp
type PropertyValueInfo ¶
type PropertyValueInfo struct { BaseIDInfo // Status Status *uint32 `json:"status,optional"` // PropertyId PropertyId *uint64 `json:"propertyId,optional"` // Name Name *string `json:"name,optional"` // Remark Remark *string `json:"remark,optional"` }
The response data of property value information | PropertyValue信息 swagger:model PropertyValueInfo
type PropertyValueListResp ¶
type PropertyValueListResp struct { BaseListInfo Data []PropertyValueInfo `json:"data"` }
swagger:model PropertyValueListResp
type PropertyValuePageReq ¶
type PropertyValuePageReq struct { PageInfo // PropertyId PropertyId *uint64 `json:"propertyId,optional"` // Name Name *string `json:"name,optional"` // Status Status *uint32 `json:"status,optional"` }
swagger:model PropertyValuePageReq
type PropertyValueResp ¶
type PropertyValueResp struct { PropertyValueBase IDReq CreateTime []*uint64 `json:"createTime"` }
swagger:model PropertyValueResp
type PropertyValueUpdateReq ¶
type PropertyValueUpdateReq struct { PropertyValueBase IDReq }
swagger:model PropertyValueUpdateReq
type SkuBase ¶
type SkuBase struct { // Price Price int32 `json:"price"` // MarketPrice MarketPrice *int32 `json:"marketPrice,optional"` // CostPrice CostPrice *int32 `json:"costPrice,optional"` // BarCode BarCode *string `json:"barCode,optional"` // PicUrl PicUrl string `json:"picUrl"` // Stock Stock int32 `json:"stock"` // Weight Weight *float64 `json:"weight,optional"` // Volume Volume *float64 `json:"volume,optional"` // Properties Properties []SkuProperty `json:"properties,optional"` }
type SkuInfo ¶
type SkuInfo struct { // Price Price *int32 `json:"price,optional"` // MarketPrice MarketPrice *int32 `json:"marketPrice,optional"` // CostPrice CostPrice *int32 `json:"costPrice,optional"` // BarCode BarCode *string `json:"barCode,optional"` // PicUrl PicUrl *string `json:"picUrl,optional"` // Stock Stock *int32 `json:"stock,optional"` // Weight Weight *float64 `json:"weight,optional"` // Volume Volume *float64 `json:"volume,optional"` // Properties Properties []*SkuProperty `json:"properties,optional"` }
swagger:model SkuInfo
type SkuProperty ¶
type SpuBase ¶
type SpuBase struct { // Name Name string `json:"name"` // Keyword Keyword string `json:"keyword"` // Introduction Introduction string `json:"introduction"` // Description Description string `json:"description"` // CategoryId CategoryId uint64 `json:"categoryId"` // BrandId BrandId uint64 `json:"brandId"` // PicUrl PicUrl string `json:"picUrl"` // SliderPicUrls SliderPicUrls []string `json:"sliderPicUrls,optional"` // VideoUrl VideoUrl *string `json:"videoUrl,optional"` // Unit Unit uint32 `json:"unit"` // Sort Sort uint32 `json:"sort"` // SpecType SpecType bool `json:"specType"` // VirtualSalesCount VirtualSalesCount *int32 `json:"virtualSalesCount,optional"` }
type SpuCountResp ¶
swagger:model SpuCountResp
type SpuCreateReq ¶
swagger:model SpuCreateReq
type SpuDetailResp ¶
type SpuDetailResp struct { IDReq SpuInfo // // SalesCount // SalesCount int32 `json:"salesCount"` // // BrowseCount // BrowseCount int32 `json:"browseCount"` // // Status // Status *uint32 `json:"status,optional"` // skus Skus []SkuInfo `json:"skus"` }
swagger:model SpuDetailResp
type SpuInfo ¶
type SpuInfo struct { BaseIDInfo // Status Status *uint32 `json:"status,optional"` // Sort Sort *uint32 `json:"sort,optional"` // Name Name *string `json:"name,optional"` // Keyword Keyword *string `json:"keyword,optional"` // Introduction Introduction *string `json:"introduction,optional"` // Description Description *string `json:"description,optional"` // BarCode BarCode *string `json:"barCode,optional"` // CategoryId CategoryId *uint64 `json:"categoryId,optional"` // BrandId BrandId *uint64 `json:"brandId,optional"` // PicUrl PicUrl *string `json:"picUrl,optional"` // SliderPicUrls SliderPicUrls *string `json:"sliderPicUrls,optional"` // VideoUrl VideoUrl *string `json:"videoUrl,optional"` // Unit Unit *uint32 `json:"unit,optional"` // SpecType SpecType *bool `json:"specType,optional"` // Price Price *int32 `json:"price,optional"` // MarketPrice MarketPrice *int32 `json:"marketPrice,optional"` // CostPrice CostPrice *int32 `json:"costPrice,optional"` // Stock Stock *int32 `json:"stock,optional"` // SalesCount SalesCount *int32 `json:"salesCount,optional"` // VirtualSalesCount VirtualSalesCount *int32 `json:"virtualSalesCount,optional"` // BrowseCount BrowseCount *int32 `json:"browseCount,optional"` }
The response data of spu information | Spu信息 swagger:model SpuInfo
type SpuListResp ¶
type SpuListResp struct { BaseListInfo Data []SpuDetailResp `json:"data"` }
swagger:model SpuListResp
type SpuPageReq ¶
type SpuPageReq struct { PageInfo // Name Name *string `json:"name,optional"` // TabType TabType *int32 `json:"tabType,optional"` // CategoryId CategoryId *uint64 `json:"categoryId,optional"` // CreateTime CreateTime []*uint64 `json:"createTime,optional"` }
swagger:model SpuPageReq
type SpuPageResp ¶
type SpuPageResp struct { BaseListInfo Data []SpuResp `json:"data"` }
swagger:model SpuPageResp
type SpuResp ¶
type SpuResp struct { SpuInfo IDReq // Price Price *int32 `json:"price,optional"` // MarketPrice MarketPrice *int32 `json:"marketPrice,optional"` // CostPrice CostPrice *int32 `json:"costPrice,optional"` // Stock Stock *int32 `json:"stock,optional"` // CreateTime CreateTime *uint64 `json:"createTime,optional"` // Status Status *uint32 `json:"status,optional"` }
swagger:model SpuResp
type SpuSimpleListResp ¶
type SpuSimpleListResp struct { BaseListInfo Data []SpuSimpleResp `json:"data"` }
swagger:model SpuSimpleListResp
type SpuSimpleResp ¶
type SpuSimpleResp struct { IDReq // Name Name *string `json:"name,optional"` // Price Price *int32 `json:"price,optional"` // MarketPrice MarketPrice *int32 `json:"marketPrice,optional"` // CostPrice CostPrice *int32 `json:"costPrice,optional"` // Stock Stock *int32 `json:"stock,optional"` // SalesCount SalesCount *int32 `json:"salesCount,optional"` // VirtualSalesCount VirtualSalesCount *int32 `json:"virtualSalesCount,optional"` // BrowseCount BrowseCount *int32 `json:"browseCount,optional"` }
swagger:model SpuSimpleResp
type SpuUpdateReq ¶
type SpuUpdateReq struct { IDReq SpuBase // SalesCount SalesCount *int32 `json:"salesCount,optional"` // BrowseCount BrowseCount *int32 `json:"browseCount,optional"` // Status Status *uint32 `json:"status,optional"` // skus Skus []SkuBase `json:"skus"` }
swagger:model SpuUpdateReq
type SpuUpdateStatusReq ¶
swagger:model SpuUpdateStatusReq
type UUIDReq ¶
type UUIDReq struct { // ID // Required: true // Max length: 36 Id string `json:"id" validate:"len=36"` }
Basic UUID request | 基础UUID参数请求 swagger:model UUIDReq