Documentation
¶
Index ¶
- func CreateOrSaveWxAppConfig(userId int64, wxConfig *config2.WxConfig) error
- type AddressSrv
- func (srv *AddressSrv) AddAddress(c context.Context, address *model.BeeUserAddress) (*proto.UserAddressResp, error)
- func (srv *AddressSrv) Default(c context.Context) (*proto.UserAddressDetailResp, error)
- func (srv *AddressSrv) DeleteAddress(userId int64, id int64) error
- func (srv *AddressSrv) GetAddress(c context.Context, id int64) (*proto.UserAddressDetailResp, error)
- func (srv *AddressSrv) GetAddressDto(c context.Context, uid int64, id int64) (*model.BeeUserAddress, error)
- func (srv *AddressSrv) ListAddress(c context.Context) ([]*proto.UserAddressResp, error)
- func (srv *AddressSrv) SaveAddress(c context.Context, address *proto.SaveAddressReq) (*proto.UserAddressResp, error)
- func (srv *AddressSrv) SetDefault(c context.Context, uid int64, addressId int64) error
- type BalanceSrv
- func (srv *BalanceSrv) GetAmount(ctx context.Context, uid int64) (*model.BeeUserAmount, error)
- func (srv *BalanceSrv) InitAmount(ctx context.Context, uid int64) (*model.BeeUserAmount, error)
- func (srv *BalanceSrv) OperAmount(c context.Context, userId int64, amountType enum.BalanceType, ...) (*model.BeeUserAmount, error)
- func (srv *BalanceSrv) OperAmountByTx(c context.Context, tx *gorm.DB, userId int64, amountType enum.BalanceType, ...) (*model.BeeUserAmount, error)
- type BannerSrv
- type BaseSrv
- type CmsSrv
- type CommentSrv
- type CommonSrv
- type CouponSrv
- func (srv *CouponSrv) CouponDetail(c context.Context, id int64) (*proto.CouponDetailResp, error)
- func (srv *CouponSrv) FetchCoupon(c context.Context, userInfo *model.BeeUser, id int64) error
- func (srv *CouponSrv) GetCoupons(showInFront int) ([]*model.BeeCoupon, error)
- func (srv *CouponSrv) GetMyCouponListByStatus(userId int64, status enum.CouponStatus) ([]*model.BeeUserCoupon, error)
- func (srv *CouponSrv) GetMyCouponStatistics(userId int64) (*proto.MyCouponStatisticsResp, error)
- func (srv *CouponSrv) GetUserCoupon(userId, id int64) (*model.BeeUserCoupon, error)
- func (srv *CouponSrv) GetUserCouponByIds(c context.Context, userId int64, ids []int64) ([]*model.BeeUserCoupon, error)
- func (srv *CouponSrv) ReturnCoupon(c context.Context, tx *gorm.DB, userId int64, id int64) error
- func (srv *CouponSrv) UseCoupon(c context.Context, tx *gorm.DB, userId int64, id int64) error
- type CyTableSrv
- type DadaSrv
- type DeliverySrv
- func (s *DeliverySrv) AddOrder(ctx context.Context, t enum.DeliveryType, preOrderNo string) error
- func (s *DeliverySrv) AddOrderDirect(ctx context.Context, t enum.DeliveryType, req *proto.AddOrderDirectReq) (*proto.AddOrderDirectResp, error)
- func (s *DeliverySrv) BindYunlaba(ctx context.Context, shopId int64, appId string, state string) error
- func (s *DeliverySrv) CancelOrder(ctx context.Context, t enum.DeliveryType, req *proto.CancelDeliverOrderReq) (*proto.CancelDeliverOrderRes, error)
- func (s *DeliverySrv) GetNotifyUrl(ctx context.Context, t enum.DeliveryType) (string, error)
- func (s *DeliverySrv) QueryDeliveryFee(ctx context.Context, t enum.DeliveryType, req *proto.QueryDeliverFeeReq) (*proto.QueryDeliverFeeResult, error)
- func (s *DeliverySrv) QueryDetail(ctx context.Context, t enum.DeliveryType, peisongOrderNo string) (*proto.QueryDeliveryResult, error)
- func (s *DeliverySrv) SupportPreOrder(ctx context.Context, t enum.DeliveryType) (bool, error)
- type DfsSrv
- type FeeSrv
- type FreightTplSrv
- type GoodsSrv
- func (srv *GoodsSrv) GetCategoryAll(c context.Context) ([]*model.BeeShopGoodsCategory, error)
- func (srv *GoodsSrv) GetGoodsAddition(c context.Context, goodsId int64) ([]*model.BeeShopGoodsAddition, error)
- func (srv *GoodsSrv) GetGoodsDetail(c context.Context, id int64, regionId string) (*proto.GoodsDetailResp, error)
- func (srv *GoodsSrv) GetGoodsList(c context.Context, shopId int64, categoryId int64, page, pageSize int) ([]*model.BeeShopGoods, error)
- func (srv *GoodsSrv) GetGoodsWithSku(c context.Context, goodsId int64, propertyChildIds string) (*model.BeeShopGoods, *model.BeeShopGoodsSku, error)
- func (srv *GoodsSrv) GetPrice(c context.Context, goodsId int64, propertyChildIds string) (*proto.GoodsPriceResp, error)
- func (srv *GoodsSrv) GetPropsByIds(c context.Context, propIds []int64) ([]*model.BeeShopGoodsProp, error)
- type LogisticsItem
- type NoticeSrv
- type OrderSrv
- func (s *OrderSrv) CancelDelivery(ctx context.Context, peisongId int64, reasonId int, reason string) error
- func (s *OrderSrv) Close(c context.Context, orderId int64, remark string) error
- func (s *OrderSrv) CreateOrder(c context.Context, ip string, req *proto.CreateOrderReq) (*proto.CreateOrderResp, error)
- func (s *OrderSrv) Delete(c context.Context, orderId int64) error
- func (s *OrderSrv) Delivery(c context.Context, orderId int64) error
- func (s *OrderSrv) Detail(c context.Context, orderId int64, hxNumber string) (*proto.GetOrderDetailResp, error)
- func (s *OrderSrv) GetOrderByOrderId(c context.Context, orderId int64) (*proto.OrderDto, error)
- func (s *OrderSrv) GetOrderByOrderNo(c context.Context, orderNo string) (*proto.OrderDto, error)
- func (s *OrderSrv) GetOrderDetailByOrderId(c context.Context, orderId int64) (*proto.OrderDetailDto, error)
- func (s *OrderSrv) GetPeisongDetail(ctx context.Context, peisongId int64) (*proto.QueryDeliveryResult, error)
- func (s *OrderSrv) GetPeisongOrderInfoById(c context.Context, id int64) (*model.BeeOrderPeisong, error)
- func (s *OrderSrv) GetPeisongOrderInfoByPeisongOrderId(c context.Context, peisongOrderId string) (*model.BeeOrderPeisong, error)
- func (s *OrderSrv) GetPeisongOrderInfoByPeisongOrderNo(c context.Context, peisongOrderNo string) (*model.BeeOrderPeisong, error)
- func (s *OrderSrv) Hx(c context.Context, number string) error
- func (s *OrderSrv) List(c context.Context, req *proto.ListOrderReq) (*proto.ListOrderResp, error)
- func (s *OrderSrv) NotifyDelivery(ctx context.Context, orderId int64) error
- func (s *OrderSrv) PayByBalance(c context.Context, ip, orderId string, code string, pwd string) error
- func (s *OrderSrv) PayOrderByBalance(c context.Context, ip string, payLog *model.BeePayLog, orderId string, ...) error
- func (s *OrderSrv) PayOrderOffline(c context.Context, orderId string, extraTx ...func(tx *gorm.DB) error) error
- func (s *OrderSrv) Reputation(c context.Context, req *proto.BeeOrderReputationReq) error
- func (s *OrderSrv) ShippedBeeOrder(ctx context.Context, orderId int64) error
- func (s *OrderSrv) StartDaemon(ctx context.Context, wg *sync.WaitGroup)
- func (s *OrderSrv) UpdatePeisongOrderInfoStatus(c context.Context, info *model.BeeOrderPeisong) error
- type PaySrv
- func (fee *PaySrv) GetSendRuleByAmount(ctx context.Context, payTotal decimal.Decimal, userId int64) (*model.RechargeSendRule, error)
- func (fee *PaySrv) GetWechatPayClient(ctx context.Context, cfg *WxPayConfig) (*wechat.ClientV3, error)
- func (fee *PaySrv) GetWxAppPayInfo(c context.Context, money decimal.Decimal, remark string, nextAction string, ...) (*proto.GetWxPayInfoRes, error)
- func (fee *PaySrv) PayBill(c context.Context, shopId int64, money decimal.Decimal, pwd string, ...) (*proto.PayBillRes, error)
- func (fee *PaySrv) RechargeSendRule(c context.Context) ([]*model.RechargeSendRule, error)
- func (fee *PaySrv) WxNotify(c context.Context, ip string, req *wechat.V3NotifyReq) error
- type PrinterSrv
- type QueueSrv
- func (srv *QueueSrv) CallQueue(c context.Context, id int64, curNumber int64) error
- func (srv *QueueSrv) Get(c context.Context, queueId int64, mobile string) error
- func (srv *QueueSrv) GetMyQueueInfo(c context.Context, queueId int64, status string) ([]*proto.MyQueue, error)
- func (srv *QueueSrv) GetQueueTypes(c context.Context, status string) ([]*model.BeeQueue, error)
- func (srv *QueueSrv) NextBeeQueue(c context.Context, id int64) error
- func (srv *QueueSrv) PassQueue(c context.Context, id int64) error
- func (srv *QueueSrv) ReCallBeeQueue(ctx context.Context, id int64) error
- type RegionSrv
- type ScoreSrv
- func (srv *ScoreSrv) GetLastSignLog(c context.Context) (*model.BeeSignLog, error)
- func (srv *ScoreSrv) GetScoreLogs(c context.Context, page int64, size int64) ([]*model.BeeScoreLog, error)
- func (srv *ScoreSrv) GetSignLogs(c context.Context) ([]*model.BeeSignLog, error)
- func (srv *ScoreSrv) Sign(c context.Context) error
- func (srv *ScoreSrv) WxaGroup(c context.Context) error
- type ShopSrv
- type ShoppingCartSrv
- func (srv *ShoppingCartSrv) Add(c context.Context, goodsId int64, num int64, sku string, addition string) (*proto.ShoppingCartInfo, error)
- func (srv *ShoppingCartSrv) Empty(c context.Context) (*proto.ShoppingCartInfo, error)
- func (srv *ShoppingCartSrv) GetShoppingCart(c context.Context, userId int64) (*proto.ShoppingCartInfo, error)
- func (srv *ShoppingCartSrv) ModifyNumber(c context.Context, userId int64, key string, number int64) (*proto.ShoppingCartInfo, error)
- func (srv *ShoppingCartSrv) Remove(c context.Context, key string) (*proto.ShoppingCartInfo, error)
- type TokenSrv
- func (srv *TokenSrv) CleanExpireToken() error
- func (srv *TokenSrv) CreateToken(c context.Context, uid int64, sessionKey string) (string, error)
- func (srv *TokenSrv) GetTokenInfoFromToken(token string) (*model.BeeToken, error)
- func (srv *TokenSrv) GetUserIdFromToken(token string) (int64, error)
- func (srv *TokenSrv) RefreshToken(token string) error
- type UserSrv
- func (srv *UserSrv) Amount(c context.Context, userId int64) (*proto.GetUserAmountResp, error)
- func (srv *UserSrv) BindWxMobile(c context.Context, req *proto.BindWxMobileReq) (string, error)
- func (srv *UserSrv) CashLog(c context.Context, userId int64, req *proto.CashLogReq) (*proto.CashLogResp, error)
- func (srv *UserSrv) CreateUser(c context.Context, tx *gorm.DB, user *model.BeeUser) error
- func (srv *UserSrv) CreateUserToken(c context.Context, userId int64, uid int64, openId string, sessionKey string) (*proto.AuthorizeResp, error)
- func (srv *UserSrv) GetDynamicUserCode(c context.Context) (string, error)
- func (srv *UserSrv) GetLevelByAmount(c context.Context, amount decimal.Decimal) (*model.BeeLevel, error)
- func (srv *UserSrv) GetMinLevel(c context.Context) (*model.BeeLevel, error)
- func (srv *UserSrv) GetUserInfo(c context.Context, token string) (*model.BeeUser, error)
- func (srv *UserSrv) GetUserInfoByUid(c context.Context, uid int64) (*model.BeeUser, error)
- func (srv *UserSrv) GetUserLevel(c context.Context, uid int64) (*model.BeeUserLevel, error)
- func (srv *UserSrv) GetUserWxOpenId(c context.Context) (string, error)
- func (srv *UserSrv) IncrUserLevelAmount(c context.Context, tx *gorm.DB, uid int64, payAmount decimal.Decimal) error
- func (srv *UserSrv) LevelList(c context.Context) (*proto.GetLevelListResp, error)
- func (srv *UserSrv) Login(c context.Context, code string) (*proto.AuthorizeResp, error)
- func (srv *UserSrv) Modify(user *model.BeeUser) error
- func (srv *UserSrv) PayLogs(c context.Context, userId int64, req *proto.PayLogsReq) (proto.PayLogsResp, error)
- type WxAppSrv
- type WxPayConfig
- type YunlabaSrv
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressSrv ¶
type AddressSrv struct {
BaseSrv
}
func GetAddressSrv ¶
func GetAddressSrv() *AddressSrv
func (*AddressSrv) AddAddress ¶
func (srv *AddressSrv) AddAddress(c context.Context, address *model.BeeUserAddress) (*proto.UserAddressResp, error)
func (*AddressSrv) Default ¶
func (srv *AddressSrv) Default(c context.Context) (*proto.UserAddressDetailResp, error)
func (*AddressSrv) DeleteAddress ¶
func (srv *AddressSrv) DeleteAddress(userId int64, id int64) error
func (*AddressSrv) GetAddress ¶
func (srv *AddressSrv) GetAddress(c context.Context, id int64) (*proto.UserAddressDetailResp, error)
func (*AddressSrv) GetAddressDto ¶
func (srv *AddressSrv) GetAddressDto(c context.Context, uid int64, id int64) (*model.BeeUserAddress, error)
func (*AddressSrv) ListAddress ¶
func (srv *AddressSrv) ListAddress(c context.Context) ([]*proto.UserAddressResp, error)
func (*AddressSrv) SaveAddress ¶
func (srv *AddressSrv) SaveAddress(c context.Context, address *proto.SaveAddressReq) (*proto.UserAddressResp, error)
func (*AddressSrv) SetDefault ¶
type BalanceSrv ¶
type BalanceSrv struct {
BaseSrv
}
func GetBalanceSrv ¶
func GetBalanceSrv() *BalanceSrv
func (*BalanceSrv) GetAmount ¶
func (srv *BalanceSrv) GetAmount(ctx context.Context, uid int64) (*model.BeeUserAmount, error)
func (*BalanceSrv) InitAmount ¶
func (srv *BalanceSrv) InitAmount(ctx context.Context, uid int64) (*model.BeeUserAmount, error)
func (*BalanceSrv) OperAmount ¶
func (*BalanceSrv) OperAmountByTx ¶
type BannerSrv ¶
type BannerSrv struct {
BaseSrv
}
func GetBannerSrv ¶
func GetBannerSrv() *BannerSrv
type CommentSrv ¶
type CommentSrv struct {
BaseSrv
}
func GetCommentSrv ¶
func GetCommentSrv() *CommentSrv
func (*CommentSrv) Add ¶
func (s *CommentSrv) Add(c context.Context, req *proto.CommentAddReq) error
type CommonSrv ¶
type CommonSrv struct {
BaseSrv
}
func GetCommonSrv ¶
func GetCommonSrv() *CommonSrv
func (*CommonSrv) GetDistance ¶
GetDistance 获取距离 lonA, latA分别为A点的纬度和经度 lonB, latB分别为B点的纬度和经度 返回的距离单位为米
func (*CommonSrv) GetMapQQDistance ¶
type CouponSrv ¶
type CouponSrv struct {
BaseSrv
}
func GetCouponSrv ¶
func GetCouponSrv() *CouponSrv
func (*CouponSrv) CouponDetail ¶
func (*CouponSrv) FetchCoupon ¶
func (*CouponSrv) GetCoupons ¶
func (*CouponSrv) GetMyCouponListByStatus ¶
func (srv *CouponSrv) GetMyCouponListByStatus(userId int64, status enum.CouponStatus) ([]*model.BeeUserCoupon, error)
func (*CouponSrv) GetMyCouponStatistics ¶
func (srv *CouponSrv) GetMyCouponStatistics(userId int64) (*proto.MyCouponStatisticsResp, error)
func (*CouponSrv) GetUserCoupon ¶
func (srv *CouponSrv) GetUserCoupon(userId, id int64) (*model.BeeUserCoupon, error)
func (*CouponSrv) GetUserCouponByIds ¶
func (*CouponSrv) ReturnCoupon ¶
type CyTableSrv ¶
type CyTableSrv struct {
BaseSrv
}
func GetCyTableSrv ¶
func GetCyTableSrv() *CyTableSrv
func (CyTableSrv) AddOrder ¶
func (s CyTableSrv) AddOrder(c context.Context, ip string, goods []*proto.BeeOrderGoods) error
func (CyTableSrv) CreateToken ¶
func (s CyTableSrv) CreateToken(c context.Context, info *model.BeeCyTable) (string, error)
CreateToken 扫码点餐需要一个虚拟用户token
func (CyTableSrv) Token ¶
func (s CyTableSrv) Token(c context.Context, tableId int64, key string) (*proto.CyTableTokenResp, error)
type DeliverySrv ¶
type DeliverySrv struct {
BaseSrv
}
func GetDeliverySrv ¶
func GetDeliverySrv() *DeliverySrv
func (*DeliverySrv) AddOrder ¶
func (s *DeliverySrv) AddOrder(ctx context.Context, t enum.DeliveryType, preOrderNo string) error
func (*DeliverySrv) AddOrderDirect ¶
func (s *DeliverySrv) AddOrderDirect(ctx context.Context, t enum.DeliveryType, req *proto.AddOrderDirectReq) (*proto.AddOrderDirectResp, error)
func (*DeliverySrv) BindYunlaba ¶
func (*DeliverySrv) CancelOrder ¶
func (s *DeliverySrv) CancelOrder(ctx context.Context, t enum.DeliveryType, req *proto.CancelDeliverOrderReq) (*proto.CancelDeliverOrderRes, error)
func (*DeliverySrv) GetNotifyUrl ¶
func (s *DeliverySrv) GetNotifyUrl(ctx context.Context, t enum.DeliveryType) (string, error)
func (*DeliverySrv) QueryDeliveryFee ¶
func (s *DeliverySrv) QueryDeliveryFee(ctx context.Context, t enum.DeliveryType, req *proto.QueryDeliverFeeReq) (*proto.QueryDeliverFeeResult, error)
func (*DeliverySrv) QueryDetail ¶
func (s *DeliverySrv) QueryDetail(ctx context.Context, t enum.DeliveryType, peisongOrderNo string) (*proto.QueryDeliveryResult, error)
func (*DeliverySrv) SupportPreOrder ¶
func (s *DeliverySrv) SupportPreOrder(ctx context.Context, t enum.DeliveryType) (bool, error)
type DfsSrv ¶
type DfsSrv struct {
BaseSrv
}
func (DfsSrv) FillFileUrl ¶
func (DfsSrv) ReplaceHtmlFilepath ¶
func (DfsSrv) SaveUploadedFile ¶
type FeeSrv ¶
type FeeSrv struct {
BaseSrv
}
func (*FeeSrv) GetPeiSongByDistance ¶
func (*FeeSrv) GetPeiSongById ¶
func (*FeeSrv) ListPeiSong ¶
type FreightTplSrv ¶
type FreightTplSrv struct {
BaseSrv
}
func GetFreightTplSrv ¶
func GetFreightTplSrv() *FreightTplSrv
func (*FreightTplSrv) GetBeeLogistics ¶
func (srv *FreightTplSrv) GetBeeLogistics(c context.Context, logisticsId int64, regionId string) (*proto.GoodsLogistics, error)
func (*FreightTplSrv) GetBeeLogisticsDtoByIds ¶
func (srv *FreightTplSrv) GetBeeLogisticsDtoByIds(c context.Context, logisticsIds []int64) ([]*model.BeeLogistics, error)
type GoodsSrv ¶
type GoodsSrv struct {
BaseSrv
}
func GetGoodsSrv ¶
func GetGoodsSrv() *GoodsSrv
func (*GoodsSrv) GetCategoryAll ¶
func (*GoodsSrv) GetGoodsAddition ¶
func (*GoodsSrv) GetGoodsDetail ¶
func (*GoodsSrv) GetGoodsList ¶
func (*GoodsSrv) GetGoodsWithSku ¶
func (srv *GoodsSrv) GetGoodsWithSku(c context.Context, goodsId int64, propertyChildIds string) (*model.BeeShopGoods, *model.BeeShopGoodsSku, error)
func (*GoodsSrv) GetPropsByIds ¶
type LogisticsItem ¶
type NoticeSrv ¶
type NoticeSrv struct {
BaseSrv
}
func GetNoticeSrv ¶
func GetNoticeSrv() *NoticeSrv
type OrderSrv ¶
type OrderSrv struct {
BaseSrv
}
func GetOrderSrv ¶
func GetOrderSrv() *OrderSrv
func (*OrderSrv) CancelDelivery ¶
func (s *OrderSrv) CancelDelivery(ctx context.Context, peisongId int64, reasonId int, reason string) error
CancelDelivery 取消配送
func (*OrderSrv) CreateOrder ¶
func (s *OrderSrv) CreateOrder(c context.Context, ip string, req *proto.CreateOrderReq) (*proto.CreateOrderResp, error)
CreateOrder 生成订单 token: 2139988c3b3611ef857c0a2c448f23fc goodsJsonStr: [{"propertyChildIds":",211245:1686933,211246:1686935,211247:1686938","goodsId":1808569,"number":1,"logisticsType":0,"inviter_id":0,"goodsTimesDay":"","goodsTimesItem":""}] remark: 订单备注测试 peisongType: zq isCanHx: true shopIdZt: 391592 shopNameZt: 龙楼店(文昌市龙楼镇) extJsonStr: {"联系电话":"18283848592","取餐时间":"09:30"}
func (*OrderSrv) GetOrderByOrderId ¶
func (*OrderSrv) GetOrderByOrderNo ¶
func (*OrderSrv) GetOrderDetailByOrderId ¶
func (*OrderSrv) GetPeisongDetail ¶
func (*OrderSrv) GetPeisongOrderInfoById ¶
func (*OrderSrv) GetPeisongOrderInfoByPeisongOrderId ¶
func (*OrderSrv) GetPeisongOrderInfoByPeisongOrderNo ¶
func (*OrderSrv) List ¶
func (s *OrderSrv) List(c context.Context, req *proto.ListOrderReq) (*proto.ListOrderResp, error)
func (*OrderSrv) NotifyDelivery ¶
NotifyDelivery 通知配送
func (*OrderSrv) PayByBalance ¶
func (*OrderSrv) PayOrderByBalance ¶
func (s *OrderSrv) PayOrderByBalance(c context.Context, ip string, payLog *model.BeePayLog, orderId string, thirdId string, amount decimal.Decimal, extraTx ...func(tx *gorm.DB) error) error
PayOrderByBalance 支付成功 amount 标志第三方支付金额,如果是用余额支付,请用0
func (*OrderSrv) PayOrderOffline ¶
func (*OrderSrv) Reputation ¶
func (*OrderSrv) ShippedBeeOrder ¶
func (*OrderSrv) StartDaemon ¶
func (*OrderSrv) UpdatePeisongOrderInfoStatus ¶
type PaySrv ¶
type PaySrv struct {
BaseSrv
// contains filtered or unexported fields
}
func (*PaySrv) GetSendRuleByAmount ¶
func (*PaySrv) GetWechatPayClient ¶
func (*PaySrv) GetWxAppPayInfo ¶
func (*PaySrv) RechargeSendRule ¶
type PrinterSrv ¶
type PrinterSrv struct {
BaseSrv
}
func GetPrinterSrv ¶
func GetPrinterSrv() *PrinterSrv
func (*PrinterSrv) StartDaemon ¶
func (srv *PrinterSrv) StartDaemon(ctx context.Context, wg *sync.WaitGroup)
func (*PrinterSrv) TestPrinter ¶
func (srv *PrinterSrv) TestPrinter(ctx context.Context, _printer *model.BeePrinter) error
type QueueSrv ¶
type QueueSrv struct {
BaseSrv
}
func GetQueueSrv ¶
func GetQueueSrv() *QueueSrv
func (*QueueSrv) GetMyQueueInfo ¶
func (*QueueSrv) GetQueueTypes ¶
func (*QueueSrv) NextBeeQueue ¶
type RegionSrv ¶
type RegionSrv struct {
BaseSrv
}
func GetRegionSrv ¶
func GetRegionSrv() *RegionSrv
func (*RegionSrv) GetAllChild ¶
func (*RegionSrv) GetAllProvince ¶
type ScoreSrv ¶
type ScoreSrv struct {
BaseSrv
}
func GetScoreSrv ¶
func GetScoreSrv() *ScoreSrv
func (*ScoreSrv) GetLastSignLog ¶
func (*ScoreSrv) GetScoreLogs ¶
func (*ScoreSrv) GetSignLogs ¶
type ShopSrv ¶
type ShopSrv struct {
BaseSrv
}
func GetShopSrv ¶
func GetShopSrv() *ShopSrv
func (*ShopSrv) GetShopInfo ¶
func (*ShopSrv) List ¶
func (srv *ShopSrv) List(c context.Context, req *proto.ListShopReq) (proto.ListShopResp, error)
type ShoppingCartSrv ¶
type ShoppingCartSrv struct {
BaseSrv
}
func GetShoppingCartSrv ¶
func GetShoppingCartSrv() *ShoppingCartSrv
func (*ShoppingCartSrv) Add ¶
func (srv *ShoppingCartSrv) Add(c context.Context, goodsId int64, num int64, sku string, addition string) (*proto.ShoppingCartInfo, error)
func (*ShoppingCartSrv) Empty ¶
func (srv *ShoppingCartSrv) Empty(c context.Context) (*proto.ShoppingCartInfo, error)
func (*ShoppingCartSrv) GetShoppingCart ¶
func (srv *ShoppingCartSrv) GetShoppingCart(c context.Context, userId int64) (*proto.ShoppingCartInfo, error)
func (*ShoppingCartSrv) ModifyNumber ¶
func (srv *ShoppingCartSrv) ModifyNumber(c context.Context, userId int64, key string, number int64) (*proto.ShoppingCartInfo, error)
func (*ShoppingCartSrv) Remove ¶
func (srv *ShoppingCartSrv) Remove(c context.Context, key string) (*proto.ShoppingCartInfo, error)
type TokenSrv ¶
type TokenSrv struct {
BaseSrv
}
func GetTokenSrv ¶
func GetTokenSrv() *TokenSrv
func (*TokenSrv) CleanExpireToken ¶
func (*TokenSrv) CreateToken ¶
func (*TokenSrv) GetTokenInfoFromToken ¶
func (*TokenSrv) GetUserIdFromToken ¶
func (*TokenSrv) RefreshToken ¶
type UserSrv ¶
type UserSrv struct {
BaseSrv
}
func GetUserSrv ¶
func GetUserSrv() *UserSrv
func (*UserSrv) BindWxMobile ¶
func (*UserSrv) CashLog ¶
func (srv *UserSrv) CashLog(c context.Context, userId int64, req *proto.CashLogReq) (*proto.CashLogResp, error)
func (*UserSrv) CreateUser ¶
func (*UserSrv) CreateUserToken ¶
func (*UserSrv) GetDynamicUserCode ¶
func (*UserSrv) GetLevelByAmount ¶
func (*UserSrv) GetMinLevel ¶
func (*UserSrv) GetUserInfo ¶
func (*UserSrv) GetUserInfoByUid ¶
func (*UserSrv) GetUserLevel ¶
func (*UserSrv) GetUserWxOpenId ¶
func (*UserSrv) IncrUserLevelAmount ¶
type WxAppSrv ¶
type WxAppSrv struct {
BaseSrv
sync.RWMutex
Appid string
Secret string
WeAppClient *weapp.Client
WeAppAuth *auth.Auth
}
func GetWxAppSrvByUserId ¶
func (*WxAppSrv) GetWxAppQrCode ¶
GetWxAppQrCode 获取小程序码
type WxPayConfig ¶
type WxPayConfig struct {
MchId string `json:"mchId"` //商户号
Secret string `json:"secret"` //秘钥,对应微信支付是, APIv3Key,商户平台获取
Token string `json:"token"` //token, 商户证书的证书序列号
ReturnUrl string `json:"returnUrl"` //返回地址
NotifyUrl string `json:"notifyUrl"` //回调地址
PrivateCertPath string `json:"privateCertPath"` //商户API证书下载后,私钥 apiclient_key.pem 读取后的字符串内容
Debug bool `json:"debug"`
}
type YunlabaSrv ¶
type YunlabaSrv struct {
BaseSrv
}
func GetYunlabaSrv ¶
func GetYunlabaSrv() *YunlabaSrv
func (*YunlabaSrv) Notify ¶
func (s *YunlabaSrv) Notify(c context.Context, param *yunlabasdk.NotifyData) (*yunlabasdk.Request, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.