Documentation ¶
Index ¶
- Constants
- Variables
- type AIBaseInfo
- type ActiveProductBase
- type ActiveProductDetailBase
- type ActiveShopBase
- type AddCouponArgs
- type ArgsAddEquity
- type ArgsAddNewGroup
- type ArgsAutoUpdateGroupStatusRpc
- type ArgsBatchConsumeEquity
- type ArgsBusChangeMarketSwitch
- type ArgsBusDeleteGroup
- type ArgsBusFinishGroup
- type ArgsBusShareOperation
- type ArgsCheckAndGetGroupItemInfo
- type ArgsCheckExperience
- type ArgsConsumeEquity
- type ArgsConsumeEquityRpc
- type ArgsConsumerCheckout
- type ArgsConsumerExperience
- type ArgsDelExperience
- type ArgsDelItemCheckHasNoFinishGroup
- type ArgsEditExperienceStatus
- type ArgsEditGroup
- type ArgsExperience
- type ArgsFrozenOrReleaseStock
- type ArgsFrozenStock
- type ArgsGetAllShareCardByShopId
- type ArgsGetAllWithdrawingInfo
- type ArgsGetAppGroupItemInfo
- type ArgsGetEquityItemList
- type ArgsGetEquityList
- type ArgsGetEquityListByUid
- type ArgsGetEquityListsByIds
- type ArgsGetExperience
- type ArgsGetExperienceActivity
- type ArgsGetExperienceApplyShop
- type ArgsGetGroupApplyShops
- type ArgsGetGroupInfo
- type ArgsGetGroupLists
- type ArgsGetMemberDetailAsEquity
- type ArgsGetOfferedInfo
- type ArgsGetOneEquity
- type ArgsGetOneExperience
- type ArgsGetOneExperienceSingleDetail
- type ArgsGetRcardList
- type ArgsGetShareCardConsumeLog
- type ArgsGetShareCardListByCode
- type ArgsGetShareCardPackageInfo
- type ArgsGetShareCardWithdrawList
- type ArgsGetShareInfo
- type ArgsGetShopAllWaitGroupLists
- type ArgsGetShopExperienceInfo
- type ArgsGetSingleCardAIProductByShopIds
- type ArgsGetSingleCardShareCardByShopIds
- type ArgsGetUserEquityCountRpc
- type ArgsGetUserEquityQrcode
- type ArgsGetUserExperience
- type ArgsGetUserExperienceInfo
- type ArgsGetUserIncomeInfo
- type ArgsGetUserJoinGroupLists
- type ArgsGetUserShareConsumeList
- type ArgsGetUserShareList
- type ArgsGetUserWaitGroupLists
- type ArgsItemInfoIsJoinGroup
- type ArgsJoinGroup
- type ArgsPrepaidCardInfoLists
- type ArgsScanQrcodeCheck
- type ArgsShareCardWithdraw
- type ArgsShareConsume
- type ArgsShopGroupLists
- type ArgsSyncUpdateRcardDiscountToShareCard
- type ArgsSyncUpdateShareCardStatus
- type ArgsUpdateShareCardWithdrawByOrderSn
- type ArgsUserGetGroupLists
- type ArgsUserShareOperation
- type CardInfo
- type CardPackageInfo
- type ConsumeCouponArgs
- type ConsumeEquity
- type ConsumeEquityBase
- type ConsumeSingleInfo
- type CouponListArgs
- type CouponProdArgs
- type CouponProdReply
- type CouponReply
- type CouponReplyList
- type CouponShopArgs
- type CouponShopReply
- type Coupons
- type EditCouponArgs
- type EmptyStruct
- type Equity
- type EquityDetail
- type ExpericenceBaseInfo
- type Experience
- type FindCouponByUserReply
- type FindCouponByUserReplyList
- type FindCouponByUserReplyListOfSaas
- type FindCouponByUserReplyOfSaas
- type FindCouponsByUserArgs
- type FindCouponsByUserIdArgs
- type FindCouponsByUserOfPcArgs
- type GetAllShareCardByShopIdBase
- type GetAllWithdrawingInfoBase
- type GetCouponArgs
- type GetCouponInfoArgs
- type GetCouponInfoInternalArgs
- type GetCouponListByProdId
- type GetCouponListByShopIdOfAppArgs
- type GetCouponListByShopIdOfAppReply
- type GetEquityList
- type GetEquityListsByIdsBase
- type GetExperienceList
- type GetGroupListsBase
- type GetReceivedCouponListOfOrderArgs
- type GetReceivedCouponListOfOrderReplies
- type GetReceivedCouponListOfOrderReply
- type GetShareCardListByCodeBase
- type GetShareCardWithdrawListBase
- type GetSingleCardAIProductByShopIdsBase
- type GetUserJoinGroupListsBase
- type GetUserWaitGroupListsBase
- type GroupBaseInfo
- type GroupBooking
- type GroupBookingBase
- type OfferedUserBase
- type PayTypes
- type PrepaidCardBse
- type ReceiveCouponArgs
- type ReceiveCouponUserListByIdArgs
- type ReceiveCouponUserListByIdReply
- type RepliesEquityDetailList
- type ReplyAutoUpdateGroupStatusRpc
- type ReplyCheckAndGetGroupItemInfo
- type ReplyCheckExperience
- type ReplyGetAIExperienceInfo
- type ReplyGetAllShareCardByShopId
- type ReplyGetAllWithdrawingInfo
- type ReplyGetAppGroupItemInfo
- type ReplyGetBusMarketTool
- type ReplyGetEquityList
- type ReplyGetEquityListsByIds
- type ReplyGetExperience
- type ReplyGetExperienceDetail
- type ReplyGetGroupApplyShops
- type ReplyGetGroupInfo
- type ReplyGetGroupLists
- type ReplyGetMemberDetailAsEquity
- type ReplyGetOfferedInfo
- type ReplyGetOneEquity
- type ReplyGetOneExperience
- type ReplyGetQrcode
- type ReplyGetQrcodeByConsumeCode
- type ReplyGetRcardList
- type ReplyGetShareCardConsumeLog
- type ReplyGetShareCardListByCode
- type ReplyGetShareCardPackageInfo
- type ReplyGetShareCardWithdrawList
- type ReplyGetShareInfo
- type ReplyGetShopAllWaitGroupLists
- type ReplyGetShopExperienceInfo
- type ReplyGetSingleCardAIProductByShopIds
- type ReplyGetSingleCardShareCardByShopIds
- type ReplyGetUserEquityCountRpc
- type ReplyGetUserExperience
- type ReplyGetUserExperienceLists
- type ReplyGetUserIncomeInfo
- type ReplyGetUserJoinGroupLists
- type ReplyGetUserShareConsumeList
- type ReplyGetUserShareList
- type ReplyGetUserWaitGroupLists
- type ReplyJoinGroup
- type ReplyPrepaidCardInfoLists
- type ReplyScanQrcodeCheck
- type ReplyShareConsume
- type ReplyShareConsumeToOrder
- type ReplyShopGroupLists
- type ReplyUserGetGroupLists
- type ServerDetailArgs
- type ShareConsumeInfo
- type ShopExperience
- type ShopExperienceProduct
- type ShopGroupListsBase
- type SingleInfo
- type StopCouponArgs
- type UserCouponReply
- type UserCouponReplyList
- type UserGetGroupInfo
- type UserShareInfo
Constants ¶
const ( REDIS_COUPON_KEY = "coupon-list-data-key" //时间类型:0-时间范围,1-领取当日有效,2-领取次日有效 TIME_TYPE_0 = 0 TIME_TYPE_1 = 1 TIME_TYPE_2 = 2 //领取类型:0-不限,1-每人限制次数 LIMIT_TYPE_0 = 0 LIMIT_TYPE_1 = 1 //身份类型:0-不限,1-仅限制新会员 IDENTITY_TYPE_0 = 0 IDENTITY_TYPE_1 = 1 //过期前提醒,0-代表不提醒,1以上为提醒的前天数 NOTICE_EXPIRE_0 = 0 NOTICE_EXPIRE_1 = 1 NOTICE_EXPIRE_2 = 2 NOTICE_EXPIRE_3 = 3 NOTICE_EXPIRE_4 = 4 NOTICE_EXPIRE_5 = 5 NOTICE_EXPIRE_6 = 6 NOTICE_EXPIRE_7 = 7 NOTICE_EXPIRE_8 = 8 NOTICE_EXPIRE_9 = 9 NOTICE_EXPIRE_10 = 10 //状态:1-进行中,2-未开始,3-已结束 STATUS_CODE_0 = 1 STATUS_CODE_1 = 2 STATUS_CODE_2 = 3 //优惠券类型:0-总部活动 CONPON_TYPE_0 = 0 //账户类型:1-总部,2-门店 ACCOUNT_TYPE_1 = 1 ACCOUNT_TYPE_2 = 2 //适用范围:0-全部,1-指定门店 SCOPE_TYPE_0 = 0 SCOPE_TYPE_1 = 1 //产品类型 PRODUCT_TYPE_0 = 0 PRODUCT_TYPE_1 = 1 //日志类型字段,0-总店,1-用户 LOG_ACCOUNT_TYPE_0 = 0 LOG_ACCOUNT_TYPE_1 = 1 //包含内容 INCLUDE_SHOP = "shop" INCLUDE_PRODUCT = "product" )
const ( //权益类型 EQUITY_TYPE_BUY = 0 //购卡所得 EQUITY_TYPE_RECHARGE = 1 //充值所得 //权益状态 EQUITY_STATUS_CAN_USE = 1 //1=可使用 EQUITY_STATUS_NOT_CAN_USE = 2 //2=已使用完 //过期状态 EXPIRE_STATUS_FILTER = 1 //过滤过期的 EXPIRE_STATUS_UNIQUE = 2 //查询过期的 )
const ( //是否已删除 IS_DEL_NO = 0 //0否 IS_DEL_YES = 1 //1是 //体验 活动状态 1未开始 2进行中 3已结束 EXPERIENCE_STATUS_NOT_START = 1 EXPERIENCE_STATUS_STARTING = 2 EXPERIENCE_STATUS_FINISH = 3 //用户使用状态 USER_EXPERIENCE_STATUS_NOT_USE = 1 //未使用 USER_EXPERIENCE_STATUS_USED = 2 //已经用 USER_EXPERIENCE_STATUS_OVERDUE = 3 //已过期 )
const ( // 营销类型 1-优惠券;2-一元体验;3-AI拼团;4-共享卡 MARKET_TYPE_DISCOUNT_COUPON = 1 MARKET_TYPE_EXPERIENCE = 2 MARKET_TYPE_GROUP_BOOKING = 3 MARKET_TYPE_SHARE_CARD = 4 // 参团限制:0-所有客户均可参团;0-仅限会员参团 GROUP_LIMIT_ALL = 0 GROUP_LIMIT_MEMBER = 1 // 是否限购:0-不限购;1-限购 GROUP_PURCHASE_NO = 0 GROUP_PURCHASE_YES = 1 // 是否开启凑团:0-不开启;1-开启 COLLECT_GROUP_NO = 0 COLLECT_GROUP_YES = 1 // 是否开启模拟成团:0-不开启;1-开启 SIMULATION_CLUSTERING_NO = 0 SIMULATION_CLUSTERING_YES = 1 // 是否显示参团人数:0-不开启;1-开启 SHOW_NUM_NO = 0 SHOW_NUM_YES = 1 // 活动状态:0-未开始;1-进行中;2-已结束(包含已删除) GROUP_STATUS_NOT_STARTED = 0 GROUP_STATUS_UNDERWAY = 1 GROUP_STATUS_FINISHED = 2 // 是否删除:0-未删除;1-已删除 GROUP_DELETE_NO = 0 GROUP_DELETE_YES = 1 // 总店营销功能是否开启 0-不开启;1-开启 MARKET_SWITCH_CLOSE = 0 MARKET_SWITCH_OPEN = 1 // 用户拼团状态:0-等待成团;1-拼团成功;2-拼团失败 USER_GROUP_STATUS_WAIT = 0 USER_GROUP_STATUS_SUCCEED = 1 USER_GROUP_STATUS_FAIL = 2 // 拼团类型:0-发起拼团;1-参与拼团 JOIN_GROUP_TYPE_LAUNCH = 0 JOIN_GROUP_TYPE_PARTICIPATION = 1 // 操作库存动作:1-冻结库存;2-释放库存 GROUP_FROZEN_STOCK = 1 GROUP_RELEASE_STOCK = 2 )
营销管理-AI拼团活动
const ( //提现状态:0-审核中 1-提现中;2-提现成功;3-提现失败 WITHDRAW_STATUS_WAIT = 0 WITHDRAW_STATUS_ING = 1 WITHDRAW_STATUS_SUCC = 2 WITHDRAW_STATUS_FAIL = 3 )
Variables ¶
var EquityMap = map[int]string{ EQUITY_TYPE_BUY: "购卡所得", EQUITY_TYPE_RECHARGE: "充值所得", }
Functions ¶
This section is empty.
Types ¶
type AIBaseInfo ¶
type AIBaseInfo struct { ShopId int GbpId int //Ai团活动产品id ItemType int // 卡项类型 ItemId int // 卡项目ID Name string //Ai团活动名称 ActiveStartTime int64 // 活动开始时间 ActiveEndTime int64 // 活动结束时间 ImgUrl string // 拼团活动图片 }
九百岁首页-懂生活(AI团和优惠体验)-出参
type ActiveProductBase ¶
type ActiveProductBase struct { Id int ItemId int `must:"Y" length:"10"` // 项目/卡项id,分别对应single_id/card_id Name string // 项目/卡项名字, SspName string // 单项目规格名 RealPrice float64 // 产品售价 ItemType int `must:"Y" length:"10"` // 产品类型:1=单项目 2-套餐 3=综合卡 4=限时卡 5=限次卡 6=限时限次卡 7=充值卡 8=身份卡 SspId int `length:"10"` // 单项目规格id(只有item_type=0才有值)@kc_single_spec_price.ssp_id Stock int `must:"Y" length:"10"` // 活动库存 ConsumeStock int // 已消耗的库存 FrozenStock int // 冻结库存 Details []ActiveProductDetailBase // 活动产品 }
AI拼团活动产品基础结构
type ActiveProductDetailBase ¶
type ActiveProductDetailBase struct { Id int GbpId int // 拼团活动产品id GroupNum int `must:"Y" length:"10"` // 成团人数 GroupPrice float64 `must:"Y" length:"10"` // 拼团价格 }
AI拼团活动产品详情
type ActiveShopBase ¶
type AddCouponArgs ¶
type AddCouponArgs struct { common.BsToken Name string `length:"255" must:"Y"` Amount float64 `length:"10" must:"Y"` Num int `length:"100" must:"Y"` UseType int `length:"2" must:"N"` FullAmount float64 `length:"5" must:"N"` LimitType int `length:"2" must:"N"` LimitNum int `length:"10" must:"N"` ProductType int `length:"10" must:"N"` TimeType int `length:"2" must:"N"` StartTime string `length:"10" must:"N"` EndTime string `length:"10" must:"N"` Date int `length:"5" must:"N"` IdentityType int `length:"2" must:"N"` ScopeType int `length:"2" must:"N"` NoticeExpire int `length:"2" must:"N"` CouponShoptList []CouponShopArgs CouponProductList []CouponProdArgs Desc string `length:"1000" must:"N"` }
新增优惠券
type ArgsAddEquity ¶
type ArgsAddEquity struct { BusId int ShopId int Uid int //权益用户id EquityType int //权益类型 默认 0=购卡获得 EquityName string //权益名称 默认 请传 购卡权益包 ExpireDate int //过期时间 传 天数 RelationId int //卡包关联id Details []ServerDetailArgs Desc string //使用说明 }
添加权益入参
type ArgsAddNewGroup ¶
type ArgsAddNewGroup struct { common.BsToken GroupBookingBase ActiveStartTimeStr string `must:"Y" length:"10"` // 活动开始时间字符串 格式:“2021-06-08” ActiveEndTimeStr string `must:"Y" length:"10"` // 活动结束时间字符串 格式:“2021-06-08” ActiveShopIds string `must:"Y"` // 多个门店中间使用“,”隔开 ActiveProduct ActiveProductBase // 活动产品 }
新建AI拼团-入参
type ArgsBatchConsumeEquity ¶
type ArgsBatchConsumeEquity struct { common.BsToken IsAuthBsToken bool //web调用传true,此时shopId和busId可忽略,rpc调用传false,此时shopId和busId可必填 ShopId int BusId int Uid int ConfirmType int //消费确认类型 1=短信验证 2=动态码验证 Captcha string //短语验证码或者动态码 Details []ConsumeEquity }
批量确认消费权益卡-rpc
type ArgsBusChangeMarketSwitch ¶
type ArgsBusChangeMarketSwitch struct { common.BsToken Id int MarketType int // 营销类型 1-优惠券;2-一元体验;3-AI拼团;4-共享卡 Status int // 总店营销功能是否开启 0-不开启;1-开启 }
总店更改指定营销工具的状态-入参
type ArgsBusDeleteGroup ¶
总店/分店删除AI拼团-入参
type ArgsBusFinishGroup ¶
总店/分店结束AI拼团-入参
type ArgsCheckAndGetGroupItemInfo ¶
type ArgsCheckAndGetGroupItemInfo struct { Uid int // 购买人uid BusId int // 总店id ShopId int // 购买门店 GbpdId int // 拼团活动产品id(说明当前的订单时首次发起拼团) JoinGroupId int // 组团id(说明当前的订单时参与其他人发起的拼团) BuyNum int // 购买的数量 }
拼团-购买单项目/卡项时检查数据有效性&&获取拼团所需的基础信息-入参
type ArgsCheckExperience ¶
校验体验参数 - 入参
type ArgsConsumeEquity ¶
type ArgsConsumeEquity struct { common.BsToken Uid int ConsumeEquityBase }
确认消费权益卡
type ArgsConsumeEquityRpc ¶
type ArgsConsumeEquityRpc struct { ShopId int BusId int Uid int ConsumeEquityBase }
确认消费权益卡-rpc
type ArgsConsumerCheckout ¶
type ArgsConsumerCheckout struct { ShopId int UserId int SingleLists []struct { UepId int SingleId int SspId int Num int } }
用户消费体验校验-rpc -入参
type ArgsConsumerExperience ¶
用户消费体验单-入参
type ArgsDelExperience ¶
总店删除一条体验- 入参
type ArgsDelItemCheckHasNoFinishGroup ¶
type ArgsDelItemCheckHasNoFinishGroup struct { BusId int // 总店id ShopId int // 门店id,如果不为0则代表是门店删除,否者为总店删除 ItemIds []int // 单项目、卡项ids ItemType int // 类型:1=单项目 2-套餐 3=综合卡 4=限时卡 5=限次卡 6=限时限次卡 7=充值卡 8=身份卡 }
删除单项目的时候需要校验是否有未结束的单项目、卡项
type ArgsEditExperienceStatus ¶
总店或者门店编辑体验状态 -入参
type ArgsEditGroup ¶
type ArgsEditGroup struct { common.BsToken Id int `must:"Y" length:"10"` BusId int IsLimit int `length:"1"` // 参团限制:0-所有客户均可参团;1-仅限会员参团 ActiveShopIds string // 多个门店中间使用“,”隔开 Name string `must:"Y" length:"50"` // 活动名称 }
编辑AI拼团-入参
type ArgsExperience ¶
type ArgsExperience struct { common.BsToken Id int //活动id Name string //活动名称 ActivityTimeStart string //活动开始时间 ActivityTimeEnd string //活动结束时间 //IsPerpetual int //是否永久有效 0否 1是 PartNew int //是否仅限新用户参与 0否 1是 PartCount int //老用户参与限制次数 PartType int //参与方式 当前仅能线上参与 默认0 Singles []struct { ExperienceProductId int //体验产品id SspId int //单项目价格规格id SingleId int //单项目id Stock int //库存数量 Price float64 //体验价 } ShopIds []int //门店id集合 }
总店新建体验入参
type ArgsFrozenOrReleaseStock ¶
type ArgsFrozenOrReleaseStock struct { FrozenOrRelease int // 1-冻结;2-释放 GbpdId int JoinGroupId int Stock int }
冻结/释放AI拼团库存
type ArgsFrozenStock ¶
冻结释放库存-rpc - 入参
type ArgsGetAllWithdrawingInfo ¶
获取所有待提现的提现记录-入参
type ArgsGetAppGroupItemInfo ¶
type ArgsGetAppGroupItemInfo struct { Uid int `length:"10"` // 用户uid saas和康享包使用,非必填 common.Utoken // 前端当前登录用户的登录信息 , 非必传 GbpId int `must:"Y" length:"10"` // 拼团活动产品id ShopId int `must:"Y" length:"10"` // 门店id }
获取App首页拼团卡项详情-入参
type ArgsGetEquityItemList ¶
type ArgsGetEquityList ¶
type ArgsGetEquityList struct { common.BsToken common.Paging Uid int Status int ExpireStatus int //0查询全部 1过滤掉已经过期 2只查询过期的 }
查询权益列表
type ArgsGetEquityListByUid ¶
用户查询权益列表
type ArgsGetEquityListsByIds ¶
type ArgsGetEquityListsByIds struct {
EquityIds []int
}
根据权益ids批量获取权益列表基础数据
type ArgsGetExperience ¶
type ArgsGetExperience struct { common.BsToken common.Paging Status int //活动状态 1未开始 2进行中 3已结束 0查询全部 Name string //后缀模糊匹配 }
总店或者门店查询体验列表入参
type ArgsGetExperienceActivity ¶
type ArgsGetExperienceActivity struct {
ShopIds []int
}
type ArgsGetExperienceApplyShop ¶
拼团活动-适用门店-入参
type ArgsGetGroupApplyShops ¶
type ArgsGetGroupApplyShops struct { Lng float64 Lat float64 GbpId int `must:"Y" length:"10"` // 拼团活动产品id }
拼团活动-适用门店-入参
type ArgsGetGroupInfo ¶
获取AI拼团详情-入参
type ArgsGetGroupLists ¶
type ArgsGetGroupLists struct { common.Paging ActiveShopId int `length:"10"` // 活动门店 BusId int ShopId int `length:"10"` // 用来标识是否是获取分店列表 Status string `length:"1"` // 活动状态:0-未开始;1-进行中;2-已结束(包含已删除),默认全部 Name string // 活动名称 }
总店AI拼团列表-入参
type ArgsGetOfferedInfo ¶
type ArgsGetOfferedInfo struct { Id int `must:"Y" length:"10"` // 组团id ShopId int `must:"Y" length:"10"` // 门店id }
获取参团详情-入参
type ArgsGetOneEquity ¶
查询一条详情
type ArgsGetOneExperience ¶
查询一条体验-入参
type ArgsGetOneExperienceSingleDetail ¶
查看一条体验详情-入参
type ArgsGetRcardList ¶
营销管理查看共享卡-入参
type ArgsGetShopAllWaitGroupLists ¶
type ArgsGetShopAllWaitGroupLists struct { common.Paging ShopId int `must:"Y" length:"10"` // 门店id }
获取门店内所有待成团的活动-入参
type ArgsGetShopExperienceInfo ¶
app根据门店id获取所有体验 - 入参
type ArgsGetSingleCardAIProductByShopIds ¶
type ArgsGetSingleCardAIProductByShopIds struct {
ShopIds []int
}
根据shopIds获取最新的单项目和卡项活动数据-入参
type ArgsGetSingleCardShareCardByShopIds ¶
type ArgsGetSingleCardShareCardByShopIds struct {
}根据shopIds获取最新的综合卡和充值卡-共享卡数据-入参
type ArgsGetUserEquityCountRpc ¶
用户可使用权益卡统计
type ArgsGetUserEquityQrcode ¶
获取用户权益卡二维码信息入参
type ArgsGetUserExperience ¶
查询用户体验单 - 入参
type ArgsGetUserExperienceInfo ¶
获取用户体验单项目信息-rpc -入参
type ArgsGetUserIncomeInfo ¶
获取用户收益信息-入参
type ArgsGetUserJoinGroupLists ¶
type ArgsGetUserJoinGroupLists struct { common.Utoken common.Paging Uid int // 用户id,非必填,sass或康享包使用时传入 Status string `length:"1"` // 用户拼团状态:0-等待成团;1-拼团成功;2-拼团失败,默认全部 }
获取用户的AI拼团列表-入参
type ArgsGetUserWaitGroupLists ¶
type ArgsGetUserWaitGroupLists struct { common.Paging ShopId int // 门店id GbpId int `must:"Y" length:"10"` // 拼团活动产品id }
获取活动产品详情-用户待成团列表-入参
type ArgsItemInfoIsJoinGroup ¶
判断卡项详情是否加入了AI拼团活动
type ArgsJoinGroup ¶
type ArgsJoinGroup struct { Uid int // 用户uid GbpdId int // 拼团活动产品详情id JoinGroupId int // 首次/建团 拼团的id@id,如果是首次发起拼团则为0 BusId int // 总店id ShopId int // 门店ID ConsumeStock int // 需要消耗的库存 }
组团入参
type ArgsPrepaidCardInfoLists ¶
type ArgsPrepaidCardInfoLists struct { common.Paging BusId int // 店铺id ShopId int // 门店Id ItemId int `must:"Y" length:"10"` // 单项目/卡项id ItemType int `must:"Y" length:"1"` // 产品类型:1=单项目 2-套餐 3=综合卡 4=限时卡 5=限次卡 6=限时限次卡 7=充值卡 8=身份卡 }
预付卡详情中拼团列表-入参
type ArgsScanQrcodeCheck ¶
权益卡二维码扫一扫监测
type ArgsShopGroupLists ¶
门店内活动拼团列表-入参
type ArgsSyncUpdateRcardDiscountToShareCard ¶
type ArgsSyncUpdateRcardDiscountToShareCard struct {}
充值卡复充的时候将新的折扣同步更新到对应的共享卡表中-入参
type ArgsSyncUpdateShareCardStatus ¶
type ArgsSyncUpdateShareCardStatus struct {}
卡包状态变更的时候-同步更新营销活动中共享卡的状态
type ArgsUpdateShareCardWithdrawByOrderSn ¶
type ArgsUpdateShareCardWithdrawByOrderSn struct {}
根据提现订单号更新共享卡提现信息-入参
type CardPackageInfo ¶
type CardPackageInfo struct { RelationId int // 卡包关联Id OrderType int // 3=综合卡、7=充值卡 Price float64 // 面值 ConsumePrice float64 // 消费金额(面值) Discount float64 // 原卡折扣 }
卡包信息
type ConsumeCouponArgs ¶
type ConsumeCouponArgs struct { Uid int `length:"11" must:"Y"` CouponKeyId int `length:"11" must:"Y"` }
消费优惠券
type ConsumeEquity ¶
type ConsumeEquityBase ¶
type ConsumeEquityBase struct { Uid int EquityId int // 权益表id Details []ConsumeEquity //服务明细 ConfirmType int //消费确认类型 1=短信验证 2=动态码验证 Captcha string //短语验证码或者动态码 }
type ConsumeSingleInfo ¶
消费单项目信息
type CouponProdReply ¶
type CouponReply ¶
type CouponReply struct { Id int Name string Amount float64 UseType int FullAmount float64 ProductType int ScopeType int Num int ReceiveNum int ReceivedNumOfUser int UsedNum int TimeType int StartTime string EndTime string Date int LimitType int LimitNum int IdentityType int NoticeExpire int Status int Type int Desc string CreateTime int UpdateTime int CouponShopList []CouponShopReply `json:"CouponShopList,omitempty"` CouponProductList []CouponProdReply `json:"CouponProductList,omitempty"` }
type CouponReplyList ¶
type CouponReplyList struct { TotalNum int Lists []CouponReply }
type CouponShopReply ¶
type Coupons ¶
type Coupons interface { //商户-增加优惠券 AddCoupon(ctx context.Context, args *AddCouponArgs, reply *bool) error //商户-编辑优惠券 EditCoupon(ctx context.Context, args *EditCouponArgs, reply *bool) error //商户-获取优惠券列表 CouponList(ctx context.Context, args *CouponListArgs, reply *CouponReplyList) error //商户-停止优惠券 StopCoupons(ctx context.Context, args *StopCouponArgs, reply *bool) error //SAAS-按照id获取优惠券详情 FindCouponById(ctx context.Context, args *GetCouponInfoArgs, reply *CouponReply) error //SAAS-消费优惠券 ConsumeCouponsByUser(ctx context.Context, args *ConsumeCouponArgs, reply *bool) error //SAAS-查找已领取过的优惠券 FindCouponsByUserOfPc(ctx context.Context, args *FindCouponsByUserOfPcArgs, reply *FindCouponByUserReplyListOfSaas) error //用户-查找已领取过的优惠券列表 FindCouponsByUser(ctx context.Context, args *FindCouponsByUserArgs, reply *FindCouponByUserReplyList) error //用户-根据产品获取优惠券信息及列表 CouponListByConds(ctx context.Context, args *GetCouponListByProdId, reply *UserCouponReplyList) error //用户-领取优惠券 ReceiveCouponByUser(ctx context.Context, args *ReceiveCouponArgs, reply *bool) error //通用-按照couponid获取用户优惠券数据 GetReceivedCouponUserListById(ctx context.Context, args *ReceiveCouponUserListByIdArgs, reply *[]ReceiveCouponUserListByIdReply) error //用户-根据shopid获取相应的优惠卡券 GetCouponListByShopIdOfApp(ctx context.Context, args *GetCouponListByShopIdOfAppArgs, reply *map[int][]GetCouponListByShopIdOfAppReply) error //internal-按照id获取优惠券详情 FindCouponByIdOfInternal(ctx context.Context, args *GetCouponInfoArgs, reply *CouponReply) error //订单部分-已领取优惠券 GetReceivedCouponListOfOrder(ctx context.Context, args *GetReceivedCouponListOfOrderArgs, replies *GetReceivedCouponListOfOrderReplies) error //根据用户领取的主键id,获取优惠券信息 GetUserCouponInfoById(ctx context.Context, kId *int, reply *int) error //取消消费券使用 CancelCoupon(ctx context.Context, kId *int) error }
type EditCouponArgs ¶
type EditCouponArgs struct { common.BsToken Id int `length:"11" must:"Y"` Name string `length:"255" must:"N"` Num int `length:"100" must:"N"` LimitType int `length:"2" must:"N"` LimitNum int `length:"10" must:"N"` IdentityType int `length:"2" must:"N"` NoticeExpire int `length:"2" must:"N"` Desc string `length:"1000" must:"N"` }
编辑优惠券
type Equity ¶
type Equity interface { //添加权益 AddEquity(ctx context.Context, args *ArgsAddEquity, reply *int) error //查询权益列表 GetEquityList(ctx context.Context, args *ArgsGetEquityList, reply *ReplyGetEquityList) error //用户查询权益列表 GetEquityListByUid(ctx context.Context, args *ArgsGetEquityListByUid, reply *ReplyGetEquityList) error //查询一条详情 GetOneEquity(ctx context.Context, args *ArgsGetOneEquity, reply *ReplyGetOneEquity) error //内部使用-查询一条详情 GetOneEquityOfInternal(ctx context.Context, args *ArgsGetOneEquity, reply *ReplyGetOneEquity) error //确认消费权益卡 ConsumeEquity(ctx context.Context, args *ArgsConsumeEquity, reply *bool) error //确认消费权益卡rpc ConsumeEquityRpc(ctx context.Context, args *ArgsConsumeEquityRpc, reply *bool) error //批量确认消费权益卡rpc BatchConsumeEquity(ctx context.Context, args *ArgsBatchConsumeEquity, reply *bool) error //根据权益ids批量获取权益列表基础数据 GetEquityListsByIds(ctx context.Context, args *ArgsGetEquityListsByIds, reply *ReplyGetEquityListsByIds) error //获取用户权益卡二维码信息 GetUserEquityQrcode(ctx context.Context, args *ArgsGetUserEquityQrcode, reply *string) error //根据消费码获取权益卡信息 GetQrcodeByConsumeCode(ctx context.Context, args *order.ArgsCardPackageQrcode, reply *ReplyGetQrcodeByConsumeCode) error //用户可使用权益卡统计 GetUserEquityCountRpc(ctx context.Context, args *ArgsGetUserEquityCountRpc, reply *ReplyGetUserEquityCountRpc) error //获取权益包下项目列表 GetEquityItemList(ctx context.Context, args *ArgsGetEquityItemList, replies *[]RepliesEquityDetailList) error //bus member 查询 详情 使用rpc GetMemberDetailAsEquity(ctx context.Context, args *ArgsGetMemberDetailAsEquity, replies *ReplyGetMemberDetailAsEquity) error }
type EquityDetail ¶
type EquityDetail struct { SingleId int SingleName string Count int SurCount int //剩余总次数 ServiceTime int ImgUrl string ImgHash string ExpireDate int64 //过期时间,权益过期时间 ExpireDateStr string //过期时间,权益过期时间 PeriodOfValidity int //有效期,单位天 SurTime int //剩余天数 IsLate int //是否会过期 0表示不会过期 1表示有期限 SsId int //单项目在门店的id RealPrice float64 Price float64 MinPrice string MaxPrice string ShopStatus int //项目在门店上下架的状态:1=下架 2=上架 ShopDelStatus int //项目在门店是否被删除:0-否,1-是 }
type ExpericenceBaseInfo ¶
type Experience ¶
type Experience interface { //总店新建体验 AddExperience(context.Context, *ArgsExperience, *bool) error //总店编辑体验 EditExperience(context.Context, *ArgsExperience, *bool) error //查询一条体验 GetOneExperience(ctx context.Context, args *ArgsGetOneExperience, reply *ReplyGetOneExperience) error //总店或者门店查询体验列表 GetExperience(context.Context, *ArgsGetExperience, *ReplyGetExperience) error //过滤没有活动的门店 FilterShopsHaveActivity(ctx context.Context, args *cards.ArgsSetShopsActivity, reply *[]int) error //获取体验列表-rpc GetExperienceActivity(ctx context.Context, args *ArgsGetExperienceActivity, reply *map[int][]cards2.ExperienceList) error //查看一条体验详情 GetExperienceDetail(ctx context.Context, args *ArgsGetOneExperienceSingleDetail, reply *ReplyGetExperienceDetail) error //总店结束体验状态 OverExperience(ctx context.Context, args *ArgsEditExperienceStatus, reply *bool) error //总店删除一条体验 DelExperience(ctx context.Context, args *ArgsEditExperienceStatus, reply *bool) error //查询体验适用门店 GetExperienceApplyShop(ctx context.Context, args *ArgsGetExperienceApplyShop, reply *[]order.ReplyCableShopInfo) error //校验体验参数 CheckExperience(ctx context.Context, args *ArgsCheckExperience, reply *ReplyCheckExperience) error //创建用户体验单 AddUserExperience(ctx context.Context, args int, reply *int) error //用户消费体验单 ConsumerExperience(ctx context.Context, args *ArgsConsumerExperience, reply *bool) error //查询用户体验单 GetUserExperience(ctx context.Context, args *ArgsGetUserExperience, reply *ReplyGetUserExperience) error //定时任务 - 每天0点更新 AutoUpdateStatus(ctx context.Context, args *bool, reply *bool) error //冻结释放库存-rpc FrozenStock(ctx context.Context, args *ArgsFrozenStock, reply *bool) error //获取用户体验单项目信息 GetUserExperienceInfo(ctx context.Context, args *ArgsGetUserExperienceInfo, reply *[]order.ExperienceList) error //app根据门店id获取所有体验 GetShopExperienceInfo(ctx context.Context, args *ArgsGetShopExperienceInfo, reply *ReplyGetShopExperienceInfo) error //用户消费体验校验 ConsumerCheckout(ctx context.Context, args *ArgsConsumerCheckout, reply *bool) error //删除单项目时检查体验是否占用 DelExperienceCheck(ctx context.Context, args *[]int, reply *bool) error }
type FindCouponByUserReply ¶
type FindCouponByUserReply struct { Id int CouponId int CouponName string Amount float64 TimeType int StartTime int EndTime int UseType int FullAmount float64 ProdId int ProdType int ShopId int ShopName string ShopImgUrl string ShopBranchName string ShopAddress string Status int ReceiveType int ReceivedTime int ConsumedTime int }
type FindCouponByUserReplyList ¶
type FindCouponByUserReplyList struct { TotalNum int Lists []FindCouponByUserReply }
type FindCouponByUserReplyListOfSaas ¶
type FindCouponByUserReplyListOfSaas struct { TotalNum int Lists []FindCouponByUserReplyOfSaas }
type FindCouponByUserReplyOfSaas ¶
type FindCouponByUserReplyOfSaas struct { Id int CouponId int CouponName string Amount float64 TimeType int StartTime string EndTime string Date int UseType int FullAmount float64 ProdId int ProdType int ShopId int ShopName string ShopImgUrl string ShopBranchName string ShopAddress string Status int ReceiveType int ReceivedTime int ConsumedTime int }
type FindCouponsByUserArgs ¶
type FindCouponsByUserIdArgs ¶
type GetAllShareCardByShopIdBase ¶
type GetAllShareCardByShopIdBase struct {}
type GetAllWithdrawingInfoBase ¶
type GetAllWithdrawingInfoBase struct { OrderSn string //提现订单编号 CspOrderSn string //代付订单号 CardName string //银行账户名 CardNumber string //银行账号 BankCode string //银行联行号 BankName string //银行开户行名称 CashAmount float64 //提现金额(包含提现手续费) AgentTime int64 //代付/清分时间 CashFee float64 //提现手续费 Status int //提现状态:1-提现中;2-提现成功;3-提现失败 }
获取所有待提现的提现记录-出参
type GetCouponArgs ¶
type GetCouponInfoArgs ¶
type GetCouponInfoArgs struct { common.BsToken BsId int `length:"11"` Id int `length:"11" must:"Y"` }
根据优惠券id获取详情
type GetCouponInfoInternalArgs ¶
type GetCouponInfoInternalArgs struct { BsId int `length:"11" must:"Y"` Id int `length:"11" must:"Y"` }
根据优惠券id获取详情
type GetCouponListByProdId ¶
type GetCouponListByShopIdOfAppArgs ¶
type GetCouponListByShopIdOfAppArgs struct {
ShopId []int
}
type GetEquityList ¶
type GetEquityList struct { //根据权益类型去映射 图片 ImgId int //权益卡图片id ImgPath string //权益卡图片路径 Id int //权益卡id EquityType int //权益类型 EquityTypeName string //权益类型 EquityName string //权益名称 Status int //权益状态 0可使用 1已使用完 RelationId int //关系id ExpireDate int //权益过期时间 0表示不过期 ExpireDateString string //权益国企时间 0表示不过期 Count int //总次数 SurCount int //剩余总次数 ShopId int ShopName string BranchName string PeriodOfValidity int //有效期 SurTime int //剩余天数 IsLate int //是否会过期 0表示不会 1表示有期限 }
type GetEquityListsByIdsBase ¶
type GetEquityListsByIdsBase struct { Id int //权益卡id ShopId int //门店id BusId int RelationId int //关联id EquityType int //权益类型 Status int //权益状态 0可使用 1已使用完 Count int //总次数 SurCount int //剩余总次数 CreateTime int //权益获得时间 Details []EquityDetail ExpireDate int //权益国企时间 0表示不过期 ExpireDateStr string //过期时间,权益过期时间 }
type GetExperienceList ¶
type GetExperienceList struct { Id int //活动id Name string //活动名称 ActivityTimeStart string //活动开始时间 ActivityTimeStartStr string //活动开始时间 ActivityTimeEnd string //活动结束时间 ActivityTimeEndStr string //活动结束时间 //IsPerpetual int //是否永久有效 0否 1是 PartNew int //是否仅限新用户参与 0否 1是 PartCount int //老用户参与限制次数 PartType int //参与方式 当前仅能线上参与 默认0 ActivityShop int //活动门店 Num string //成交数量 Status int //活动状态 1未开始 2进行中 3已结束 }
type GetGroupListsBase ¶
type GetGroupListsBase struct { Id int BusId int // 所属总店id Name string // 活动名称 ActiveStartTime int64 // 活动开始时间 ActiveEndTime int64 // 活动结束时间 ActiveShopNum int // 活动门店数量 StartGroupNum int // 开团数量 StartGroupOrderNum int // 参团订单数量 EndGroupNum int // 成团数量 EndGroupOrderNum int // 成团订单数量 Status int // 活动状态:0-未开始;1-进行中;2-已结束(包含已删除) IsDel int // 是否删除:0-未删除;1-已删除 CreateTime int64 // 活动创建时间 }
type GetReceivedCouponListOfOrderReplies ¶
type GetReceivedCouponListOfOrderReplies struct { TotalNum int Lists []GetReceivedCouponListOfOrderReply }
type GetShareCardListByCodeBase ¶
type GetShareCardListByCodeBase struct {}
type GetShareCardWithdrawListBase ¶
type GetShareCardWithdrawListBase struct {}
type GetSingleCardAIProductByShopIdsBase ¶
type GetSingleCardAIProductByShopIdsBase struct { GbId int ShopId int GbpId int // 活动产品id ActiveStartTime int64 // 活动开始时间 ActiveEndTime int64 // 活动结束时间 ItemType int // 产品类型:1=单项目 2-套餐 3=综合卡 4=限时卡 5=限次卡 6=限时限次卡 7=充值卡 8=身份卡 ItemId int // 项目/卡项id,分别对应single_id/card_id ItemName string // 项目/卡项名字 SspId int // 单项目规格id(只有item_type=0才有值)@kc_single_spec_price.ssp_id SspName string // 单项目规格名 RealPrice float64 // 产品售价 GroupPrice float64 // 拼团价格 }
type GetUserJoinGroupListsBase ¶
type GetUserJoinGroupListsBase struct { Id int // 组团id BusId int // 商家id ShopId int // 门店id Uid int // 用户uid JoinGroupId int // 拼团的id,如果是首次发起拼团则为0 GbId int // 拼团活动id GbpId int // 拼团活动产品id ItemType int // 类型:1单项目 2套餐 3综合卡 4限时卡 5限次卡 6限时限次卡 7充值卡 8身份卡 ItemId int // 预付卡id Name string // 名称 SspId int // 单项目规格id SspName string // 单项目规格名称 ImgUrl string // 封面图片 RealPrice float64 // 售价 GroupPrice float64 // 拼团价格 JoinNum int // 参团人数 ConsumeNum int // 成功参与拼团人数 GroupEndTime int // 拼团结束时间,如果join_type=1则该值为0 JoinType int // 拼团类型:0-发起拼团;1-参与拼团 Status int // 用户拼团状态:0-等待成团;1-拼团成功;2-拼团失败 CreateTime int64 // 组团创建时间 NowTime int64 //当前时间 }
type GetUserWaitGroupListsBase ¶
type GetUserWaitGroupListsBase struct { Id int // 组团id BusId int // 商家id ShopId int // 门店id Uid int // 用户uid NickName string // 用户昵称 AvatarImgUrl string // 用户头像图片地址 GbId int // 拼团活动id GbpId int // 拼团活动产品id RealPrice float64 // 产品售价 GroupPrice float64 // 拼团价格 JoinNum int // 参团人数 ConsumeNum int // 成功参与拼团人数 GroupEndTime int // 拼团结束时间,如果join_type=1则该值为0 NowTime int64 //当前时间 }
type GroupBaseInfo ¶
type GroupBooking ¶
type GroupBooking interface { // 获取总店现有的营销工具,如果数据不存在就插入一条默认的数据 GetBusMarketTool(ctx context.Context, busId *int, reply *ReplyGetBusMarketTool) error // 总店更改指定营销工具的状态 BusChangeMarketSwitch(ctx context.Context, args *ArgsBusChangeMarketSwitch, reply *bool) error // 总店新建AI拼团 AddNewGroup(ctx context.Context, args *ArgsAddNewGroup, reply *bool) error // 总店编辑AI拼团 EditGroup(ctx context.Context, args *ArgsEditGroup, reply *bool) error // 总店结束AI拼团 BusFinishGroup(ctx context.Context, args *ArgsBusFinishGroup, reply *bool) error // 总店删除AI拼团 BusDeleteGroup(ctx context.Context, args *ArgsBusDeleteGroup, reply *bool) error // 获取AI拼团详情 GetGroupInfo(ctx context.Context, args *ArgsGetGroupInfo, reply *ReplyGetGroupInfo) error // 总店/分店AI拼团列表 GetGroupLists(ctx context.Context, args *ArgsGetGroupLists, reply *ReplyGetGroupLists) error // 定时自动更新拼团活动状态:未开始->进行中;进行中->已结束 AutoUpdateGroupStatusRpc(ctx context.Context, args *ArgsAutoUpdateGroupStatusRpc, reply *ReplyAutoUpdateGroupStatusRpc) error // //获取App首页拼团项目详情 // GetAppGroupSingleInfo(ctx context.Context, args *ArgsGetAppGroupSingleInfo, reply *ReplyGetAppGroupSingleInfo) error // 获取App首页拼团卡项/项目详情 GetAppGroupItemInfo(ctx context.Context, args *ArgsGetAppGroupItemInfo, reply *ReplyGetAppGroupItemInfo) error // 参加团(订单支付调用) JoinGroup(ctx context.Context, args *ArgsJoinGroup, reply *ReplyJoinGroup) error // 预付卡详情中拼团列表 GetPrepaidCardInfoLists(ctx context.Context, args *ArgsPrepaidCardInfoLists, reply *ReplyPrepaidCardInfoLists) error // APP拼团列表 GetAppUserGroupLists(ctx context.Context, args *ArgsUserGetGroupLists, reply *ReplyUserGetGroupLists) error // 拼团活动-适用门店 GetGroupApplyShops(ctx context.Context, args *ArgsGetGroupApplyShops, reply *ReplyGetGroupApplyShops) error // 获取用户的AI拼团列表 GetUserJoinGroupLists(ctx context.Context, args *ArgsGetUserJoinGroupLists, reply *ReplyGetUserJoinGroupLists) error // 判断卡项详情是否加入了AI拼团活动 ItemInfoIsJoinGroup(ctx context.Context, args *ArgsItemInfoIsJoinGroup, reply *bool) error // 获取活动产品详情-用户待成团列表 GetUserWaitGroupLists(ctx context.Context, args *ArgsGetUserWaitGroupLists, reply *ReplyGetUserWaitGroupLists) error // 获取参团详情 GetOfferedInfo(ctx context.Context, args *ArgsGetOfferedInfo, reply *ReplyGetOfferedInfo) error // 定时自动更新待成团订单状态:有效期结束后后自动更改拼团状态为已完成 AutoUpdateOfferedStatusRpc(ctx context.Context, args *EmptyStruct, reply *bool) error // 获取门店内所有待成团的活动 GetShopAllWaitGroupLists(ctx context.Context, args *ArgsGetShopAllWaitGroupLists, reply *ReplyGetShopAllWaitGroupLists) error // 拼团-购买单项目/卡项时检查数据有效性&&获取拼团所需的基础信息 // (主要校验:是否超出限购,是否超出活动库存,是否适用当前门店,参团是否有所限制,是否在规定的活动日期之内) CheckAndGetGroupItemInfoRpc(ctx context.Context, args *ArgsCheckAndGetGroupItemInfo, reply *ReplyCheckAndGetGroupItemInfo) error // 删除单项目的时候需要校验是否有未结束的单项目、卡项,如果有则返回true DelItemCheckHasNoFinishGroupRpc(ctx context.Context, args *ArgsDelItemCheckHasNoFinishGroup, reply *bool) error // 根据shopIds获取最新的单项目和卡项活动数据 GetSingleCardAIProductByShopIdsRpc(ctx context.Context, args *ArgsGetSingleCardAIProductByShopIds, reply *ReplyGetSingleCardAIProductByShopIds) error // 冻结/释放AI拼团库存,适用于下面情况:(下单支付完成前的时候冻结,订单逾期未支付取消的时候释放) FrozenOrReleaseStock(ctx context.Context, args *ArgsFrozenOrReleaseStock, reply *bool) error // 门店内活动拼团列表 GetShopGroupLists(ctx context.Context, args *ArgsShopGroupLists, reply *ReplyShopGroupLists) error //九百岁首页-懂生活(AI团和优惠体验) GetAIExperienceInfo(ctx context.Context, args *EmptyStruct, reply *ReplyGetAIExperienceInfo) error }
type GroupBookingBase ¶
type GroupBookingBase struct { Id int BusId int // 所属总店id Name string `must:"Y" length:"50"` // 活动名称 ActiveStartTime int64 // 活动开始时间 ActiveEndTime int64 // 活动结束时间 ExpirationDay int `must:"Y" length:"10"` // 团有效期-天数 ExpirationHour int `must:"Y" length:"10"` // 团有效期-小时 ExpirationMinute int `must:"Y" length:"10"` // 团有效期-分钟 IsLimit int `length:"1"` // 参团限制:0-所有客户均可参团;1-仅限会员参团 ActiveShopNum int // 活动门店数量 IsPurchase int `length:"1"` // 是否限购:0-不限购;1-限购 PurchaseNum int `length:"10"` // 限购次数:每人每天能购买几次 CollectGroup int `length:"1"` // 是否开启凑团:0-不开启;1-开启 SimulationClustering int `length:"1"` // 是否开启模拟成团:0-不开启;1-开启 ShowNum int `length:"1"` // 是否显示参团人数:0-不开启;1-开启 Status int // 活动状态:0-未开始;1-进行中;2-已结束(包含已删除) IsDel int // 是否删除:0-未删除;1-已删除 DelTime int64 // 删除时间 CreateTime int64 // 活动创建时间 }
营销管理-AI拼团活动基础结构(不包含活动的产品)
type OfferedUserBase ¶
type PrepaidCardBse ¶
type PrepaidCardBse struct { GbId int // 拼团活动id GbpId int // 拼团活动Id Name string // 活动名称 GroupNum []int // 成团人数,如:3 4 Price float64 // 标价 GroupPrices []float64 // 拼团价格(存在多个) GroupMinPrice float64 // 拼团价格最低价 SspId int // 单项目规格ID SspName string // 单项目规格名称 ActiveStartTime int64 // 活动开始时间 ActiveEndTime int64 // 活动结束时间 Status int // 活动状态:0-未开始;1-进行中 NowTime int64 //当前时间 }
type ReceiveCouponArgs ¶
type ReceiveCouponUserListByIdArgs ¶
type ReceiveCouponUserListByIdArgs struct {
CouponId int `length:"11" must:"Y"`
}
type RepliesEquityDetailList ¶
type ReplyAutoUpdateGroupStatusRpc ¶
type ReplyAutoUpdateGroupStatusRpc struct { NeedUpdateToUnderwayIds []int // 需要变更为进行中的拼团活动id NeedUpdateToFinishedIds []int // 需要变更为已结束的拼团活动id }
定时自动更新拼团活动状态-出参
type ReplyCheckAndGetGroupItemInfo ¶
type ReplyCheckAndGetGroupItemInfo struct { GbpdId int // 拼团活动产品详情id(说明当前的订单时首次发起拼团) JoinGroupId int // 组团id(说明当前的订单时参与其他人发起的拼团) ItemId int SspId int ItemType int Stock int // 总库存 ConsumeStock int // 已消耗库存 GroupPrice float64 // 拼团价格 }
拼团-购买单项目/卡项时检查数据有效性&&获取拼团所需的基础信息-出参
type ReplyCheckExperience ¶
校验体验参数 - 返回值
type ReplyGetAIExperienceInfo ¶
type ReplyGetAIExperienceInfo struct { AIInfo AIBaseInfo ExpericenceInfo ExpericenceBaseInfo NowTime int64 //当前时间 }
type ReplyGetAllWithdrawingInfo ¶
type ReplyGetAllWithdrawingInfo struct {
Lists []GetAllWithdrawingInfoBase
}
type ReplyGetAppGroupItemInfo ¶
type ReplyGetAppGroupItemInfo struct { BusId int // 商家id ShopId int // 门店id GbId int // 拼团活动id GbpId int // 拼团活动产品id GroupBaseInfo GroupBookingBase NowTime int64 //当前时间 ItemType int // 类型:1单项目 2套餐 3综合卡 4限时卡 5限次卡 6限时限次卡 7充值卡 8身份卡 ItemId int // 预付卡id Name string // 名称 SspId int // 单项目规格id SsId int // 卡项在门店的id SspName string ImgUrl string // 封面图片 RealPrice float64 // 售价 Price float64 // 标价 Sales int // 销量 Discount string // 充值卡、身份卡折扣 ServicePeriod int // 服务周期 ValidCount int // 包含单项目的总次数 Notes []cards.CardNote // 卡项温馨提示 Stock int // 活动库存 FrozenStock int // 冻结库存 ConsumeStock int // 已消耗的库存 Details []ActiveProductDetailBase // 活动产品详情 SingleContext []cards.SingleContextInfo // 单项目内容 SortDesc string // 单项目短描述 MemberLev cards.MemberLev // 会员折扣信息 Reminder []cards.ReminderInfo // 单项目温馨提示 AlbumPics []cards.Img // 相册图片 }
获取App首页拼团卡项详情-出参
type ReplyGetBusMarketTool ¶
type ReplyGetBusMarketTool struct { Id int BusId int DiscountCouponStatus int // 优惠券功能是否开启:0-未开启;1-开启 ExperienceStatus int // 一元体验功能是否开启:0-未开启;1-开启 GroupBookingStatus int // AI拼团功能是否开启:0-未开启;1-开启 }
获取总店现有的营销工具-出参
type ReplyGetEquityList ¶
type ReplyGetEquityList struct { TotalNum int Lists []GetEquityList }
type ReplyGetEquityListsByIds ¶
type ReplyGetEquityListsByIds struct {
Lists []GetEquityListsByIdsBase
}
type ReplyGetExperience ¶
type ReplyGetExperience struct { TotalNum int Lists []GetExperienceList }
总店或者门店查询体验列表返回值
type ReplyGetExperienceDetail ¶
type ReplyGetExperienceDetail struct { /*ShopId int SsId int ShotDesc string SingleName string Price float64 SpecIds string SpecNames string ServerTime int ImgId int ImgPath string SingleId int SingleContent []cards2.SingleContextInfo*/ cards2.SingleDetail ExperienceId int ExperienceProductId int ExperiencePrice float64 RemainingTimes int ActivityTimeStart string ActivityTimeEnd string //IsPerpetual int //0 有期限 1永久有效 PartNew int //0否 1仅限新用户参与 PartCount int //老用户限制参与次数 PartType int //0 仅能通过线上参与 SspId int // 组合规格ID SspName string // 组合规格名 SspPrice float64 // 组合规格价格 }
查看一条体验详情-返回值
type ReplyGetGroupApplyShops ¶
type ReplyGetGroupApplyShops struct {
GroupCableShops []order.ReplyCableShopInfo
}
拼团活动-适用门店-出参
type ReplyGetGroupInfo ¶
type ReplyGetGroupInfo struct { GroupBookingBase ActiveStartTimeStr string // 活动开始时间字符串 ActiveEndTimeStr string // 活动结束时间字符串 ActiveProduct ActiveProductBase ActiveShops []ActiveShopBase }
获取AI拼团详情-出参
type ReplyGetGroupLists ¶
type ReplyGetGroupLists struct { TotalNum int Lists []GetGroupListsBase }
分店AI拼团列表-出参
type ReplyGetOfferedInfo ¶
type ReplyGetOfferedInfo struct { Id int // 组团id ShopId int // 门店id Uid int // 用户uid ItemType int // 类型:1单项目 2套餐 3综合卡 4限时卡 5限次卡 6限时限次卡 7充值卡 8身份卡 ItemId int // 预付卡id Name string // 名称 SspId int // 单项目规格id SsId int // 单项目在门店的id SspName string // 单项目规格名称 ServicePeriod int // 服务周期 ImgUrl string // 封面图片 RealPrice float64 // 产品售价 GroupPrice float64 // 拼团价格 JoinType int // 拼团类型:0-发起拼团;1-参与拼团 JoinNum int // 参团人数 ConsumeNum int // 成功参与拼团人数 AnonymityNum int // 匿名参与拼团人数 GroupEndTime int // 拼团结束时间,如果join_type=1则该值为0 OfferedUserList []OfferedUserBase // 已参团的人员信息 NowTime int64 //当前时间 }
获取参团详情-出参
type ReplyGetOneEquity ¶
type ReplyGetOneEquity struct { ImgId int //权益卡图片id ImgPath string //权益卡图片路径 Id int //权益卡id ShopId int //门店id ShopName string //门店名称 BranchName string //分店名称 BusId int RelationId int //关联id EquityType int //权益类型 EquityTypeName string //权益类型 EquityName string //权益名称 Status int //权益状态 0可使用 1已使用完 ExpireDate int //权益国企时间 0表示不过期 ExpireDateString string //权益国企时间 0表示不过期 Count int //总次数 SurCount int //剩余总次数 CreateTime int //权益获得时间 CreateTimeStr string //权益获得时间 Details []EquityDetail Desc []string //使用说明 PeriodOfValidity int //有效期 SurTime int //剩余天数 IsLate int //是否会过期 0表示不会过期 1表示有期限 }
type ReplyGetOneExperience ¶
type ReplyGetOneExperience struct { Id int //体验id BusId int //总店id Name string //活动名称 ActivityTimeStart string //活动开始时间 ActivityTimeEnd string //活动结束时间 ActivityShop int //活动门店 //IsPerpetual int //是否永久有效 0否 1是 PartNew int //是否仅限新用户参与 0否 1是 PartCount int //老用户参与限制次数 PartType int //参与方式 当前仅能线上参与 默认0 ExperienceProductList []struct { Id int //体验-产品 id ExperienceId int //体验id SspId int //单项目价格规格id SpecIds string //规格组合id SpecNames []string //规格组合名称 SingleId int //单项目id SingleName string //单项目名称 OriginalPrice float64 //原价 Stock int //库存数 Price float64 //体验价 } ExperienceShopList []struct { Id int //体验-门店 id ExperienceId int //体验id ShopId int //门店id ShopName string //门店名称 BranchName string //分店名称 BusId int //总店id Num int //成交数量 } }
查询一条体验 返回值
type ReplyGetRcardList ¶
营销管理查看共享卡-出参
type ReplyGetShopAllWaitGroupLists ¶
type ReplyGetShopAllWaitGroupLists struct { TotalNum int Lists []GetUserJoinGroupListsBase }
获取门店内所有待成团的活动-出参
type ReplyGetShopExperienceInfo ¶
type ReplyGetShopExperienceInfo struct { TotalNum int Lists []ShopExperience }
app根据门店id获取所有体验 - 返回值
type ReplyGetSingleCardAIProductByShopIds ¶
type ReplyGetSingleCardAIProductByShopIds struct {
SingleCardAIProductLists map[int][]cards.AiGroupList // key=shopId,value=门店最新的单项目和卡项
}
根据shopIds获取最新的单项目和卡项活动数据-出参
type ReplyGetSingleCardShareCardByShopIds ¶
type ReplyGetSingleCardShareCardByShopIds struct {
}根据shopIds获取最新的综合卡和充值卡-共享卡数据-出参
type ReplyGetUserEquityCountRpc ¶
type ReplyGetUserEquityCountRpc struct {
CanUserEquity int //可使用的权益卡
}
type ReplyGetUserExperience ¶
type ReplyGetUserExperience struct { TotalNum int Lists []ReplyGetUserExperienceLists }
查询用户体验单 - 返回值
type ReplyGetUserExperienceLists ¶
type ReplyGetUserExperienceLists struct { UepId int ShopId int ShopName string BranchName string ExperienceId int ActivityTimeStart string ActivityTimeEnd string //IsPerpetual int SingleId int SingleName string SspId int Num int UseTime string ShotDesc string SpecIds string SpecNames string ServerTime int ImgId int ImgPath string }
type ReplyGetUserIncomeInfo ¶
type ReplyGetUserIncomeInfo struct { CanCashAmount float64 // 可提现金额 TotalIncome float64 // 累计收益 UsedTimes int // 累计使用次数 }
获取用户收益-出参
type ReplyGetUserJoinGroupLists ¶
type ReplyGetUserJoinGroupLists struct { TotalNum int Lists []GetUserJoinGroupListsBase }
获取用户的AI拼团列表-出参
type ReplyGetUserWaitGroupLists ¶
type ReplyGetUserWaitGroupLists struct { TotalNum int Lists []GetUserWaitGroupListsBase }
获取活动产品详情-用户待成团列表-出参
type ReplyPrepaidCardInfoLists ¶
type ReplyPrepaidCardInfoLists struct { TotalNum int Lists []PrepaidCardBse }
type ReplyScanQrcodeCheck ¶
type ReplyScanQrcodeCheck struct {
EquityId int
}
type ReplyShopGroupLists ¶
type ReplyShopGroupLists struct { TotalNum int Lists []ShopGroupListsBase }
门店内活动拼团列表-出参
type ReplyUserGetGroupLists ¶
type ReplyUserGetGroupLists struct { TotalNum int Lists []UserGetGroupInfo }
用户根据条件获取拼团列表-出参
type ServerDetailArgs ¶
type ServerDetailArgs struct { SingleId int Num int SingleName string ExpireDate int64 //过期时间,权益过期时间 PeriodOfValidity int //有效期,单位天 }
权益服务详情
type ShopExperience ¶
type ShopExperience struct { ExperienceId int ExperienceName string TimeRemaining int64 ExperienceProductLists []ShopExperienceProduct }
type ShopExperienceProduct ¶
type ShopGroupListsBase ¶
type ShopGroupListsBase struct { GbpId int // 拼团活动产品Id ShopId int // 门店id ItemType int // 卡项类型 ItemId int // 卡项目ID ImgUrl string // 拼团活动图片 Name string // 活动名称 RealPrice float64 // 售价 GroupPrice []float64 // 拼团价格[区间] ActiveStartTime int64 // 活动开始时间 ActiveEndTime int64 // 活动结束时间 Status int // 活动状态 NowTime int64 //当前时间 }
type SingleInfo ¶
type SingleInfo struct { SingleId int // 单项目Id SingleName string // 单项目名 Num int // 数量 TotalPrice float64 // 总价格 }
消费单项目信息
type UserCouponReply ¶
type UserCouponReply struct { Id int Name string Amount float64 UseType int FullAmount float64 ProductType int ScopeType int Num int ReceiveNum int ReceivedNumOfUser int UsedNum int TimeType int StartTime int EndTime int LimitType int LimitNum int IdentityType int NoticeExpire int Status int Type int Desc string CreateTime int UpdateTime int CouponShopList []CouponShopReply `json:"CouponShopList,omitempty"` CouponProductList []CouponProdReply `json:"CouponProductList,omitempty"` }
type UserCouponReplyList ¶
type UserCouponReplyList struct { TotalNum int Lists []UserCouponReply }