Documentation
¶
Index ¶
- type Address
- type Category
- type CategoryCreateParam
- type CategoryDeleteParam
- type CategoryList
- type CategoryOption
- type CategoryQueryParam
- type CategoryUpdateParam
- type DataParam
- type FeedbackParam
- type Goods
- type GoodsCreateParam
- type GoodsDeleteParam
- type GoodsItem
- type GoodsList
- type GoodsListParam
- type GoodsStatusUpdateParam
- type GoodsUpdateParam
- type LoginParam
- type Market
- type MarketCreateParam
- type MarketDeleteParam
- type MarketGoods
- type MarketGoodsQueryParma
- type MarketList
- type MarketQueryParam
- type MarketStatusUpdateParam
- type MarketUpdateParam
- type Order
- type OrderData
- type OrderDeleteParam
- type OrderDetail
- type OrderDetailParam
- type OrderList
- type OrderListParam
- type OrderUpdateParam
- type ShopData
- type TodayDate
- type User
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Id uint64 `gorm:"primaryKey"` // 地址编号 OpenId string `gorm:"open_id"` // 微信用户ID Name string `gorm:"name"` // 收货人姓名 Mobile string `gorm:"mobile"` // 手机号 Province string `gorm:"province"` // 省份 City string `gorm:"city"` // 城市 District string `gorm:"district"` // 区(县) DetailedAddress string `gorm:"detailed_address"` // 详细地址 IsDefault int `gorm:"is_default"` // 是否默认,1-默认,2-非默认 Created string `gorm:"created"` // 创建时间 Updated string `gorm:"updated"` // 更新时间 }
收货地址映射模型
type Category ¶
type Category struct { Id uint64 `gorm:"primaryKey"` // 类目编号 Name string `gorm:"name"` // 类目名称 ParentId uint64 `gorm:"parent_id"` // 父级编号 Level uint `gorm:"level"` // 类目级别 Sort uint `gorm:"sort"` // 类目排序 Created string `gorm:"created"` // 创建时间 Updated string `gorm:"updated"` // 更新时间 Sid uint64 `gorm:"sid"` // 店铺编号 }
商品类目映射模型
type CategoryCreateParam ¶
type CategoryCreateParam struct { Name string `json:"name" binding:"required"` ParentId uint64 `json:"parentId" binding:"required,gt=0"` Level uint `json:"level" binding:"required,gt=0"` Sort uint `json:"sort" binding:"required,gt=0"` Sid uint64 `json:"sid" binding:"required,gt=0"` }
商品类目创建参数模型
type CategoryDeleteParam ¶
type CategoryDeleteParam struct {
Id uint64 `form:"id" binding:"required,gt=0"`
}
商品类目删除参数模型
type CategoryList ¶
type CategoryList struct { Id uint64 `json:"id"` Name string `json:"name"` ParentId uint64 `json:"parentId"` Level uint `json:"level"` Sort uint `json:"sort"` }
商品类目列表传输模型
type CategoryOption ¶
type CategoryOption struct { Value uint64 `json:"value"` Label string `json:"label"` Children []CategoryOption `json:"children"` }
商品类目选项传输模型
type CategoryQueryParam ¶
type CategoryQueryParam struct { Name string `form:"name"` ParentId uint64 `form:"parentId"` Sid uint64 `form:"sid" binding:"required,gt=0"` }
商品类目查询参数模型
type CategoryUpdateParam ¶
type CategoryUpdateParam struct { Id uint64 `json:"id" binding:"required,gt=0"` Name string `json:"name"` Sort uint `json:"sort" binding:"required,gt=0"` }
商品类目更新参数模型
type DataParam ¶
type DataParam struct {
Sid uint64 `form:"sid" binding:"required,gt=0"`
}
统计数据查询参数模型
type FeedbackParam ¶
type FeedbackParam struct {
Content string `json:"content" binding:"required"` // 反馈的内容
}
问题反馈参数模型
type Goods ¶
type Goods struct { Id uint64 `gorm:"id"` // 商品编号 CategoryId uint64 `gorm:"category_id"` // 类目编号 Title string `gorm:"title"` // 商品标题 Name string `gorm:"name"` // 商品名称 Price float64 `gorm:"price"` // 商品价格 Quantity uint `gorm:"quantity"` // 商品数量 ImageUrl string `gorm:"image_url"` // 商品图片 Remark string `gorm:"remark"` // 商品备注 Sales uint `gorm:"sales"` // 商品销量 Status uint `gorm:"status"` // 商品状态,1-出售中,2-仓库中 Created string `gorm:"created"` // 创建时间 Updated string `gorm:"updated"` // 更新时间 Sid uint64 `gorm:"sid"` // 店铺编号 }
商品映射模型
type GoodsCreateParam ¶
type GoodsCreateParam struct { CategoryId uint64 `json:"categoryId" binding:"required,gt=0"` Title string `json:"title" binding:"required"` Name string `json:"name" binding:"required"` Price float64 `json:"price" binding:"required,gt=0"` Quantity uint `json:"quantity" binding:"required,gt=0"` ImageUrl string `json:"imageUrl" binding:"required"` Remark string `json:"remark"` Sid uint64 `json:"sid" binding:"required,gt=0"` }
商品创建参数模型
type GoodsDeleteParam ¶
type GoodsDeleteParam struct {
Id uint64 `form:"id" binding:"required,gt=0"`
}
商品删除参数模型
type GoodsItem ¶
type GoodsItem struct { Id uint64 `json:"id"` Title string `json:"title"` Price float64 `json:"price"` ImageUrl string `json:"imageUrl"` Count int `json:"count"` }
订单商品项传输模型
type GoodsList ¶
type GoodsList struct { Id uint64 `json:"id"` CategoryId uint64 `json:"categoryId"` Title string `json:"title"` Name string `json:"name"` Price float64 `json:"price"` Quantity uint `json:"quantity"` ImageUrl string `json:"imageUrl"` Remark string `json:"remark"` Sales uint `json:"sales"` Status uint `json:"status"` Created string `json:"created"` }
商品列表传输模型
type GoodsListParam ¶
type GoodsListParam struct { Page models.Page Id uint64 `form:"id"` CategoryId uint64 `form:"categoryId"` Title string `form:"title"` Status uint `form:"status"` Sid uint64 `form:"sid" binding:"required,gt=0"` }
商品列表查询参数模型
type GoodsStatusUpdateParam ¶
type GoodsStatusUpdateParam struct { Id uint64 `json:"id" binding:"required,gt=0"` Status uint `json:"status" binding:"required,gt=0"` }
商品状态更新参数模型
type GoodsUpdateParam ¶
type GoodsUpdateParam struct { Id uint64 `json:"id" binding:"required,gt=0"` CategoryId uint64 `json:"categoryId" binding:"required,gt=0"` Title string `json:"title" binding:"required"` Name string `json:"name" binding:"required"` Price float64 `json:"price" binding:"required,gt=0"` Quantity uint `json:"quantity" binding:"required,gt=0"` ImageUrl string `json:"imageUrl" binding:"required"` Remark string `json:"remark"` }
商品更新参数模型
type LoginParam ¶
type LoginParam struct { Username string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` CaptchaId string `json:"captchaId" binding:"required"` CaptchaValue string `json:"captchaValue" binding:"required"` }
用户登录参数模型
type Market ¶
type Market struct { Id uint64 `gorm:"primaryKey"` // 编号 Name string `gorm:"name"` // 名称 Type int `gorm:"type"` // 类型 BannerImage string `json:"banner_image"` // 活动图片 BeginTime string `gorm:"begin_time"` // 开始时间 OverTime string `gorm:"over_time"` // 结束时间 GoodsIds string `gorm:"goods_ids"` // 关联商品 Status int `gorm:"status"` // 状态,1-开启,2-关闭 Created string `gorm:"created"` // 创建时间 Updated string `gorm:"updated"` // 更新时间 Sid uint64 `gorm:"sid"` // 店铺编号 }
营销数据映射模型
type MarketCreateParam ¶
type MarketCreateParam struct { Name string `json:"name" binding:"required"` Type int `json:"type" binding:"required,gt=0"` BannerImage string `json:"bannerImage" binding:"required"` BeginTime string `json:"beginTime" binding:"required"` OverTime string `json:"overTime" binding:"required"` GoodsIds string `json:"goodsIds" binding:"required"` Sid uint64 `json:"sid" binding:"required,gt=0"` }
营销创建参数模型
type MarketDeleteParam ¶
type MarketDeleteParam struct {
Id uint64 `form:"id" binding:"required,gt=0"`
}
营销删除参数模型
type MarketGoods ¶
type MarketGoods struct { Id uint64 `json:"id"` Title string `json:"title"` Price float64 `json:"price"` ImageUrl string `json:"imageUrl"` }
营销商品传输模型
type MarketGoodsQueryParma ¶
type MarketGoodsQueryParma struct {
GoodsIds string `form:"goodsIds"`
}
营销商品传输模型
type MarketList ¶
type MarketList struct { Id uint64 `json:"id"` Name string `json:"name"` Type int `json:"type"` BannerImage string `json:"bannerImage"` BeginTime string `json:"beginTime"` OverTime string `json:"overTime"` GoodsIds string `json:"goodsIds"` Status int `json:"status"` }
营销列表传输模型
type MarketQueryParam ¶
type MarketQueryParam struct { Page models.Page Id uint64 `form:"id"` Type int `form:"type"` Status int `form:"status"` Sid uint64 `form:"sid" binding:"required,gt=0"` }
营销查询参数模型
type MarketStatusUpdateParam ¶
type MarketStatusUpdateParam struct { Id uint64 `json:"id" binding:"required,gt=0"` Status int `json:"status" binding:"required,gt=0"` }
营销状态更新参数模型
type MarketUpdateParam ¶
type MarketUpdateParam struct { Id uint64 `json:"id" binding:"required,gt=0"` Name string `json:"name" binding:"required"` Type int `json:"type" binding:"required"` BannerImage string `json:"bannerImage" binding:"required"` BeginTime string `json:"beginTime" binding:"required"` OverTime string `json:"overTime" binding:"required"` GoodsIds string `json:"goodsIds" binding:"required"` Status int `json:"status" binding:"required,gt=0"` }
营销更新参数模型
type Order ¶
type Order struct { Id uint64 `gorm:"primaryKey"` OpenId string `gorm:"open_id"` GoodsIdsCount string `gorm:"goods_ids_count"` GoodsCount uint `gorm:"goods_count"` TotalPrice float64 `gorm:"total_price"` AddressId uint64 `gorm:"address_id"` Status int `gorm:"status"` // 订单状态,1-待付款,2-已取消,3-已付款,4-配送中,5-已完成 Created string `gorm:"created"` Updated string `gorm:"updated"` Sid uint64 `gorm:"sid"` // 店铺编号 }
数据库,订单数据映射模型
type OrderDeleteParam ¶
type OrderDeleteParam struct {
Id uint64 `form:"id" binding:"required,gt=0"`
}
订单删除参数模型
type OrderDetail ¶
type OrderDetail struct { Id uint64 `json:"id"` Status int `json:"status"` TotalPrice float64 `json:"totalPrice"` GoodsItem []GoodsItem `json:"goodsItem"` Name string `json:"name"` Mobile string `json:"mobile"` Province string `json:"province"` City string `json:"city"` District string `json:"district"` DetailedAddress string `json:"detailedAddress"` Created string `json:"created"` }
订单详情传输模型
type OrderList ¶
type OrderList struct { Id uint64 `json:"id"` Avatar string `json:"avatar"` NickName string `json:"nickName"` TotalPrice float64 `json:"totalPrice"` GoodsCount uint `json:"goodsCount"` Status int `json:"status"` Created string `json:"created"` }
订单列表传输模型
type OrderListParam ¶
type OrderListParam struct { Page models.Page Id uint64 `form:"id"` Status int `form:"status"` Sid uint64 `form:"sid" binding:"required,gt=0"` }
订单列表查询参数模型
type OrderUpdateParam ¶
type OrderUpdateParam struct { Id uint64 `json:"id" binding:"required,gt=0"` Status int `json:"status" binding:"required,gt=0"` }
订单更新参数模型
type TodayDate ¶
type TodayDate struct { PendPay int64 `json:"pendPay"` // 待付款 Payed int64 `json:"payed"` // 已付款 InDelivery int64 `json:"inDelivery"` // 配送中 Canceled int64 `json:"canceled"` // 已取消 Finished int64 `json:"finished"` // 已完成 PayAmount float64 `json:"payAmount"` // 支付金额 }
统计当日数据传输模型
type User ¶
type User struct { Id uint64 `gorm:"primaryKey"` // 用户编号 OpenId string `gorm:"open_id"` // 微信用户唯一标识 Avatar string `gorm:"avatar"` // 用户头像 NickName string `gorm:"nick_Name"` // 用户昵称 Username string `gorm:"username"` // 用户名称 Password string `gorm:"password"` // 用户密码 Status uint `gorm:"status"` // 用户状态 Created string `gorm:"created"` // 创建时间 Updated string `gorm:"updated"` // 更新时间 }
用户数据映射模型
Click to show internal directories.
Click to hide internal directories.