Documentation
¶
Index ¶
- Variables
- func DecryptCyTableData(data string, info *BeeCyTable) error
- func EncryptCyTableData(info *BeeCyTable) string
- func InitDB()
- func InitDemoData() error
- type BeeBanner
- type BeeCashLog
- type BeeCmsInfo
- type BeeComment
- type BeeConfig
- type BeeCoupon
- type BeeCyTable
- type BeeDelivery
- type BeeLevel
- type BeeLogistics
- type BeeLogisticsDetail
- type BeeNotice
- type BeeOrder
- type BeeOrderCoupon
- type BeeOrderGoods
- type BeeOrderLog
- type BeeOrderLogistics
- type BeeOrderPayLog
- type BeeOrderPeisong
- type BeeOrderPeisongLog
- type BeeOrderPrintLog
- type BeeOrderQuDanHao
- type BeeOrderReputation
- type BeePayLog
- type BeePeiSong
- type BeePrinter
- type BeeQueue
- type BeeRegion
- type BeeScoreLog
- type BeeShopGoods
- type BeeShopGoodsAddition
- type BeeShopGoodsCategory
- type BeeShopGoodsContent
- type BeeShopGoodsImages
- type BeeShopGoodsProp
- type BeeShopGoodsSku
- type BeeShopInfo
- type BeeShopLogisticsFreeShipping
- type BeeShoppingCart
- type BeeSignLog
- type BeeToken
- type BeeUploadFile
- type BeeUser
- type BeeUserAddress
- type BeeUserAmount
- type BeeUserBalanceLog
- type BeeUserCoupon
- type BeeUserCouponLog
- type BeeUserDynamicCode
- type BeeUserLevel
- type BeeUserMapper
- type BeeUserMobile
- type BeeUserQueue
- type BeeWxConfig
- type BeeWxPayConfig
- type RechargeSendRule
Constants ¶
This section is empty.
Variables ¶
View Source
var AllModel = []interface{}{ &BeeUserAddress{}, &BeeUserBalanceLog{}, &BeeBanner{}, &BeeCmsInfo{}, &BeeComment{}, &BeeConfig{}, &BeeCoupon{}, &BeeUserCoupon{}, &BeeUserCouponLog{}, &BeeCyTable{}, &BeeDelivery{}, &BeeUploadFile{}, &BeePeiSong{}, &BeeShopGoodsCategory{}, &BeeShopGoods{}, &BeeShopGoodsImages{}, &BeeShopGoodsProp{}, &BeeShopGoodsContent{}, &BeeShopGoodsAddition{}, &BeeLogistics{}, &BeeNotice{}, &BeeOrder{}, &BeeOrderGoods{}, &BeeOrderLogistics{}, &BeeOrderReputation{}, &BeeOrderQuDanHao{}, &BeeOrderCoupon{}, &BeeOrderLog{}, &BeeOrderPeisong{}, &BeeOrderPeisongLog{}, &BeePayLog{}, &BeeShopInfo{}, &BeeShopGoodsSku{}, &BeeShoppingCart{}, &BeePrinter{}, &BeeSignLog{}, &BeeScoreLog{}, &BeeUser{}, &BeeLevel{}, &BeeUserLevel{}, &BeeUserMobile{}, &BeeUserAmount{}, &BeeUserMapper{}, &BeeUserDynamicCode{}, &BeeCashLog{}, &BeeToken{}, &BeeWxConfig{}, &BeeWxPayConfig{}, &BeeQueue{}, &RechargeSendRule{}, &BeeUserQueue{}, &BeeOrderPrintLog{}, }
Functions ¶
func DecryptCyTableData ¶
func DecryptCyTableData(data string, info *BeeCyTable) error
func EncryptCyTableData ¶
func EncryptCyTableData(info *BeeCyTable) string
func InitDemoData ¶
func InitDemoData() error
Types ¶
type BeeBanner ¶
type BeeBanner struct {
common.BaseModel
BusinessId int64 `gorm:"column:business_id;type:bigint(11);comment:业务id" json:"businessId"`
LinkType int64 `gorm:"column:link_type;type:bigint(11);comment:链接类型" json:"linkType"`
Paixu int64 `gorm:"column:paixu;type:bigint(11);comment:排序" json:"paixu"`
PicUrl string `gorm:"column:pic_url;type:varchar(100);comment:图片" json:"picUrl"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:店铺id" json:"shopId"`
Status enum.BannerStatus `gorm:"column:status;type:bigint(11);comment:状态" json:"status"`
Title string `gorm:"column:title;type:varchar(100);comment:标题" json:"title"`
Type string `gorm:"column:type;type:varchar(100);comment:类型" json:"type"`
}
bee_banner
type BeeCashLog ¶
type BeeCashLog struct {
common.BaseModel
Amount decimal.Decimal `gorm:"column:amount;type:decimal(10,2);comment:金额" json:"amount"`
Balance decimal.Decimal `gorm:"column:balance;type:decimal(10,2);comment:剩余可用余额" json:"balance"`
Behavior enum.BeeCashLogBehavior `gorm:"column:behavior;type:int(10);comment:0 收入 1 支出" json:"behavior"`
Freeze decimal.Decimal `gorm:"column:freeze;type:decimal(10,2);comment:剩余冻结金额" json:"freeze"`
Remark string `gorm:"column:remark;type:varchar(100);comment:remark" json:"remark"`
Type enum.BeeCashLogType `gorm:"column:type;type:int(10);comment:类型" json:"type"`
TypeStr string `gorm:"-" json:"typeStr"`
Uid int `gorm:"column:uid;type:bigint(20)" json:"uid"`
}
func (*BeeCashLog) FillData ¶
func (b *BeeCashLog) FillData()
func (*BeeCashLog) TableName ¶
func (b *BeeCashLog) TableName() string
type BeeCmsInfo ¶
type BeeCmsInfo struct {
common.BaseModel
Content string `gorm:"column:content;type:varchar(5000);comment:内容" json:"content"`
Key string `gorm:"column:key;type:varchar(100);comment:key" json:"key"`
Title string `gorm:"column:title;type:varchar(100);comment:标题" json:"title"`
Type int64 `gorm:"column:type;type:bigint(11);comment:类型" json:"type"`
}
BeeCmsInfo
func (*BeeCmsInfo) TableName ¶
func (m *BeeCmsInfo) TableName() string
type BeeComment ¶
type BeeComment struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20);comment:uid" json:"uid"` //业务ID,比如文章id
RefId int64 `gorm:"column:ref_id;type:bigint(20);comment:ref_id" json:"refId"` //业务ID,比如文章id
Pid int64 `gorm:"column:pid;type:bigint(20);comment:pid" json:"pid"` //引用的留言ID
ShopId int64 `gorm:"column:shop_id;type:bigint(20);comment:shop_id" json:"shopId"` //门店ID
Type enum.CommentType `gorm:"column:type;type:int(11);comment:type" json:"type"` //0 网站留言 1 意见反馈 2 投诉建议 3 CMS文章评论 4 接口申请 5 预约/活动/报名 6 商城订单
Pics string `gorm:"column:pics;type:varchar(2000);comment:pics" json:"pics"` // 图片数组
File string `gorm:"column:file;type:varchar(255);comment:file" json:"file"` // 文件附件链接,可传图片、文件
Mobile string `gorm:"column:mobile;type:varchar(100);comment:mobile" json:"mobile"` // 联系电话
Content string `gorm:"column:content;type:varchar(2000);comment:content" json:"content"` // 留言/评论内容
ExtJsonStr string `gorm:"column:ext_json_str;type:varchar(2000);comment:ext_json_str" json:"extJsonStr"` //属性信息,JSON格式的字符串
Status enum.CommentStatus `gorm:"column:status;type:int(11);comment:状态" json:"status"`
StatusStr string `gorm:"-" json:"statusStr"`
}
func (*BeeComment) FillData ¶
func (m *BeeComment) FillData()
func (*BeeComment) TableName ¶
func (m *BeeComment) TableName() string
type BeeConfig ¶
type BeeConfig struct {
common.BaseModel
Key string `gorm:"column:key;type:varchar(100);default:''" json:"key"`
Remark string `gorm:"column:remark;type:varchar(100);NOT NULL;default:'';comment:备注" json:"remark"`
Value string `gorm:"column:value;type:varchar(1000);NOT NULL;default:'';comment:值" json:"value"`
}
type BeeCoupon ¶
type BeeCoupon struct {
common.BaseModel
BatchSendUid int64 `gorm:"column:batch_send_uid;type:bigint(11);comment:批量" json:"batchSendUid"`
DateEndDays int `gorm:"column:date_end_days;type:int(11);comment:第n天失效" json:"dateEndDays"`
DateEnd common.JsonTime `gorm:"column:date_end;type:datetime(3);comment:失效日期;default:null" json:"dateEnd"`
DateEndType enum.CouponDateEndType `gorm:"column:date_end_type;type:bigint(11);comment:失效类型,1n天后失效,0指定" json:"dateEndType"`
DateStart common.JsonTime `gorm:"column:date_start;type:datetime(3);comment:生效日期;default:null" json:"dateStart"`
DateStartDays int64 `gorm:"column:date_start_days;type:bigint(11);comment:第n天生效" json:"dateStartDays"`
DateStartType int `gorm:"column:date_start_type;type:bigint(11);comment:生效时间,1立即,2次日,0指定时间" json:"dateStartType"`
MoneyHreshold decimal.Decimal `gorm:"column:money_hreshold;type:decimal(20,2);comment:满xx可用" json:"moneyHreshold"`
MoneyMax decimal.Decimal `gorm:"column:money_max;type:decimal(20,2);comment:优惠券最大金额" json:"moneyMax"`
MoneyMin decimal.Decimal `gorm:"column:money_min;type:decimal(20,2);comment:优惠券最小金额" json:"moneyMin"`
MoneyType enum.CouponMoneyType `gorm:"column:money_type;type:bigint(11);comment:类型,1满xx,2折扣" json:"moneyType"`
Name string `gorm:"column:name;type:varchar(100);comment:优惠券名字" json:"name"`
NeedAmount decimal.Decimal `gorm:"column:need_amount;type:decimal(20,2);comment:需要支付" json:"needAmount"`
NeedScore decimal.Decimal `gorm:"column:need_score;type:decimal(20,2);comment:需要积分" json:"needScore"`
NeedSignedContinuous int64 `gorm:"column:need_signed_continuous;type:bigint(11);comment:连续签到多少天可得" json:"needSignedContinuous"`
NumberLeft int64 `gorm:"column:number_left;type:bigint(11);comment:剩余数量" json:"numberLeft"`
NumberPersonMax int64 `gorm:"column:number_person_max;type:bigint(11);comment:每人最多领取多少" json:"numberPersonMax"`
NumberTotle int64 `gorm:"column:number_totle;type:bigint(11);comment:总数量" json:"numberTotle"`
NumberUsed int64 `gorm:"column:number_used;type:bigint(11);comment:使用数量" json:"numberUsed"`
OnlyFreight bool `gorm:"column:only_freight;type:tinyint(1);comment:仅抵扣运费" json:"onlyFreight"`
SendBirthday bool `gorm:"column:send_birthday;type:tinyint(1);comment:生日赠送" json:"sendBirthday"`
SendInviteM bool `gorm:"column:send_invite_m;type:tinyint(1);comment:邀请新人注册赠送" json:"sendInviteM"`
SendInviteS bool `gorm:"column:send_invite_s;type:tinyint(1);comment:被邀请赠送" json:"sendInviteS"`
SendRegister bool `gorm:"column:send_register;type:tinyint(1);comment:注册赠送" json:"sendRegister"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:店铺id" json:"shopId"`
ShowInFront bool `gorm:"column:show_in_front;type:tinyint(1);comment:展示" json:"showInFront"`
Status int64 `gorm:"column:status;type:bigint(11);comment:状态,0是正常" json:"status"`
Type string `gorm:"column:type;type:varchar(100);comment:优惠券类型描述" json:"type"`
}
优惠券
type BeeCyTable ¶
type BeeCyTable struct {
common.BaseModel
ShopId int64 `gorm:"column:shop_id;type:bigint(20)" json:"shopId"`
Key string `gorm:"column:key;unique;type:varchar(255)" json:"key"` // key
TableNum string `gorm:"column:table_num;type:varchar(255)" json:"tableNum"` // 桌号
Remark string `gorm:"column:remark;type:varchar(255)" json:"remark"` // 备注
Uid int64 `gorm:"column:uid;type:bigint(20)" json:"uid"` // 对应虚拟用户id
}
func (*BeeCyTable) TableName ¶
func (m *BeeCyTable) TableName() string
type BeeDelivery ¶
type BeeDelivery struct {
common.BaseModel
Type enum.DeliveryType `gorm:"column:type;type:bigint(11);comment:类型" json:"type"`
Name string `gorm:"column:name;type:varchar(100);comment:名称" json:"name"`
AppKey string `gorm:"column:app_key;type:varchar(100);comment:app_key" json:"app_key"`
AppSecret string `gorm:"column:app_secret;type:varchar(100);comment:app_secret" json:"app_secret"`
SourceId string `gorm:"column:source_id;type:varchar(100);comment:source_id" json:"source_id"`
Debug bool `gorm:"column:debug;type:tinyint(1);comment:debug模式" json:"debug"`
}
BeeDelivery 配送配置
func (*BeeDelivery) TableName ¶
func (b *BeeDelivery) TableName() string
type BeeLevel ¶
type BeeLevel struct {
common.BaseModel
Level int64 `gorm:"column:level;type:int(10);comment:等级" json:"level"`
Name string `gorm:"column:name;type:varchar(100);comment:等级名称" json:"name"`
Paixu int `gorm:"column:paixu;type:int(10);comment:排序" json:"paixu"`
UpgradeAmount decimal.Decimal `gorm:"column:upgrade_amount;type:decimal(10,2);comment:升级金额" json:"upgradeAmount"`
}
type BeeLogistics ¶
type BeeLogistics struct {
common.BaseModel
Name string `gorm:"column:name;type:varchar(100);comment:模板名" json:"name"`
FeeType enum.BeeLogisticsType `gorm:"column:fee_type;type:int(11);comment:计价方式,1按件,2按重量,3按金额" json:"feeType"`
FeeTypeStr string `gorm:"-" json:"feeTypeStr"`
IsFree bool `gorm:"column:is_free;type:tinyint(1);comment:是否包邮" json:"isFree"`
DetailsJsonStr string `gorm:"column:details_json;type:text" json:"detailsJson"`
FreeShippingSetting string `gorm:"column:free_shipping_setting;type:text" json:"freeShippingSetting"`
Details []*BeeLogisticsDetail `gorm:"-" json:"details"`
FreeShippings []*BeeShopLogisticsFreeShipping `gorm:"-" json:"freeShipping"`
}
func (*BeeLogistics) TableName ¶
func (m *BeeLogistics) TableName() string
type BeeLogisticsDetail ¶
type BeeLogisticsDetail struct {
Default bool `json:"default,omitempty"`
Remark string `json:"remark"`
Names []string `json:"names" json:"names,omitempty"`
CityIds []string `json:"cityIds" json:"cityIds,omitempty"`
FirstNumber decimal.Decimal `json:"firstNumber" json:"firstNumber,omitempty"`
FirstAmount decimal.Decimal `json:"firstAmount" json:"firstAmount"`
AddNumber decimal.Decimal `json:"addNumber" json:"addNumber,omitempty"`
AddAmount decimal.Decimal `json:"addAmount" json:"addAmount"`
Type enum.BeeLogisticsType `json:"type" json:"type,omitempty"`
CityId string `json:"cityId" json:"cityId,omitempty"`
}
type BeeNotice ¶
type BeeNotice struct {
common.BaseModel
Content string `gorm:"column:content;type:text;comment:内容" json:"content"`
IsRemind bool `gorm:"column:is_remind;type:tinyint(1);comment:是否提醒" json:"isRemind"`
IsShow bool `gorm:"column:is_show;type:tinyint(1);comment:是否展示" json:"isShow"`
RemindUid int64 `gorm:"column:remind_uid;type:bigint(11);comment:提醒用户id" json:"remindUid"`
Title string `gorm:"column:title;type:varchar(100);comment:标题" json:"title"`
}
店铺公告
type BeeOrder ¶
type BeeOrder struct {
common.BaseModel
Amount decimal.Decimal `gorm:"column:amount;type:decimal(10,2);comment:商品金额" json:"amount"` // 总价格
AmountCard decimal.Decimal `gorm:"column:amount_card;type:decimal(10,2);comment:优惠卡抵扣" json:"amountCard"`
AmountCoupons decimal.Decimal `gorm:"column:amount_coupons;type:decimal(10,2);comment:优惠券抵扣" json:"amountCoupons"`
AmountLogistics decimal.Decimal `gorm:"column:amount_logistics;type:decimal(10,2);comment:运费" json:"amountLogistics"`
AmountBalance decimal.Decimal `gorm:"column:amount_balance;type:decimal(10,2);comment:余额抵扣" json:"amountBalance"`
AmountReal decimal.Decimal `gorm:"column:amount_real;type:decimal(10,2);comment:付款金额" json:"amountReal"` // 除去优惠、余额抵扣,实际支付金额
AmountRefundTotal decimal.Decimal `gorm:"column:amount_refund_total;type:decimal(10,2);comment:退款总金额" json:"amountRefundTotal"`
AmountTax decimal.Decimal `gorm:"column:amount_tax;type:decimal(10,2);comment:总税金额" json:"amountTax"`
AmountTaxGst decimal.Decimal `gorm:"column:amount_tax_gst;type:decimal(10,2);comment:消费税" json:"amountTaxGst"`
AmountTaxService decimal.Decimal `gorm:"column:amount_tax_service;type:decimal(10,2);comment:税服务费用" json:"amountTaxService"`
AutoDeliverStatus enum.AutoDeliverStatus `gorm:"column:auto_deliver_status;type:bigint(11);comment:自动发货状态" json:"autoDeliverStatus"`
DateClose common.JsonTime `gorm:"column:date_close;type:datetime(3);comment:关闭订单时间" json:"dateClose"`
DatePay common.JsonTime `gorm:"column:date_pay;type:datetime(3);comment:支付订单时间" json:"datePay"`
GoodsNumber int64 `gorm:"column:goods_number;type:bigint(11);comment:商品总数量" json:"goodsNumber"`
HasRefund bool `gorm:"column:has_refund;type:tinyint(1);comment:是否退款" json:"hasRefund"`
HxNumber string `gorm:"uniqueIndex;column:hx_number;type:varchar(100);comment:核销码" json:"hxNumber"`
Ip string `gorm:"column:ip;type:varchar(100);comment:下单ip" json:"ip"`
IsCanHx bool `gorm:"column:is_can_hx;type:tinyint(1);comment:是否可以核销" json:"isCanHx"`
IsDelUser bool `gorm:"column:is_del_user;type:tinyint(1);comment:用户删除" json:"isDelUser"`
IsEnd bool `gorm:"column:is_end;type:tinyint(1);comment:订单已经结束" json:"isEnd"`
IsHasBenefit bool `gorm:"column:is_has_benefit;type:tinyint(1);comment:是否有收益" json:"isHasBenefit"`
IsNeedLogistics bool `gorm:"column:is_need_logistics;type:tinyint(1);comment:需要快递" json:"isNeedLogistics"`
IsPay bool `gorm:"column:is_pay;type:tinyint(1);comment:是否已经支付" json:"isPay"`
IsScoreOrder bool `gorm:"column:is_score_order;type:tinyint(1);comment:是否有积分" json:"isScoreOrder"`
IsSuccessPingtuan bool `gorm:"column:is_success_pingtuan;type:tinyint(1);comment:是否拼团成功" json:"isSuccessPingtuan"`
OrderNumber string `gorm:"uniqueIndex;column:order_number;type:varchar(100);comment:订单号" json:"orderNumber"`
OrderType enum.OrderType `gorm:"column:order_type;type:bigint(11);comment:订单类型" json:"orderType"`
Pid int64 `gorm:"column:pid;type:bigint(20);comment:父订单号" json:"pid"`
Qudanhao string `gorm:"column:qudanhao;type:varchar(100);comment:取单号" json:"qudanhao"`
RefundStatus enum.OrderRefundStatus `gorm:"column:refund_status;type:bigint(11);comment:退款状态" json:"refundStatus"`
Remark string `gorm:"column:remark;type:varchar(100);comment:备注" json:"remark"`
Score int64 `gorm:"column:score;type:bigint(11);comment:获得积分" json:"score"`
ScoreDeduction int64 `gorm:"column:score_deduction;type:bigint(11);comment:扣除积分" json:"scoreDeduction"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:商店id" json:"shopId"`
ShopIdZt int64 `gorm:"column:shop_id_zt;type:bigint(11);comment:自提商店id" json:"shopIdZt"`
ShopNameZt string `gorm:"column:shop_name_zt;type:varchar(100);comment:自提商店名称" json:"shopNameZt"`
Status enum.OrderStatus `gorm:"column:status;type:bigint(11);comment:订单状态,1未发货" json:"status"`
Trips decimal.Decimal `gorm:"column:trips;type:bigint(11);comment:小费金额" json:"trips"`
Type enum.OrderType `gorm:"column:type;type:bigint(11);comment:订单类型" json:"type"`
Uid int64 `gorm:"column:uid;type:bigint(11);comment:用户id" json:"uid"`
ExtJsonStr string `gorm:"column:ext_json_str;type:varchar(1000);comment:扩展信息" json:"extJsonStr"`
PeisongType string `gorm:"column:peisong_type;type:varchar(30);comment:配送类型" json:"peisongType"`
}
订单
func (*BeeOrder) ExtJsonToString ¶
type BeeOrderCoupon ¶
type BeeOrderCoupon struct {
common.BaseModel
OrderId int64 `gorm:"column:order_id;type:bigint(100);comment:订单id" json:"orderId"`
CouponId int64 `gorm:"column:coupon_id;type:bigint(100);comment:优惠券id" json:"couponId"`
Uid int64 `gorm:"column:uid;type:bigint(20);comment:用户id" json:"uid"`
}
func (*BeeOrderCoupon) TableName ¶
func (m *BeeOrderCoupon) TableName() string
type BeeOrderGoods ¶
type BeeOrderGoods struct {
common.BaseModel
AfterSale string `gorm:"column:after_sale;type:varchar(100);comment:售后类型" json:"afterSale"`
HadPayAmount decimal.Decimal `gorm:"column:had_pay_amount;type:decimal(10,2);comment:已支付金额" json:"hadPayAmount"`
Amount decimal.Decimal `gorm:"column:amount;type:decimal(10,2);comment:总金额" json:"amount"`
AmountCoupon decimal.Decimal `gorm:"column:amount_coupon;type:decimal(10,2);comment:优惠券金额" json:"amountCoupon"`
AmountSingle decimal.Decimal `gorm:"column:amount_single;type:decimal(10,2);comment:单价" json:"amountSingle"`
AmountSingleBase decimal.Decimal `gorm:"column:amount_single_base;type:decimal(10,2);comment:基本单价" json:"amountSingleBase"`
BuyRewardEnd bool `gorm:"column:buy_reward_end;type:tinyint(1);comment:奖励发放结束" json:"buyRewardEnd"`
CategoryId int64 `gorm:"column:category_id;type:bigint(20);comment:分类" json:"categoryId"`
CyTableStatus enum.CyTableStatus `gorm:"column:cy_table_status;type:bigint(11);comment:餐饮桌子状态" json:"cyTableStatus"`
FxType enum.FxType `gorm:"column:fx_type;type:bigint(11);comment:返现类型" json:"fxType"`
GoodsId int64 `gorm:"column:goods_id;type:bigint(11);comment:商品id" json:"goodsId"`
GoodsName string `gorm:"column:goods_name;type:varchar(100);comment:商品名" json:"goodsName"`
GoodsSubName string `gorm:"column:goods_name;type:varchar(100);comment:商品名称副标题" json:"goodsSubName"`
IsScoreOrder bool `gorm:"column:is_score_order;type:tinyint(1);comment:是否积分订单" json:"isScoreOrder"`
Number int64 `gorm:"column:number;type:bigint(11);comment:数量" json:"number"`
NumberNoFahuo int64 `gorm:"column:number_no_fahuo;type:bigint(11);comment:未发货数量" json:"numberNoFahuo"`
OrderId int64 `gorm:"column:order_id;type:bigint(11);comment:订单id" json:"orderId"`
Persion int64 `gorm:"column:persion;type:bigint(11);comment:人数" json:"persion"`
Pic string `gorm:"column:pic;type:varchar(100);comment:商品图" json:"pic"`
PriceId int64 `gorm:"column:price_id;type:bigint(11);comment:价格id" json:"priceId"`
Property string `gorm:"column:property;type:varchar(100);comment:属性" json:"property"`
PropertyChildIds string `gorm:"column:property_child_ids;type:varchar(100);comment:属性id" json:"propertyChildIds"`
Purchase bool `gorm:"column:purchase;type:tinyint(1);comment:是否已支付" json:"purchase"`
RefundStatus enum.OrderRefundStatus `gorm:"column:refund_status;type:bigint(11);comment:退款状态" json:"refundStatus"`
Score decimal.Decimal `gorm:"column:score;type:bigint(11);comment:积分" json:"score"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:商店id" json:"shopId"`
Status enum.OrderGoodsStatus `gorm:"column:status;type:bigint(11);comment:状态" json:"status"`
Type int64 `gorm:"column:type;type:bigint(11);comment:类型" json:"type"`
Uid int64 `gorm:"column:uid;type:bigint(11);comment:用户id" json:"uid"`
Unit string `gorm:"column:unit;type:varchar(100);comment:单位" json:"unit"`
Weight decimal.Decimal `gorm:"column:weight;type:decimal(10,2);comment:重量" json:"weight"`
}
BeeOrderGoods 订单商品
func (*BeeOrderGoods) TableName ¶
func (m *BeeOrderGoods) TableName() string
type BeeOrderLog ¶
type BeeOrderLog struct {
common.BaseModel
OrderId int64 `gorm:"column:order_id;type:bigint(100);comment:订单id" json:"orderId"`
Type enum.OrderLogType `gorm:"column:type;type:bigint(11);comment:类型" json:"type"`
TypeStr string `gorm:"-" json:"typeStr"`
Remark string `gorm:"column:remark;type:varchar(100);comment:备注" json:"remark"`
}
func (*BeeOrderLog) FillData ¶
func (b *BeeOrderLog) FillData()
func (*BeeOrderLog) TableName ¶
func (b *BeeOrderLog) TableName() string
type BeeOrderLogistics ¶
type BeeOrderLogistics struct {
BeeUserAddress
OrderId int64 `gorm:"column:order_id;type:bigint(11);comment:订单id" json:"orderId"`
DadaShopNo string `gorm:"column:dada_shop_no;type:varchar(100);comment:快递门店编号" json:"dadaShopNo"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:商店id" json:"shopId"`
}
BeeOrderLogistics 订单收货地址
func (*BeeOrderLogistics) TableName ¶
func (m *BeeOrderLogistics) TableName() string
type BeeOrderPayLog ¶
type BeeOrderPayLog struct {
common.BaseModel
OrderId int64 `gorm:"column:order_id;type:bigint(100);comment:订单id" json:"orderId"`
PayGate enum.PayGate `gorm:"column:pay_gate;type:varchar(100);comment:支付网关" json:"payGate"`
Amount decimal.Decimal `gorm:"column:amount;type:decimal(10,2);comment:金额" json:"amount"`
Status enum.PayLogStatus `gorm:"column:status;type:bigint(11);comment:状态" json:"status"`
Remark string `gorm:"column:remark;type:varchar(100);comment:备注" json:"remark"`
ThirdId string `gorm:"column:third_id;type:varchar(100);comment:第三方支付id" json:"thirdId"`
Extra string `gorm:"column:extra;type:varchar(2000);comment:额外信息" json:"extra"`
}
BeeOrderPayLog 支付流水,一个订单可以分多次支付
func (*BeeOrderPayLog) TableName ¶
func (m *BeeOrderPayLog) TableName() string
type BeeOrderPeisong ¶
type BeeOrderPeisong struct {
common.BaseModel
OrderId int64 `gorm:"column:order_id;type:bigint(100);comment:订单id" json:"orderId"`
PeisongOrderNo string `gorm:"uniqueIndex;column:peisong_order_no;type:varchar(100);comment:配送订单号" json:"prisongOrderNo"` //bee-api配送订单号
Type enum.DeliveryType `gorm:"column:type;type:bigint(11);comment:配送类型" json:"type"`
PeisongOrderId string `gorm:"uniqueIndex;column:peisong_order_id;type:varchar(100);comment:配送订单id" json:"peisongOrderId"` //第三方
Money decimal.Decimal `gorm:"column:money;type:decimal(10,2);comment:配送费" json:"money"`
RealMoney decimal.Decimal `gorm:"column:real_money;type:decimal(10,2);comment:实际支付金额" json:"realMoney"`
DeductFee decimal.Decimal `gorm:"column:deduct_fee;type:decimal(10,2);comment:取消配送扣费" json:"deductFee"`
Status enum.OrderPaisongStatus `gorm:"column:status;type:bigint(11);comment:状态" json:"status"`
IsCancel bool `gorm:"column:is_cancel;type:tinyint(1);comment:是否取消" json:"isCancel"`
ErrMsg string `gorm:"column:err_msg;type:varchar(1000);comment:配送错误信息" json:"errMsg"`
ThirdStatus string `gorm:"column:third_status;type:varchar(3000);comment:第三方状态" json:"thirdStatus"`
RetryTimes int `gorm:"column:retry_times;type:bigint(11);comment:重试次数" json:"retryTimes"`
LastRetryUnix int64 `gorm:"column:last_retry_unix;type:bigint(11);comment:上次重试时间" json:"lastRetryUnix"`
ReqData string `gorm:"column:req_data;type:text;comment:请求数据" json:"reqData"`
}
func (*BeeOrderPeisong) TableName ¶
func (m *BeeOrderPeisong) TableName() string
type BeeOrderPeisongLog ¶
type BeeOrderPeisongLog struct {
common.BaseModel
OrderId int64 `gorm:"column:order_id;type:bigint(100);comment:订单id" json:"orderId"`
PeisongOrderNo string `gorm:"column:peisong_order_no;type:varchar(100);comment:配送订单号" json:"prisongOrderNo"`
Remark string `gorm:"column:remark;type:varchar(500);comment:备注" json:"remark"`
Log string `gorm:"column:log;type:text;comment:日志" json:"log"`
}
func (*BeeOrderPeisongLog) TableName ¶
func (m *BeeOrderPeisongLog) TableName() string
type BeeOrderPrintLog ¶
type BeeOrderPrintLog struct {
common.BaseModel
OrderId int64 `gorm:"column:order_id;type:bigint(100);comment:订单id" json:"orderId"`
Condition enum.PrinterCondition `gorm:"column:condition;type:int(11);comment:打印条件" json:"condition"`
Status enum.OrderPrinterStatus `gorm:"column:status;type:int(11);comment:状态" json:"status"`
ErrMsg string `gorm:"column:err_msg;type:varchar(100);comment:错误信息" json:"errMsg"`
TryTimes int `gorm:"column:try_times;type:int(11);comment:尝试次数" json:"tryTimes"`
LastTryUnix int64 `gorm:"column:last_try_unix;type:bigint(20);comment:最后尝试时间" json:"lastTryUnix"`
}
func (*BeeOrderPrintLog) TableName ¶
func (m *BeeOrderPrintLog) TableName() string
type BeeOrderQuDanHao ¶
type BeeOrderQuDanHao struct {
common.BaseModel `json:"common.BaseModel"`
ShopId int64 `gorm:"column:shop_id;type:bigint(20);comment:商店id" json:"shopId" json:"shopId,omitempty"`
Type string `gorm:"column:type;type:varchar(100);comment:类型" json:"type" json:"type,omitempty"`
Num int64 `gorm:"column:num;type:bigint(11);comment:数量" json:"num" json:"num,omitempty"`
}
func (*BeeOrderQuDanHao) TableName ¶
func (m *BeeOrderQuDanHao) TableName() string
type BeeOrderReputation ¶
type BeeOrderReputation struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20);comment:用户id" json:"uid"`
OrderId int64 `gorm:"column:order_id;type:bigint(100);comment:订单id" json:"orderId"`
Reputation enum.OrderReputation `gorm:"column:reputation;type:bigint(11);comment:评价" json:"reputation"`
Remark string `gorm:"column:remark;type:varchar(100);comment:备注" json:"remark"`
PicsStr string `gorm:"column:pics_str;type:varchar(100);comment:图片列表" json:"picsStr"`
Pics []string `gorm:"-" json:"pics"`
}
func (*BeeOrderReputation) Decode ¶
func (b *BeeOrderReputation) Decode()
func (*BeeOrderReputation) TableName ¶
func (m *BeeOrderReputation) TableName() string
type BeePayLog ¶
type BeePayLog struct {
common.BaseModel
Money decimal.Decimal `gorm:"column:money;type:decimal(10,2);comment:总金额" json:"money"`
NextAction string `gorm:"column:next_action;type:varchar(100);comment:next_action" json:"nextAction"`
OrderNo string `gorm:"column:order_no;type:varchar(100);comment:订单号" json:"orderNo"`
ThirdOrderNo string `gorm:"column:third_order_no;type:varchar(200);comment:第三方订单号" json:"thirdOrderNo"`
PayGate enum.PayGate `gorm:"column:pay_gate;type:varchar(100);comment:pay_gate" json:"payGate"`
PayGateStr string `gorm:"-" json:"payGateStr"`
Remark string `gorm:"column:remark;type:varchar(100);comment:备注" json:"remark"`
Status enum.PayLogStatus `gorm:"column:status;type:int(11);comment:状态" json:"status"`
StatusStr string `gorm:"-" json:"statusStr"`
Uid int64 `gorm:"column:uid;type:bigint(11);comment:用户id" json:"uid"`
}
type BeePeiSong ¶
type BeePeiSong struct {
common.BaseModel
Distance decimal.Decimal `gorm:"column:distance;type:decimal(10,2);comment:距离,单位km" json:"distance"`
Fwf1Min decimal.Decimal `gorm:"column:fwf1_min;type:decimal(10,2);comment:最低收费金额" json:"fwf1Min"` // ● 最低收费金额
Fwf1Name string `gorm:"column:fwf1_name;type:varchar(100);comment:收费项目名称" json:"fwf1Name"`
Fwf1Number decimal.Decimal `gorm:"column:fwf1_number;type:decimal(10,2);comment:比例或者金额" json:"fwf1Number"` //收取的比例或者固定金额
Fwf1Type enum.BeePeiSongFeeType `gorm:"column:fwf1_type;type:int(10);comment:类型" json:"fwf1Type"` //0 固定金额; 1 百分比
ZtDiscounts decimal.Decimal `gorm:"column:zt_discounts;type:decimal(10,2);comment:自提补贴" json:"ztDiscounts"` //自提补贴,如果用户选择自提,订单金额减少
}
配送费
func (*BeePeiSong) TableName ¶
func (m *BeePeiSong) TableName() string
type BeePrinter ¶
type BeePrinter struct {
common.BaseModel
Appid string `gorm:"column:appid;type:varchar(100);comment:appid" json:"appid"`
AppSecret string `gorm:"column:app_secret;type:varchar(100);comment:app_secret" json:"app_secret"`
Name string `gorm:"column:name;type:varchar(100);comment:打印机名称" json:"name"`
Key string `gorm:"column:key;type:varchar(100);comment:打印机密钥" json:"key"`
Brand enum.PrinterBrand `gorm:"column:brand;type:int(11);comment:品牌" json:"brand"`
Condition enum.PrinterCondition `gorm:"column:condition;type:int(11);comment:打印条件" json:"condition"`
Code string `gorm:"column:code;type:varchar(100);comment:打印机编号" json:"code"`
Num int `gorm:"column:num;type:int(11);comment:打印份数" json:"num"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:店铺id" json:"shopId"`
Template string `gorm:"column:template;type:text;comment:打印模板" json:"template"`
Voice string `gorm:"column:voice;type:varchar(100);comment:音源" json:"voice"`
}
BeePrinter 打印机配置
func (*BeePrinter) TableName ¶
func (m *BeePrinter) TableName() string
type BeeQueue ¶
type BeeQueue struct {
common.BaseModel
Name string `gorm:"column:name;type:varchar(100);comment:排队名" json:"name"`
CurNumber int64 `gorm:"column:cur_number;type:bigint(20);comment:当前叫号" json:"curNumber"`
NumberGet int64 `gorm:"column:number_get;type:bigint(20);comment:当前取号" json:"numberGet"`
MaxNumber int64 `gorm:"column:max_number;type:bigint(20);comment:最大叫号" json:"maxNumber"`
Minutes int64 `gorm:"column:minutes;type:bigint(20);comment:每个人等待的时间,分钟" json:"minutes"`
Status enum.BeeQueueStatus `gorm:"column:status;type:int(10);comment:状态" json:"status"`
}
type BeeRegion ¶
type BeeRegion struct {
common.BaseModel
FirstLetter string `gorm:"column:first_letter;type:varchar(10)" json:"firstLetter"`
Jianpin string `gorm:"column:jianpin;type:varchar(100)" json:"jianpin"`
Level int `gorm:"column:level;type:int(11)" json:"level"`
Name string `gorm:"column:name;type:varchar(100)" json:"name"`
NameEn string `gorm:"column:name_en;type:varchar(200)" json:"nameEn"`
Pinyin string `gorm:"column:pinyin;type:varchar(100)" json:"pinyin"`
Pid string `gorm:"column:pid;type:varchar(100)" json:"pid"`
RegionId int64 `gorm:"column:region_id;type:bigint(20)" json:"regionId"`
}
BeeRegion 参考:https://api.it120.cc/common/region/v2/province https://api.it120.cc/common/region/v2/child?pid=110100000000
type BeeScoreLog ¶
type BeeScoreLog struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(11);comment:用户id" json:"uid"`
Score decimal.Decimal `gorm:"column:score;type:bigint(20);comment:获得积分" json:"score"`
Remark string `gorm:"column:remark;type:varchar(100);comment:备注" json:"remark"`
}
func (*BeeScoreLog) TableName ¶
func (m *BeeScoreLog) TableName() string
type BeeShopGoods ¶
type BeeShopGoods struct {
common.BaseModel
BarCode string `gorm:"column:bar_code;type:varchar(100);comment:条码" json:"barCode"`
AfterSale string `gorm:"column:after_sale;type:varchar(100);comment:售后说明,1仅退款,2退款退货,3换货" json:"afterSale"`
CategoryId int64 `gorm:"column:category_id;type:bigint(11);comment:分类id" json:"categoryId"`
Commission decimal.Decimal `gorm:"column:commission;type:decimal(10,2);comment:积分奖励" json:"commission"`
CommissionSettleType int64 `gorm:"column:commission_settle_type;type:bigint(11);comment:积分奖励结算类型" json:"commissionSettleType"`
CommissionType int64 `gorm:"column:commission_type;type:bigint(11);comment:积分奖励类型" json:"commissionType"`
CommissionUserType int64 `gorm:"column:commission_user_type;type:bigint(11);comment:积分奖励用户类型" json:"commissionUserType"`
HasAddition bool `gorm:"column:has_addition;type:tinyint(1);comment:有附加" json:"hasAddition"`
HasTourJourney bool `gorm:"column:has_tour_journey;type:tinyint(1);comment:有团购" json:"hasTourJourney"`
Hidden int64 `gorm:"column:hidden;type:bigint(11);comment:隐藏" json:"hidden"`
Kanjia bool `gorm:"column:kanjia;type:tinyint(1);comment:允许砍价" json:"kanjia"`
KanjiaPrice decimal.Decimal `gorm:"column:kanjia_price;type:decimal(10,2);comment:砍价价格" json:"kanjiaPrice"`
Limitation bool `gorm:"column:limitation;type:tinyint(1);comment:限制" json:"limitation"`
LogisticsId int64 `gorm:"column:logistics_id;type:bigint(11);comment:物流id" json:"logisticsId"`
MaxCoupons int64 `gorm:"column:max_coupons;type:bigint(11);comment:最大使用优惠券数量" json:"maxCoupons"`
Miaosha bool `gorm:"column:miaosha;type:tinyint(1);comment:秒杀" json:"miaosha"`
MinBuyNumber int64 `gorm:"column:min_buy_number;type:bigint(11);comment:最低购买数量" json:"minBuyNumber"`
MinPrice decimal.Decimal `gorm:"column:min_price;type:decimal(10,2);comment:最低价格" json:"minPrice"`
MinScore decimal.Decimal `gorm:"column:min_score;type:decimal(10,2);comment:需要积分数量" json:"minScore"`
Name string `gorm:"column:name;type:varchar(100);comment:商品名字" json:"name"`
NumberFav int64 `gorm:"column:number_fav;type:bigint(11);comment:喜欢数量" json:"numberFav"`
NumberGoodReputation decimal.Decimal `gorm:"column:number_good_reputation;type:decimal(10,2);comment:商品评分" json:"numberGoodReputation"`
NumberOrders int64 `gorm:"column:number_orders;type:bigint(11);comment:订单数量" json:"numberOrders"`
NumberReputation int64 `gorm:"column:number_reputation;type:bigint(11);comment:评分数量" json:"numberReputation"`
NumberSells int64 `gorm:"column:number_sells;type:bigint(11);comment:销售数量" json:"numberSells"`
OriginalPrice decimal.Decimal `gorm:"column:original_price;type:decimal(10,2);comment:原价" json:"originalPrice"`
Overseas bool `gorm:"column:overseas;type:tinyint(1);comment:海外直邮" json:"overseas"`
Paixu int64 `gorm:"column:paixu;type:bigint(11);comment:排序" json:"paixu"`
Persion int64 `gorm:"column:persion;type:bigint(11);comment:用户" json:"persion"`
Pic string `gorm:"column:pic;type:varchar(100);comment:图片" json:"pic"`
Pingtuan bool `gorm:"column:pingtuan;type:tinyint(1);comment:允许拼团" json:"pingtuan"`
PingtuanPrice decimal.Decimal `gorm:"column:pingtuan_price;type:decimal(10,2);comment:拼团价格" json:"pingtuanPrice"`
PropertyIds string `gorm:"column:property_ids;type:varchar(1000);comment:属性id" json:"propertyIds"`
RecommendStatus int64 `gorm:"column:recommend_status;type:bigint(11);comment:推荐状态" json:"recommendStatus"`
SeckillBuyNumber int64 `gorm:"column:seckill_buy_number;type:bigint(11);comment:秒杀最低购买数量" json:"seckillBuyNumber"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:商店id" json:"shopId"`
Status enum.GoodsStatus `gorm:"column:status;type:bigint(11);comment:商品状态" json:"status"`
Stores int64 `gorm:"column:stores;type:bigint(11);comment:库存" json:"stores"`
Stores0Unsale bool `gorm:"column:stores0_unsale;type:tinyint(1);comment:自动下架" json:"stores0Unsale"`
SellBeginTime common.JsonTime `gorm:"column:sell_begin_time;type:datetime;comment:开始售卖时间;default:null" json:"sellBeginTime"`
SellEndTime common.JsonTime `gorm:"column:sell_end_time;type:datetime;comment:结束售卖时间;default:null" json:"sellEndTime"`
Weight decimal.Decimal `gorm:"column:weight;type:decimal(10,2);default:0.00;comment:重量,kg" json:"weight"`
Type int64 `gorm:"column:type;type:bigint(11);comment:类型" json:"type"`
Unit string `gorm:"column:unit;type:varchar(100);comment:单位" json:"unit"`
}
商品
func (*BeeShopGoods) TableName ¶
func (m *BeeShopGoods) TableName() string
type BeeShopGoodsAddition ¶
type BeeShopGoodsAddition struct {
common.BaseModel
GoodsId int64 `gorm:"column:goods_id;type:bigint(20)" json:"goodsId"`
Name string `gorm:"column:name;type:varchar(100)" json:"name"`
Require bool `gorm:"column:require;type:tinyint(1)" json:"require"` //是否必选
Type enum.BeeShopGoodsAdditionType `gorm:"column:type;type:int(11)" json:"type"`
Pid int64 `gorm:"column:pid;type:bigint(20)" json:"pid"`
Items []*BeeShopGoodsAddition `gorm:"-" json:"items"`
Price decimal.Decimal `gorm:"column:price;type:decimal(10,2);default:0.00;comment:价格" json:"price"` //选择之后增加费用
}
func (*BeeShopGoodsAddition) TableName ¶
func (m *BeeShopGoodsAddition) TableName() string
type BeeShopGoodsCategory ¶
type BeeShopGoodsCategory struct {
common.BaseModel
IsUse bool `gorm:"column:is_use;type:tinyint(1);comment:是否启用" json:"isUse"`
Level int64 `gorm:"column:level;type:bigint(11);comment:等级" json:"level"`
Name string `gorm:"column:name;type:varchar(100);comment:名称" json:"name"`
Paixu int64 `gorm:"column:paixu;type:bigint(11);comment:排序" json:"paixu"`
Pid int64 `gorm:"column:pid;type:bigint(11);comment:父id" json:"pid"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:店铺id" json:"shopId"`
}
商品分类
func (*BeeShopGoodsCategory) TableName ¶
func (m *BeeShopGoodsCategory) TableName() string
type BeeShopGoodsContent ¶
type BeeShopGoodsContent struct {
common.BaseModel
GoodsId int64 `gorm:"column:goods_id;type:bigint(20)" json:"goodsId"`
Content string `gorm:"column:content;type:longblob" json:"content"`
}
func (*BeeShopGoodsContent) TableName ¶
func (m *BeeShopGoodsContent) TableName() string
type BeeShopGoodsImages ¶
type BeeShopGoodsImages struct {
common.BaseModel
GoodsId int64 `gorm:"column:goods_id;type:bigint(20)" json:"goodsId"`
Pic string `gorm:"column:pic;type:varchar(255)" json:"pic"`
}
func (*BeeShopGoodsImages) TableName ¶
func (m *BeeShopGoodsImages) TableName() string
type BeeShopGoodsProp ¶
type BeeShopGoodsProp struct {
common.BaseModel
PropertyId int64 `gorm:"column:property_id;type:bigint(20)" json:"propertyId"` //父属性id
Name string `gorm:"column:name;type:varchar(100)" json:"name"`
Paixu int64 `gorm:"column:paixu;type:bigint(11)" json:"paixu"`
ChildsCurGoods []*BeeShopGoodsProp `gorm:"-" json:"childsCurGoods"`
}
func (*BeeShopGoodsProp) TableName ¶
func (m *BeeShopGoodsProp) TableName() string
type BeeShopGoodsSku ¶
type BeeShopGoodsSku struct {
common.BaseModel
GoodsId int64 `gorm:"column:goods_id;type:bigint(20);comment:商品id" json:"goodsId"`
Code string `gorm:"column:code;type:varchar(100);comment:sku编号" json:"code"`
FxType enum.FxType `gorm:"column:fx_type;type:int(11);comment:返现类型" json:"fxType"`
OriginalPrice decimal.Decimal `gorm:"column:original_price;type:decimal(10,2);comment:市场价" json:"originalPrice"`
PingtuanPrice decimal.Decimal `gorm:"column:pingtuan_price;type:decimal(10,2);comment:拼团价" json:"pingtuanPrice"`
Price decimal.Decimal `gorm:"column:price;type:decimal(10,2);comment:价格" json:"price"`
PropertyChildIds string `gorm:"column:property_child_ids;type:varchar(1000);comment:属性关系" json:"propertyChildIds"`
Score decimal.Decimal `gorm:"column:score;type:decimal(10,2);comment:需要积分" json:"score"`
Stores int64 `gorm:"column:stores;type:bigint(20);comment:库存" json:"stores"`
Weight decimal.Decimal `gorm:"column:weight;type:decimal(10,2);comment:重量" json:"weight"`
PropertyChildNames string `gorm:"-" json:"propertyChildNames"`
}
func (*BeeShopGoodsSku) TableName ¶
func (m *BeeShopGoodsSku) TableName() string
type BeeShopInfo ¶
type BeeShopInfo struct {
common.BaseModel
Address string `gorm:"column:address;type:varchar(100);comment:地址" json:"address"`
BindUid int64 `gorm:"column:bind_uid;type:bigint(11);comment:绑定用户id" json:"bindUid"`
CityId string `gorm:"column:city_id;type:varchar(100);comment:城市id" json:"cityId"`
CyTablePayMod enum.CyTablePayMod `gorm:"column:cy_table_pay_mod;type:bigint(11);comment:支付方式" json:"cyTablePayMod"`
DistrictId string `gorm:"column:district_id;type:varchar(100);comment:地区id" json:"districtId"`
ExpressType string `gorm:"column:express_type;type:varchar(100);comment:快递类型" json:"expressType"`
GoodsNeedCheck bool `gorm:"column:goods_need_check;type:tinyint(1);comment:接单需商家确认" json:"goodsNeedCheck"`
Latitude float64 `gorm:"column:latitude;type:double(9,6);comment:纬度" json:"latitude"`
LinkPhone string `gorm:"column:link_phone;type:varchar(100);comment:联系人手机号" json:"linkPhone"`
LinkMan string `gorm:"column:link_man;type:varchar(100);comment:联系人" json:"linkMan"`
Longitude float64 `gorm:"column:longitude;type:double(9,6);comment:经度" json:"longitude"`
Name string `gorm:"column:name;type:varchar(100);comment:店名" json:"name"`
Number string `gorm:"column:number;type:varchar(100);comment:门店编号" json:"number"`
NumberFav int64 `gorm:"column:number_fav;type:bigint(11);comment:喜欢人数" json:"numberFav"`
NumberGoodReputation int64 `gorm:"column:number_good_reputation;type:bigint(11);comment:商品评分" json:"numberGoodReputation"`
NumberOrder int64 `gorm:"column:number_order;type:bigint(11);comment:下单数" json:"numberOrder"`
NumberReputation int64 `gorm:"column:number_reputation;type:bigint(11);comment:店铺评分" json:"numberReputation"`
OpenScan bool `gorm:"column:open_scan;type:tinyint(1);comment:开启点餐" json:"openScan"`
OpenWaimai bool `gorm:"column:open_waimai;type:tinyint(1);comment:开启外卖" json:"openWaimai"`
OpenZiqu bool `gorm:"column:open_ziqu;type:tinyint(1);comment:开启自取" json:"openZiqu"`
OpeningHours string `gorm:"column:opening_hours;type:varchar(100);comment:开店时间" json:"openingHours"`
Paixu int64 `gorm:"column:paixu;type:bigint(11);comment:排序" json:"paixu"`
ProvinceId string `gorm:"column:province_id;type:varchar(100);comment:省id" json:"provinceId"`
RecommendStatus int64 `gorm:"column:recommend_status;type:bigint(11);comment:推荐状态" json:"recommendStatus"`
ServiceDistance float64 `gorm:"column:service_distance;type:float(10,2);comment:服务距离" json:"serviceDistance"`
Status enum.BeeShopStatus `gorm:"column:status;type:bigint(11);comment:状态" json:"status"`
StatusStr string `gorm:"-" json:"statusStr"`
TaxGst decimal.Decimal `gorm:"column:tax_gst;type:bigint(11);comment:发票" json:"taxGst"`
TaxService decimal.Decimal `gorm:"column:tax_service;type:bigint(11);comment:发票服务" json:"taxService"`
Type string `gorm:"column:type;type:varchar(100);comment:店铺类型" json:"type"`
Characteristic string `gorm:"column:type;type:varchar(1000);comment:特色" json:"characteristic"`
BusinessScope string `gorm:"column:type;type:varchar(1000);comment:经营范围" json:"businessScope"`
Introduce string `gorm:"column:type;type:varchar(1000);comment:介绍" json:"introduce"`
WorkStatus int64 `gorm:"column:work_status;type:bigint(11);comment:营业状态,0正常" json:"workStatus"`
Distance float64 `gorm:"-" json:"distance"`
}
shop_info
func (*BeeShopInfo) FillData ¶
func (m *BeeShopInfo) FillData(lat, lon float64)
func (*BeeShopInfo) TableName ¶
func (m *BeeShopInfo) TableName() string
type BeeShopLogisticsFreeShipping ¶
type BeeShopLogisticsFreeShipping struct {
Default bool `json:"default,omitempty"`
Remark string `json:"remark"`
Names []string `json:"names"`
CityIds []string `json:"cityIds"`
Type enum.BeeLogisticsType `json:"type"`
Number decimal.Decimal `json:"number"`
RegionId string `json:"regionId"`
}
BeeShopLogisticsFreeShipping 条件包邮配置
type BeeShoppingCart ¶
type BeeShoppingCart struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(11);comment:uid" json:"uid"`
GoodsId int64 `gorm:"column:goods_id;type:bigint(11);comment:商品id" json:"goodsId"`
CategoryId int64 `gorm:"column:category_id;type:bigint(11);comment:分类id" json:"categoryId"`
Key string `gorm:"column:key;type:varchar(100);comment:唯一key" json:"key"`
LogisticsId int64 `gorm:"column:logistics_id;type:bigint(11);comment:物流id" json:"logisticsId"`
Name string `gorm:"column:name;type:varchar(100);comment:商品名" json:"name"`
Number int64 `gorm:"column:number;type:bigint(11);comment:数量" json:"number"`
Price decimal.Decimal `gorm:"column:price;type:decimal(10,2);comment:加入购物车价格" json:"price"`
Selected bool `gorm:"column:selected;type:tinyint(1);comment:勾选" json:"selected"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:店铺id" json:"shopId"`
SkuId int64 `gorm:"column:sku_id;type:bigint(20);comment:sku id" json:"skuId"`
PropertyChildIds string `gorm:"column:property_child_ids;type:varchar(100);comment:属性" json:"propertyChildIds"`
}
BeeShoppingCart 购物车
func (*BeeShoppingCart) TableName ¶
func (m *BeeShoppingCart) TableName() string
type BeeSignLog ¶
type BeeSignLog struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(11);comment:用户id" json:"uid"`
Continues int `gorm:"column:continuous;type:bigint(11);comment:连续签到次数" json:"continuous"`
Score int64 `gorm:"column:score;type:bigint(20);comment:获得积分" json:"score"`
}
root
func (*BeeSignLog) TableName ¶
func (m *BeeSignLog) TableName() string
type BeeToken ¶
type BeeToken struct {
common.BaseModel
SessionKey string `gorm:"column:session_key;type:varchar(100);NOT NULL;default:''" json:"session_key"`
Token string `gorm:"column:token;unique,type:varchar(100);NOT NULL" json:"token"`
Uid int64 `gorm:"column:uid;type:bigint(20);NOT NULL" json:"uid"`
ExpireAt int64 `gorm:"column:expire_at;type:bigint(20);NOT NULL" json:"expire_at"`
}
type BeeUploadFile ¶
type BeeUploadFile struct {
common.BaseModel
Domain string `gorm:"column:domain;type:varchar(255);comment:domain" json:"domain"`
Filename string `gorm:"column:filename;type:varchar(255);comment:文件名" json:"filename"`
Dst string `gorm:"column:dst;type:varchar(255);comment:保存路径" json:"dst"`
ExpireAt int64 `gorm:"column:expire_at;type:bigint(20);comment:过期时间" json:"expireAt"`
Size int64 `gorm:"column:size;type:bigint(20);comment:文件大小" json:"size"`
}
func (*BeeUploadFile) TableName ¶
func (b *BeeUploadFile) TableName() string
type BeeUser ¶
type BeeUser struct {
common.BaseModel
ShowUid int64 `gorm:"column:show_uid;type:bigint(20);comment:用户show_id" json:"showUid"`
AvatarUrl string `gorm:"column:avatar_url;type:varchar(255);comment:头像" json:"avatarUrl"`
Birthday string `gorm:"column:birthday;type:varchar(100);comment:生日" json:"birthday"`
CardNumber string `gorm:"column:card_number;type:varchar(100);comment:会员卡号" json:"cardNumber"`
City string `gorm:"column:city;type:varchar(100);comment:城市" json:"city"`
DateLogin common.JsonTime `gorm:"column:date_login;type:datetime;comment:登录时间" json:"dateLogin"`
Gender int `gorm:"column:gender;type:bigint(11);comment:性别" json:"gender"`
IpAdd string `gorm:"column:ip_add;type:varchar(100);comment:注册ip" json:"ipAdd"`
IpLogin string `gorm:"column:ip_login;type:varchar(100);comment:登录ip" json:"ipLogin"`
IsFaceCheck bool `gorm:"column:is_face_check;type:tinyint(1);comment:人脸识别" json:"isFaceCheck"`
IsIdcardCheck bool `gorm:"column:is_idcard_check;type:tinyint(1);comment:身份证识别" json:"isIdcardCheck"`
IsManager bool `gorm:"column:is_manager;type:tinyint(1);comment:管理员" json:"isManager"`
IsSeller bool `gorm:"column:is_seller;type:tinyint(1);comment:销售人员" json:"isSeller"`
IsSendRegisterCoupons bool `gorm:"column:is_send_register_coupons;type:tinyint(1);comment:已发放注册优惠券" json:"isSendRegisterCoupons"`
IsShopManager bool `gorm:"column:is_shop_manager;type:tinyint(1);comment:店长" json:"isShopManager"`
IsTeamLeader bool `gorm:"column:is_team_leader;type:tinyint(1);comment:团长" json:"isTeamLeader"`
IsTeamMember bool `gorm:"column:is_team_member;type:tinyint(1);comment:团员" json:"isTeamMember"`
IsUserAttendant bool `gorm:"column:is_user_attendant;type:tinyint(1);comment:关注用户" json:"isUserAttendant"`
IsVirtual bool `gorm:"column:is_virtual;type:tinyint(1);comment:是否虚拟人" json:"isVirtual"`
Nick string `gorm:"column:nick;type:varchar(100);comment:名字" json:"nick"`
Province string `gorm:"column:province;type:varchar(100);comment:所在省" json:"province"`
VipLevel int64 `gorm:"column:vip_level;type:bigint(20);comment:vip等级" json:"vipLevel"`
Source enum.BeeUserSource `gorm:"column:source;type:bigint(11);comment:注册来源" json:"source"`
Status enum.BeeUserStatus `gorm:"column:status;type:bigint(11);comment:状态" json:"status"`
Mobile string `gorm:"column:mobile;type:varchar(100)" json:"mobile"`
SessionKey string `gorm:"-" json:"session_key"`
}
BeeUser
func (*BeeUser) GetSessionKey ¶
type BeeUserAddress ¶
type BeeUserAddress struct {
common.BaseModel
Address string `gorm:"column:address;type:varchar(100);comment:详细地址" json:"address"`
AreaStr string `gorm:"column:area_str;type:varchar(100);comment:地区" json:"areaStr"`
CityId string `gorm:"column:city_id;type:varchar(100);comment:地区码" json:"cityId"`
CityStr string `gorm:"column:city_str;type:varchar(100);comment:城市" json:"cityStr"`
DistrictId string `gorm:"column:district_id;type:varchar(100);comment:地区id" json:"districtId"`
IsDefault bool `gorm:"column:is_default;type:tinyint(1);comment:默认地址" json:"isDefault"`
Latitude float64 `gorm:"column:latitude;type:double(9,6);comment:纬度" json:"latitude"`
LinkMan string `gorm:"column:link_man;type:varchar(100);comment:联系人" json:"linkMan"`
Longitude float64 `gorm:"column:longitude;type:double(9,6);comment:经度" json:"longitude"`
Mobile string `gorm:"column:mobile;type:varchar(100);comment:联系电话" json:"mobile"`
ProvinceId string `gorm:"column:province_id;type:varchar(100);comment:省代码" json:"provinceId"`
ProvinceStr string `gorm:"column:province_str;type:varchar(100);comment:省份" json:"provinceStr"`
Status int64 `gorm:"column:status;type:bigint(11);comment:状态" json:"status"`
Uid int64 `gorm:"column:uid;type:bigint(11);comment:用户id" json:"uid"`
}
BeeUserAddress
func (*BeeUserAddress) TableName ¶
func (m *BeeUserAddress) TableName() string
type BeeUserAmount ¶
type BeeUserAmount struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20);comment:用户id" json:"uid"`
Balance decimal.Decimal `gorm:"column:balance;type:double;comment:余额" json:"balance"`
Freeze decimal.Decimal `gorm:"column:freeze;type:decimal(20,2);comment:冻结金额" json:"freeze"`
FxCommisionPaying decimal.Decimal `gorm:"column:fx_commision_paying;type:decimal(20,2);comment:佣金" json:"fx_commision_paying"`
Growth decimal.Decimal `gorm:"column:growth;type:decimal(20,2);comment:成长值" json:"growth"`
Score decimal.Decimal `gorm:"column:score;type:decimal(20,2);comment:积分" json:"score"`
ScoreLastRound decimal.Decimal `gorm:"column:score_last_round;type:decimal(20,2);comment:上一个周期的积分" json:"score_last_round"`
TotalPayAmount decimal.Decimal `gorm:"column:total_pay_amount;type:decimal(20,2);comment:支付总额" json:"total_pay_amount"`
TotalPayNumber decimal.Decimal `gorm:"column:total_pay_number;type:decimal(20,2);comment:支付订单数" json:"total_pay_number"`
TotalScore decimal.Decimal `gorm:"column:total_score;type:decimal(20,2);comment:总积分" json:"total_score"`
TotalWithdraw decimal.Decimal `gorm:"column:total_withdraw;type:decimal(20,2);comment:撤回次数" json:"total_withdraw"`
TotalConsumed decimal.Decimal `gorm:"column:total_consumed;type:decimal(20,2);comment:累计消费金额" json:"total_consumed"`
Pwd string `gorm:"column:pwd;type:varchar(100);comment:密码" json:"-"`
Salt string `gorm:"column:salt;type:varchar(100);comment:salt" json:"-"`
}
BeeUserAmount 用户资产
func (*BeeUserAmount) GetPwdEncode ¶
func (m *BeeUserAmount) GetPwdEncode(pwd string) string
func (*BeeUserAmount) TableName ¶
func (m *BeeUserAmount) TableName() string
type BeeUserBalanceLog ¶
type BeeUserBalanceLog struct {
common.BaseModel
OrderId string `gorm:"column:order_id;type:varchar(150);comment:订单id" json:"order_id"`
BalanceType enum.BalanceType `gorm:"column:balance_type;type:int(11);comment:1金币,2积分" json:"balance_type"`
Num decimal.Decimal `gorm:"column:num;type:decimal(20,2);comment:数量" json:"num"`
Uid int64 `gorm:"column:uid;type:bigint(20);comment:用户id" json:"uid"`
Mark string `gorm:"column:mark;type:varchar(200);comment:备注" json:"mark"`
}
func (*BeeUserBalanceLog) TableName ¶
func (m *BeeUserBalanceLog) TableName() string
type BeeUserCoupon ¶
type BeeUserCoupon struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20);comment:用户id" json:"uid"`
DateStart common.JsonTime `gorm:"column:date_start;type:datetime(3);comment:可以使用时间" json:"dateStart"`
ExpiryMillis int64 `gorm:"column:expiry_millis;type:bigint(11);comment:过期时间(毫秒)" json:"expiryMillis"`
Money decimal.Decimal `gorm:"column:money;type:decimal(20,2);comment:金额" json:"money"`
MoneyHreshold decimal.Decimal `gorm:"column:money_hreshold;type:bigint(11);comment:满xx可用" json:"moneyHreshold"`
MoneyMin decimal.Decimal `gorm:"column:money_min;type:bigint(11);comment:优惠券面额范围" json:"moneyMin"`
MoneyMax decimal.Decimal `gorm:"column:money_max;type:bigint(11);comment:优惠券面额范围" json:"moneyMax"`
MoneyType enum.CouponMoneyType `gorm:"column:money_type;type:bigint(11);comment:优惠券类型" json:"moneyType"`
Name string `gorm:"column:name;type:varchar(100);comment:优惠券名字" json:"name"`
OnlyFreight bool `gorm:"column:only_freight;type:bool;comment:仅抵扣运费" json:"onlyFreight"`
Pid int64 `gorm:"column:pid;type:bigint(11);comment:优惠券id" json:"pid"`
ShopId int64 `gorm:"column:shop_id;type:bigint(11);comment:店铺id" json:"shopId"`
Source string `gorm:"column:source;type:varchar(100);comment:管理员批量发放" json:"source"`
Status enum.CouponStatus `gorm:"column:status;type:int(11);comment:使用状态,0未使用,1使用中,2已使用" json:"status"`
}
用户优惠券列表
func (*BeeUserCoupon) IsExpire ¶
func (m *BeeUserCoupon) IsExpire() bool
func (*BeeUserCoupon) TableName ¶
func (m *BeeUserCoupon) TableName() string
type BeeUserCouponLog ¶
type BeeUserCouponLog struct {
common.BaseModel
CouponId int64 `gorm:"column:coupon_id;type:bigint(11);comment:优惠券id" json:"couponId"`
Uid int64 `gorm:"column:uid;type:bigint(11);comment:用户id" json:"uid"`
Uniq string `gorm:"column:uniq;type:varchar(100);comment:唯一值去重" json:"uniq"`
Remark string `gorm:"column:remark;type:varchar(100);comment:备注" json:"remark"`
Type enum.CouponLogType `gorm:"column:type;type:bigint(11);comment:类型,1发放,2使用" json:"type"`
}
func (*BeeUserCouponLog) TableName ¶
func (m *BeeUserCouponLog) TableName() string
type BeeUserDynamicCode ¶
type BeeUserDynamicCode struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20)" json:"uid"`
Code string `gorm:"column:code;type:varchar(100)" json:"code"`
ExpireAt int64 `gorm:"column:expire_at;type:bigint(20)" json:"expireAt"`
}
func (*BeeUserDynamicCode) TableName ¶
func (m *BeeUserDynamicCode) TableName() string
type BeeUserLevel ¶
type BeeUserLevel struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20)" json:"uid"`
Level int64 `gorm:"column:level;type:bigint(20)" json:"level"`
PayAmount decimal.Decimal `gorm:"column:pay_amount;type:decimal(10,2);comment:消费总额" json:"payAmount"` // 消费总额
}
func (*BeeUserLevel) TableName ¶
func (m *BeeUserLevel) TableName() string
type BeeUserMapper ¶
type BeeUserMapper struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20)" json:"uid"`
Source enum.BeeUserSource `gorm:"column:source;type:bigint(20)" json:"source"`
OpenId string `gorm:"column:open_id;unique;type:varchar(200)" json:"openId"`
UnionId string `gorm:"column:union_id;type:varchar(200)" json:"unionId"`
}
func (*BeeUserMapper) TableName ¶
func (m *BeeUserMapper) TableName() string
type BeeUserMobile ¶
type BeeUserMobile struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20)" json:"uid"`
Mobile string `gorm:"column:mobile;type:varchar(100)" json:"mobile"`
}
func (*BeeUserMobile) TableName ¶
func (m *BeeUserMobile) TableName() string
type BeeUserQueue ¶
type BeeUserQueue struct {
common.BaseModel
Uid int64 `gorm:"column:uid;type:bigint(20)" json:"uid"`
QueueId int64 `gorm:"column:queue_id;type:bigint(20)" json:"queueId"`
Number int64 `gorm:"column:number;type:bigint(20)" json:"number"`
Status enum.BeeUserQueueStatus `gorm:"column:status;type:int(10);comment:状态" json:"status"`
}
func (*BeeUserQueue) TableName ¶
func (m *BeeUserQueue) TableName() string
type BeeWxConfig ¶
type BeeWxConfig struct {
common.BaseModel
AppId string `gorm:"column:app_id;type:varchar(100);default:'';NOT NULL" json:"appId"`
AppSecret string `gorm:"column:app_secret;type:varchar(100);default:'';NOT NULL" json:"appSecret"`
Token string `gorm:"column:token;type:varchar(100);default:'';NOT NULL" json:"token"`
}
func (*BeeWxConfig) TableName ¶
func (m *BeeWxConfig) TableName() string
type BeeWxPayConfig ¶
type BeeWxPayConfig struct {
common.BaseModel
MchId string `gorm:"column:mchid;type:varchar(100);NOT NULL;default:''" json:"mchid"`
AppId string `gorm:"column:app_id;type:varchar(100);NOT NULL;default:''" json:"appId"`
AppSecret string `gorm:"column:app_secret;type:varchar(100);NOT NULL;default:''" json:"appSecret"`
Token string `gorm:"column:token;type:varchar(100);NOT NULL;default:''" json:"token"`
PrivateCert string `gorm:"column:private_cert;type:varchar(2000);NOT NULL;default:'';comment:v3私钥" json:"privateCert"` // 私钥
NotifyUrl string `gorm:"column:notify_url;type:varchar(255);NOT NULL;default:'';comment:回调地址" json:"notifyUrl"`
Debug bool `gorm:"column:debug;type:tinyint(1);NOT NULL;default:0" json:"debug"`
}
func (*BeeWxPayConfig) TableName ¶
func (m *BeeWxPayConfig) TableName() string
type RechargeSendRule ¶
type RechargeSendRule struct {
common.BaseModel
Confine decimal.Decimal `gorm:"column:confine;type:decimal(10,2);comment:充值金额" json:"confine"`
Send decimal.Decimal `gorm:"column:send;type:decimal(10,2);comment:赠送金额" json:"send"`
Loop bool `gorm:"column:loop;type:tinyint(1);comment:循环赠送" json:"loop"` // 每满多少送多少
}
RechargeSendRule 充值赠送规则
func (RechargeSendRule) TableName ¶
func (RechargeSendRule) TableName() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.