Documentation ¶
Overview ¶
*
- Copyright 2015 @ 56x.net.
- name : message_result
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : login_result.go
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : member
- author : jarryliu
- date : 2015-10-29 15:06
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : MemberSummary
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : order
- author : jarryliu
- date : 2016-07-08 16:46
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : promotion
- author : jarryliu
- date : 2016-06-24 17:52
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : types
- author : jarryliu
- date : 2015-10-29 15:33
- description :
- history :
Index ¶
- type GoodsComplex
- type InvitationMember
- type ListOnlineShop
- type LoginMember
- type MemberLoginResult
- type MemberSummary
- type MessageResult
- type OrderItem
- type PagedGoodsFav
- type PagedMemberAfterSalesOrder
- type PagedMemberSubOrder
- type PagedShopFav
- type PagedVendorAfterSalesOrder
- type PagedVendorOrder
- type RankMember
- type SimpleCoupon
- type SimpleMember
- type SiteMessage
- type TextObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoodsComplex ¶
type GoodsComplex struct { GoodsId int `db:"id"` ItemId int `db:"item_id"` MchId int `db:"mch_id"` MchName string `db:"mch_name"` }
商品查询复合信息
type InvitationMember ¶
type InvitationMember struct { // 会员编号 MemberId int32 // 用户名 User string // 等级 Level int32 // 头像 Avatar string // 昵称 NickName string // 电话 Phone string // 即时通讯 Im string // 邀请人数 InvitationNum int }
邀请会员数据
type ListOnlineShop ¶
type ListOnlineShop struct { Id int64 `db:"id"` Name string `db:"shop_name"` Alias string `db:"alias"` Host string `db:"host"` Logo string `db:"logo"` CreateTime int64 `db:"sp.create_time" json:"-"` }
分类
Category struct { Id int32 Name string Icon string Url string Level int Child []Category }
type LoginMember ¶
LoginMember 登录的会员信息
type MemberLoginResult ¶
type MemberLoginResult struct { ErrCode int ErrMsg string Member *LoginMember }
会员登录返回结果
type MemberSummary ¶
type MemberSummary struct { MemberId int32 `db:"id" auto:"yes" pk:"yes"` // 用户名 Usr string `db:"user"` // 昵称 Name string `db:"name"` // 头像 Avatar string `db:"avatar"` // 经验值 Exp int32 `db:"exp"` // 等级 Level int32 `db:"level"` // 等级名称 LevelName string `db:"level_name"` // 等级标识 LevelSign string `db:"program_sign"` // 等级是否为正式会员 LevelOfficial int `db:"is_official"` // 邀请码 InviteCode string `db:"invite_code"` // 积分 Integral int64 `db:"integral"` // 账户余额 Balance int64 `db:"balance"` WalletBalance int64 `db:"wallet_balance"` GrowBalance int64 `db:"grow_balance"` GrowAmount int64 `db:"grow_amount"` // 理财总投资金额,不含收益 GrowEarnings int64 `db:"grow_earnings"` // 当前收益金额 GrowTotalEarnings int64 `db:"grow_total_earnings"` // 累积收益金额 UpdateTime int64 `db:"update_time"` }
会员概览信息
type MessageResult ¶
type MessageResult struct { Result bool `json:"result"` Message string `json:"message"` Tag int `json:"tag"` }
操作消息结果
type OrderItem ¶
type OrderItem struct { // 编号 Id int // 订单编号 OrderId int64 // 商品快照编号 SnapshotId int // Sku编号 SkuId int // 商品编号 ItemId int32 // 商品标题 ItemTitle string // 商品图片 Image string // 商品单价 Price int64 // 商品实际单价 FinalPrice int64 // 商品数量 Quantity int // 退货数量 ReturnQuantity int // 商品总金额 Amount int64 // 商品实际总金额 FinalAmount int64 // 是否已发货 IsShipped int }
订单商品项
type PagedGoodsFav ¶
type PagedGoodsFav struct { Id int32 `db:"id"` SkuId int32 `db:"sku_id"` GoodsName string `db:"goods_name"` Image string `db:"image"` OnShelves int `db:"on_shelves"` StockNum int `db:"stock_num"` SalePrice string `db:"sale_price"` UpdateTime int64 `db:"update_time"` }
商品收藏
type PagedMemberAfterSalesOrder ¶
type PagedMemberAfterSalesOrder struct { // 编号 Id int32 `db:"id" pk:"yes" auto:"yes"` // 订单编号 OrderNo string `db:"order_id"` // 运营商编号 VendorId int32 `db:"vendor_id"` // 运营商名称 VendorName string `db:"vendor_name"` // 类型,退货、换货、维修 Type int `db:"type"` SkuId int32 GoodsTitle string GoodsImage string // 退货的商品项编号 SnapshotId int32 `db:"snap_id"` // 商品数量 Quantity int `db:"quantity"` // 售后单状态 State int `db:"state"` // 提交时间 CreateTime int64 `db:"create_time"` // 更新时间 UpdateTime int64 `db:"update_time"` // 订单状态 StateText string `db:"-"` }
type PagedMemberSubOrder ¶
type PagedMemberSubOrder struct { Id int64 OrderNo string ParentNo string VendorId int64 ShopId int64 ShopName string ItemAmount int64 DiscountAmount int64 ExpressFee int64 PackageFee int64 IsPaid bool FinalFee int64 State int StateText string CreateTime int64 Items []*OrderItem }
o.order_no,po.order_no as parent_no, o.vendor_id,o.shop_id,s.shop_name, o.item_amount,o.discount_amount,o.express_fee, o.package_fee,o.final_fee,o.status
会员分页子订单
type PagedShopFav ¶
type PagedShopFav struct { Id int32 `db:"id"` ShopId int32 `db:"shop_id"` ShopName string `db:"shop_name"` MchId int32 `db:"mch_id"` Logo string `db:"logo"` UpdateTime int64 `db:"update_time"` }
店铺收藏
type PagedVendorAfterSalesOrder ¶
type PagedVendorAfterSalesOrder struct { // 编号 Id int32 `db:"id" pk:"yes" auto:"yes"` // 订单编号 OrderNo string `db:"order_id"` // 会员编号 BuyerId int32 `db:"vendor_id"` // 会员名称 BuyerName string `db:"buyer_name"` // 类型,退货、换货、维修 Type int `db:"type"` SkuId int32 GoodsTitle string GoodsImage string // 退货的商品项编号 SnapshotId int32 `db:"snap_id"` // 商品数量 Quantity int `db:"quantity"` // 售后单状态 State int `db:"state"` // 提交时间 CreateTime int64 `db:"create_time"` // 更新时间 UpdateTime int64 `db:"update_time"` // 订单状态 StateText string `db:"-"` }
分页商户售后单
type PagedVendorOrder ¶
type PagedVendorOrder struct { Id int64 OrderNo string ParentNo string BuyerId int BuyerName string // 订单详情,主要描述订单的内容 Details string //VendorId int //ShopId int //ShopName string ItemAmount int64 DiscountAmount int64 ExpressFee int64 PackageFee int64 IsPaid bool FinalAmount int64 State int StateText string CreateTime int64 Items []*OrderItem Data map[string]string }
type RankMember ¶
type RankMember struct { Id int64 Name string Usr string RankNum int InviNum int // 邀请数量 TotalNum int // 总数 RegTime int }
会员排名信息
type SimpleCoupon ¶
type SimpleCoupon struct { // 优惠券编号 Id int `db:"id"` Num int `db:"num"` // 优惠券标题 Title string `db:"title"` //优惠码 Code string `db:"code"` //优惠金额 Fee int `db:"fee"` //订单折扣(不打折为100) Discount int `db:"discount"` //是否使用 IsUsed int `db:"is_used"` //结束日期 OverTime int64 `db:"over_time"` }
member_rep LINE:562
type SimpleMember ¶
type SiteMessage ¶
type SiteMessage struct { // 编号 Id int32 `db:"id" pk:"yes" auto:"yes"` // 消息类型 Type int `db:"msg_type"` // 消息用途 UseFor int `db:"use_for"` SenderUserId int SenderName string // 是否只能阅读 Readonly int `db:"read_only"` // 创建时间 CreateTime int64 `db:"create_time"` // 数据 Data interface{} // 接收者编号 ToId int32 `db:"to_id"` // 接收者角色 ToRole int `db:"to_role"` // 是否阅读 HasRead int `db:"has_read"` // 阅读时间 ReadTime int64 `db:"read_time"` }
站内信
type TextObject ¶
Click to show internal directories.
Click to hide internal directories.