Documentation ¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- type Banner
- type CartListRequest
- type CartListResponse
- type CartProduct
- type CategoryListRequest
- type CategoryListResponse
- type Comment
- type FlashSaleResponse
- type HomeBannerResponse
- type Image
- type LoginReq
- type LoginResp
- type Order
- type OrderAddReq
- type OrderAddResp
- type OrderInfoReq
- type OrderInfoResp
- type OrderListRequest
- type OrderListResponse
- type Orders
- type Product
- type ProductCommentRequest
- type ProductCommentResponse
- type ProductDetailRequest
- type ProductDetailResponse
- type RecommendRequest
- type RecommendResponse
- type User
- type UserCollectionAddReq
- type UserCollectionAddRes
- type UserCollectionDelReq
- type UserCollectionDelRes
- type UserCollectionListReq
- type UserCollectionListRes
- type UserInfo
- type UserInfoReq
- type UserInfoResp
- type UserReceiveAddress
- type UserReceiveAddressAddReq
- type UserReceiveAddressAddRes
- type UserReceiveAddressDelReq
- type UserReceiveAddressDelRes
- type UserReceiveAddressEditReq
- type UserReceiveAddressEditRes
- type UserReceiveAddressListReq
- type UserReceiveAddressListRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CartListRequest ¶
type CartListRequest struct {
UID int64 `form:"uid"`
}
type CartListResponse ¶
type CartListResponse struct {
Products []*CartProduct `json:"products"`
}
type CartProduct ¶
type CategoryListRequest ¶
type CategoryListResponse ¶
type Comment ¶
type Comment struct { ID int64 `json:"id"` // 评论ID ProductID int64 `json:"product_id"` // 商品ID Content string `json:"content"` // 评论内容 Images []*Image `json:"images"` // 评论图片 User *User `json:"user"` // 用户信息 CreateTime int64 `json:"create_time"` // 评论时间 UpdateTime int64 `json:"update_time"` // 更新时间 }
type FlashSaleResponse ¶
type HomeBannerResponse ¶
type HomeBannerResponse struct {
Banners []*Banner `json:"banners"`
}
type Order ¶
type Order struct { OrderID string `json:"order_id"` Status int32 `json:"status"` Quantity int64 `json:"quantity"` Payment float64 `json:"payment"` TotalPrice float64 `json:"total_price"` CreateTime int64 `json:"create_time"` ProductID int64 `json:"product_id"` ProductName string `json:"product_name"` ProductImage string `json:"product_image"` ProductDescription string `json:"product_description"` }
type OrderAddReq ¶
type OrderAddResp ¶
type OrderAddResp struct {
Id string `json:"id"` //订单id
}
type OrderInfoReq ¶
type OrderInfoReq struct { }
type OrderInfoResp ¶
type OrderInfoResp struct {
OrderInfo Orders `json:"orderInfo"`
}
type OrderListRequest ¶
type OrderListResponse ¶
type Orders ¶
type Orders struct { Id string `json:"id"` //订单id Userid uint64 `json:"userid"` //用户id Shoppingid int64 `json:"shoppingid"` //收货信息表id Payment float64 `json:"payment"` //实际付款金额,单位是元,保留两位小数 Paymenttype int8 `json:"paymenttype"` //支付类型,1-在线支付 Postage int `json:"postage"` //运费,单位是元 Status int16 `json:"status"` //订单状态:0-已取消-10-未付款,20-已付款,30-待发货 40-待收货,50-交易成功,60-交易关闭 CreateTime int64 `json:"create_time"` //创建时间 UpdateTime int64 `json:"update_time"` //更新时间 }
type Product ¶
type Product struct { ID int64 `json:"id"` // 商品ID Name string `json:"name"` // 产品名称 Images []string `json:"images"` // 图片 Description string `json:"description"` // 商品描述 Price float64 `json:"price"` // 商品价格 Stock int64 `json:"stock"` // 库存 Category string `json:"category"` // 分类 Status int64 `json:"status"` // 状态:1-正常,2-下架 CreateTime int64 `json:"create_time"` // 创建时间 UpdateTime int64 `json:"update_time"` // 更新时间 }
type ProductCommentRequest ¶
type ProductCommentResponse ¶
type ProductDetailRequest ¶
type ProductDetailRequest struct {
ProductID int64 `form:"product_id"`
}
type ProductDetailResponse ¶
type RecommendRequest ¶
type RecommendResponse ¶
type UserCollectionAddReq ¶
type UserCollectionAddReq struct {
ProductId int64 `json:"product_id"` // 商品id
}
type UserCollectionAddRes ¶
type UserCollectionAddRes struct { }
type UserCollectionDelReq ¶
type UserCollectionDelReq struct {
Id int64 `json:"id"` // 收藏Id
}
type UserCollectionDelRes ¶
type UserCollectionDelRes struct { }
type UserCollectionListReq ¶
type UserCollectionListReq struct { }
type UserCollectionListRes ¶
type UserCollectionListRes struct {
ProductId []int64 `json:"product_id"` // 商品id
}
type UserInfo ¶
type UserInfo struct { Id uint64 `json:"id"` //用户ID Username string `json:"username"` //用户名 Password string `json:"password"` //用户密码,MD5加密 Phone string `json:"phone"` //手机号 Question string `json:"question"` //找回密码问题 Answer string `json:"answer"` //找回密码答案 CreateTime int64 `json:"create_time"` //创建时间 UpdateTime int64 `json:"update_time"` //更新时间 }
type UserInfoReq ¶
type UserInfoReq struct { }
type UserInfoResp ¶
type UserInfoResp struct {
UserInfo UserInfo `json:"userInfo"`
}
type UserReceiveAddress ¶
type UserReceiveAddress struct { Id int64 `json:"id"` Uid uint64 `json:"uid"` //用户id Name string `json:"name"` //收货人名称 Phone string `json:"phone"` //手机号 IsDefault int32 `json:"is_default"` //是否为默认地址 PostCode string `json:"post_code"` //邮政编码 Province string `json:"province"` //省份/直辖市 City string `json:"city"` //城市 Region string `json:"region"` //区 DetailAddress string `json:"detail_address"` //详细地址(街道) IsDelete int32 `json:"is_delete"` //是否删除 CreateTime int64 `json:"create_time"` //数据创建时间[禁止在代码中赋值] UpdateTime int64 `json:"update_time"` //数据更新时间[禁止在代码中赋值] }
type UserReceiveAddressAddReq ¶
type UserReceiveAddressAddReq struct { Name string `json:"name"` //收货人名称 Phone string `json:"phone"` //手机号 IsDefault int32 `json:"is_default"` //是否为默认地址 PostCode string `json:"post_code"` //邮政编码 Province string `json:"province"` //省份/直辖市 City string `json:"city"` //城市 Region string `json:"region"` //区 DetailAddress string `json:"detail_address"` //详细地址(街道) }
type UserReceiveAddressAddRes ¶
type UserReceiveAddressAddRes struct { }
type UserReceiveAddressDelReq ¶
type UserReceiveAddressDelReq struct {
Id int64 `json:"id"`
}
type UserReceiveAddressDelRes ¶
type UserReceiveAddressDelRes struct { }
type UserReceiveAddressEditReq ¶
type UserReceiveAddressEditReq struct { Id int64 `json:"id"` Name string `json:"name"` //收货人名称 Phone string `json:"phone"` //手机号 IsDefault int32 `json:"is_default"` //是否为默认地址 PostCode string `json:"post_code"` //邮政编码 Province string `json:"province"` //省份/直辖市 City string `json:"city"` //城市 Region string `json:"region"` //区 DetailAddress string `json:"detail_address"` //详细地址(街道) }
type UserReceiveAddressEditRes ¶
type UserReceiveAddressEditRes struct { }
type UserReceiveAddressListReq ¶
type UserReceiveAddressListReq struct { }
type UserReceiveAddressListRes ¶
type UserReceiveAddressListRes struct {
List []UserReceiveAddress `json:"list"`
}
Click to show internal directories.
Click to hide internal directories.