Documentation ¶
Index ¶
- Constants
- func DeleteCustomerOpenInfo(req *DeleteCustomerOpenInfoRequest) (bool, error)
- func GetCustomerPoints(req *GetCustomerPointsRequest) (int64, error)
- func GetPointsSourceTypeDesc(sourceType int) string
- func GetShopRuleType(req *GetShopRuleTypeRequest) (uint8, error)
- func IsPointsEnabled(req *IsPointsEnabledRequest) (bool, error)
- func SendPoints(req *SendPointsRequest) (int64, error)
- func SetMemberGrade(req *SetMemberGradeRequest) (bool, error)
- func SetShopLevelRule(req *SetShopLevelRuleRequest) (bool, error)
- func WriteCustomerInfo(req *WriteCustomerInfoRequest) (bool, error)
- type CardMember
- type CustomerInfoEs
- type DeleteCustomerOpenInfoData
- type DeleteCustomerOpenInfoRequest
- type DeleteCustomerOpenInfoResponse
- type DeleteCustomerOpenInfoResult
- type GetCustomerPointsData
- type GetCustomerPointsRequest
- type GetCustomerPointsResponse
- type GetCustomerRequest
- type GetCustomerResponse
- type GetCustomerResponse1
- type GetCustomerResult
- type GetGradesData
- type GetGradesRequest
- type GetGradesResponse
- type GetGradesResult
- type GetMemberInVenderData
- type GetMemberInVenderRequest
- type GetMemberInVenderResponse
- type GetMemberInVenderSubData
- type GetMemeberDiscountData
- type GetMemeberDiscountRequest
- type GetMemeberDiscountResponse
- type GetMemeberDiscountReturnType
- type GetPointsDetailData
- type GetPointsDetailRequest
- type GetPointsDetailResponse
- type GetPointsDetailResult
- type GetShopRuleTypeData
- type GetShopRuleTypeRequest
- type GetShopRuleTypeResponse
- type GetShopRuleTypeReturnResult
- type IsPointsEnabledData
- type IsPointsEnabledRequest
- type IsPointsEnabledResponse
- type Member
- type MemberScanData
- type MemberScanRequest
- type MemberScanResponse
- type MemberScanResult
- type MemberSearchNewData
- type MemberSearchNewRequest
- type MemberSearchNewResponse
- type MemberSearchNewResult
- type PointsDetailView
- type ReturnType
- type SendPointsData
- type SendPointsRequest
- type SendPointsResponse
- type SetMemberGradeData
- type SetMemberGradeRequest
- type SetMemberGradeResponse
- type SetShopLevelRuleData
- type SetShopLevelRuleRequest
- type SetShopLevelRuleResponse
- type ShopRuleDiscountDTO
- type WriteCustomerInfoData
- type WriteCustomerInfoRequest
- type WriteCustomerInfoResponse
- type WriteCustomerInfoResult
Constants ¶
View Source
const ( POINTS_SOURCE_TYPE_EXCHANGE_REAL = 24 // 实物兑换扣减积分 POINTS_SOURCE_TYPE_EVALUATION = 21 // 评价送积分 POINTS_SOURCE_TYPE_BELOW_LINE = 16 // 线下积分变动 POINTS_SOURCE_TYPE_SHOP_GIFT = 15 // 店铺礼包 POINTS_SOURCE_TYPE_SHOP_SEND = 14 // 商家发积分 POINTS_SOURCE_TYPE_GAME = 13 // 游戏积分 POINTS_SOURCE_TYPE_SIGNIN = 10 // 签到送积分 POINTS_SOURCE_TYPE_EXCHANGE_COUPON = 5 // 积分兑换优惠券 POINTS_SOURCE_TYPE_FOLLOW = 11 // 关注送积分 )
Variables ¶
This section is empty.
Functions ¶
func DeleteCustomerOpenInfo ¶
func DeleteCustomerOpenInfo(req *DeleteCustomerOpenInfoRequest) (bool, error)
获取单个SKU
func GetCustomerPoints ¶
func GetCustomerPoints(req *GetCustomerPointsRequest) (int64, error)
func GetPointsSourceTypeDesc ¶
func GetShopRuleType ¶
func GetShopRuleType(req *GetShopRuleTypeRequest) (uint8, error)
TODO 查询商家是否开通会 员开卡功能/开卡类 型
func SendPoints ¶
func SendPoints(req *SendPointsRequest) (int64, error)
func SetShopLevelRule ¶
func SetShopLevelRule(req *SetShopLevelRuleRequest) (bool, error)
TODO 修改会员体系规则
func WriteCustomerInfo ¶
func WriteCustomerInfo(req *WriteCustomerInfoRequest) (bool, error)
获取单个SKU
Types ¶
type CardMember ¶
type CardMember struct { LevelAtShop uint8 `json:"levelAtShop,omitempty" codec:"levelAtShop,omitempty"` // 店铺会员等级 AvgOrderPrice float64 `json:"avgOrderPrice,omitempty" codec:"avgOrderPrice,omitempty"` // 平均客单价 TotalOrderPrice float64 `json:"totalOrderPrice,omitempty" codec:"totalOrderPrice,omitempty"` // 订单总金额 FirstOrderDate string `json:"firstOrderDate,omitempty" codec:"firstOrderDate,omitempty"` // 首次订单时间 LastOrderDate string `json:"lastOrderDate,omitempty" codec:"lastOrderDate,omitempty"` // 上次订单时间 CustomerType string `json:"customerType,omitempty" codec:"customerType,omitempty"` // OPEN_CARD_MEMBER, ORDER_MEMBER OPEN_CARD_MEMBER, ORDER_MEMBER CustomerPin string `json:"customerPin,omitempty" codec:"customerPin,omitempty"` // pin VenderId uint64 `json:"venderId,omitempty" codec:"venderId,omitempty"` // 商家ID Channel uint `json:"channel,omitempty" codec:"channel,omitempty"` // 渠道码 ActivationDate string `json:"activationDate,omitempty" codec:"activationDate,omitempty"` // 开卡时间 TotalOrderCount uint `json:"totalOrderCount,omitempty" codec:"totalOrderCount,omitempty"` // 开卡时间 }
func GetCustomer ¶
func GetCustomer(req GetCustomerRequest) (CardMember, error)
type CustomerInfoEs ¶
type CustomerInfoEs struct { VenderId uint64 `json:"venderId,omitempty" codec:"venderId,omitempty"` // 商家Id ShopId uint64 `json:"shopId,omitempty" codec:"shopId,omitempty"` // 店铺Id CompanyId uint64 `json:"companyId,omitempty" codec:"companyId,omitempty"` // 公司Id UserId int64 `json:"userId,omitempty" codec:"userId,omitempty"` // 用户Id NickName string `json:"nickName,omitempty" codec:"nickName,omitempty"` // 用户昵称 LevelAtJd string `json:"levelAtJd,omitempty" codec:"levelAtJd,omitempty"` // jd等级 TotalOrderPrice int64 `json:"totalOrderPrice,omitempty" codec:"totalOrderPrice,omitempty"` // 订单总金额 保存的是分 TotalOrderCount int `json:"totalOrderCount,omitempty" codec:"totalOrderCount,omitempty"` // 订单总数量 TotalGoodsCount int `json:"totalGoodsCount,omitempty" codec:"totalGoodsCount,omitempty"` // 商品数量 CanceledOrderCount int `json:"canceledOrderCount,omitempty" codec:"canceledOrderCount,omitempty"` // 退货次数 AvgOrderPrice int64 `json:"avgOrderPrice,omitempty" codec:"avgOrderPrice,omitempty"` // 平均客单价 LastOrderDate string `json:"lastOrderDate,omitempty" codec:"lastOrderDate,omitempty"` // 上次订单时间 OrderFrom int `json:"orderFrom,omitempty" codec:"orderFrom,omitempty"` // 订单来源 FirstOrderDate string `json:"firstOrderDate,omitempty" codec:"firstOrderDate,omitempty"` // 首次订单时间 CustomerStatus uint8 `json:"customerStatus,omitempty" codec:"customerStatus,omitempty"` // 会员状态 1:正式会员 2:预会员 3:流失会员 LevelAtShop int `json:"levelAtShop,omitempty" codec:"levelAtShop,omitempty"` // 店铺等级 PcFlag int `json:"pcFlag,omitempty" codec:"pcFlag,omitempty"` // 是否pc下单 PhoneFlag int `json:"phoneFlag,omitempty" codec:"phoneFlag,omitempty"` // 是否手机下单 WxFlag int `json:"wxFlag,omitempty" codec:"wxFlag,omitempty"` // 是否微信下单 IncreaseDate string `json:"increaseDate,omitempty" codec:"increaseDate,omitempty"` // 增量日期 Created string `json:"created,omitempty" codec:"created,omitempty"` // 创建时间 Modified string `json:"modified,omitempty" codec:"modified,omitempty"` // 修改时间 HuanHuo int `json:"huanHuo,omitempty" codec:"huanHuo,omitempty"` // 换货次数 Tuidan int `json:"tuidan,omitempty" codec:"tuidan,omitempty"` // 退单次数 TuihuanMoney int64 `json:"tuihuanMoney,omitempty" codec:"tuihuanMoney,omitempty"` // 退换货金额 Points int `json:"points,omitempty" codec:"points,omitempty"` // 积分 }
func GetMemberInVender ¶
func GetMemberInVender(req *GetMemberInVenderRequest) (*CustomerInfoEs, error)
type DeleteCustomerOpenInfoData ¶
type DeleteCustomerOpenInfoData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result *DeleteCustomerOpenInfoResult `json:"deletecustomeropeninfo_result,omitempty" codec:"deletecustomeropeninfo_result,omitempty"` }
type DeleteCustomerOpenInfoRequest ¶
type DeleteCustomerOpenInfoRequest struct {
api.BaseRequest
}
type DeleteCustomerOpenInfoResponse ¶
type DeleteCustomerOpenInfoResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *DeleteCustomerOpenInfoData `json:"jingdong_crm_deleteCustomerOpenInfo_responce,omitempty" codec:"jingdong_crm_deleteCustomerOpenInfo_responce,omitempty"` }
type GetCustomerPointsData ¶
type GetCustomerPointsRequest ¶
type GetCustomerPointsRequest struct { api.BaseRequest CustomerPin string `json:"customer_pin,omitempty" codec:"customer_pin,omitempty"` // }
type GetCustomerPointsResponse ¶
type GetCustomerPointsResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetCustomerPointsData `json:"jingdong_pop_crm_getCustomerPoints_responce",omitempty" codec:"jingdong_pop_crm_getCustomerPoints_responce",omitempty"` }
type GetCustomerRequest ¶
type GetCustomerRequest struct { BaseRequest CustomerPin string `json:"customerPin,omitempty" codec:"customerPin,omitempty"` }
type GetCustomerResponse ¶
type GetCustomerResponse struct { ErrorResp *ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Response GetCustomerResponse1 `` /* 128-byte string literal not displayed */ }
type GetCustomerResponse1 ¶
type GetCustomerResponse1 struct {
Result GetCustomerResult `json:"returnResult,omitempty" codec:"returnResult,omitempty"`
}
type GetCustomerResult ¶
type GetCustomerResult struct { Desc string `json:"desc,omitempty" codec:"desc,omitempty"` Code string `json:"code,omitempty" codec:"code,omitempty"` Data CardMember `json:"data,omitempty" codec:"data,omitempty"` }
type GetGradesData ¶
type GetGradesData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result []*GetGradesResult `json:"grade_promotions,omitempty" codec:"grade_promotions,omitempty"` }
type GetGradesRequest ¶
type GetGradesRequest struct {
api.BaseRequest
}
type GetGradesResponse ¶
type GetGradesResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetGradesData `json:"jingdong_crm_grade_get_responce,omitempty" codec:"jingdong_crm_grade_get_responce,omitempty"` }
type GetGradesResult ¶
type GetGradesResult struct { CurGrade string `json:"cur_grade,omitempty" codec:"cur_grade,omitempty"` CurGradeName string `json:"cur_grade_name,omitempty" codec:"cur_grade_name,omitempty"` NextUpgradeCount int `json:"next_upgrade_count,omitempty" codec:"next_upgrade_count,omitempty"` NextUpgradeAmount int `json:"next_upgrade_amount,omitempty" codec:"next_upgrade_amount,omitempty"` NextGrade string `json:"next_grade,omitempty" codec:"next_grade,omitempty"` NextGradeName string `json:"next_grade_name,omitempty" codec:"next_grade_name,omitempty"` }
func GetGrades ¶
func GetGrades(req *GetGradesRequest) ([]*GetGradesResult, error)
type GetMemberInVenderData ¶
type GetMemberInVenderData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result *GetMemberInVenderSubData `json:"getmemberinvender_result,omitempty" codec:"getmemberinvender_result,omitempty"` }
type GetMemberInVenderRequest ¶
type GetMemberInVenderRequest struct { api.BaseRequest CustomerPin string `json:"customer_pin,omitempty" codec:"customer_pin,omitempty"` // }
type GetMemberInVenderResponse ¶
type GetMemberInVenderResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetMemberInVenderData `json:"jingdong_pop_crm_getMemberInVender_responce",omitempty" codec:"jingdong_pop_crm_getMemberInVender_responce",omitempty"` }
type GetMemberInVenderSubData ¶
type GetMemberInVenderSubData struct {
CustomerInfoEs *CustomerInfoEs `json:"customerInfoEs,omitempty" codec:"customerInfoEs,omitempty"`
}
type GetMemeberDiscountData ¶
type GetMemeberDiscountData struct {
ReturnType *GetMemeberDiscountReturnType `json:"returnType,omitempty" codec:"returnType,omitempty"`
}
type GetMemeberDiscountRequest ¶
type GetMemeberDiscountRequest struct {
api.BaseRequest
}
type GetMemeberDiscountResponse ¶
type GetMemeberDiscountResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetMemeberDiscountData `json:"jingdong_pop_crm_getMemeberDiscount_responce,omitempty" codec:"jingdong_pop_crm_getMemeberDiscount_responce,omitempty"` }
type GetMemeberDiscountReturnType ¶
type GetMemeberDiscountReturnType struct { Desc string `json:"desc,omitempty" codec:"desc,omitempty"` //返回值code码 Code string `json:"code,omitempty" codec:"code,omitempty"` //返回值code码描述 Data []*ShopRuleDiscountDTO `json:"data,omitempty" codec:"data,omitempty"` //折扣信息数组 返回值:code码为200时,可能为空;code码为400、500时,为空; }
type GetPointsDetailData ¶
type GetPointsDetailData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result *GetPointsDetailResult `json:"getpointsdetail_result,omitempty" codec:"getpointsdetail_result,omitempty"` }
type GetPointsDetailRequest ¶
type GetPointsDetailRequest struct { api.BaseRequest CustomerPin string `json:"customer_pin,omitempty" codec:"customer_pin,omitempty"` // 客户唯一号 StartTime string `json:"start_time,omitempty" codec:"start_time,omitempty"` // 查询开始时间(yyyyMMddHHmmss) EndTime string `json:"end_time,omitempty" codec:"end_time,omitempty"` // 查询结束时间(yyyyMMddHHmmss) }
type GetPointsDetailResponse ¶
type GetPointsDetailResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetPointsDetailData `json:"jingdong_pop_crm_getPointsDetail_responce",omitempty" codec:"jingdong_pop_crm_getPointsDetail_responce",omitempty"` }
type GetPointsDetailResult ¶
type GetPointsDetailResult struct { PointsDetailViews []*PointsDetailView `json:"pointsDetailViews,omitempty" codec:"pointsDetailViews,omitempty"` PageRowKeys map[string]interface{} `json:"pageRowKeys,omitempty" codec:"pageRowKeys,omitempty"` HasNext bool `json:"hasNext,omitempty" codec:"hasNext,omitempty"` }
type GetShopRuleTypeData ¶
type GetShopRuleTypeData struct {
ReturnResult *GetShopRuleTypeReturnResult `json:"returnResult,omitempty" codec:"returnResult,omitempty"`
}
type GetShopRuleTypeRequest ¶
type GetShopRuleTypeRequest struct {
api.BaseRequest
}
type GetShopRuleTypeResponse ¶
type GetShopRuleTypeResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *GetShopRuleTypeData `json:"jingdong_pop_crm_getShopRuleType_responce,omitempty" codec:"jingdong_pop_crm_getShopRuleType_responce,omitempty"` }
type IsPointsEnabledData ¶
type IsPointsEnabledRequest ¶
type IsPointsEnabledRequest struct {
api.BaseRequest
}
type IsPointsEnabledResponse ¶
type IsPointsEnabledResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *IsPointsEnabledData `json:"jingdong_pop_crm_isPointsEnabled_responce,omitempty" codec:"jingdong_pop_crm_isPointsEnabled_responce,omitempty"` }
type Member ¶
type Member struct { CustomerPin string `json:"customer_pin,omitempty" codec:"customer_pin,omitempty"` // 用户在京东的会员账号 Grade string `json:"grade,omitempty" codec:"grade,omitempty"` // 会员等级, 1:一星会员,2:二星会员 3:三星会员 4:四星会员 5:五星会员 TradeCount int `json:"trade_count,omitempty" codec:"trade_count,omitempty"` // 交易成功笔数 TradeAmount float64 `json:"trade_amount,omitempty" codec:"trade_amount,omitempty"` // 交易成功的金额,单位为元 CloseTradeCount int `json:"close_trade_count,omitempty" codec:"close_trade_count,omitempty"` // 交易关闭的的笔数 退货订单量 CloseTradeAmount float64 `json:"close_trade_amount,omitempty" codec:"close_trade_amount,omitempty"` // 交易关闭的金额 退货订单金额,单位为元 ItemNum int `json:"item_num,omitempty" codec:"item_num,omitempty"` // 购买的商品件数 AvgPrice float64 `json:"avg_price,omitempty" codec:"avg_price,omitempty"` // 平均客单价,单位为元 LastTradeTime int64 `json:"last_trade_time,omitempty" codec:"last_trade_time,omitempty"` // 最后交易时间。非sdk调用 请自行转换long到date AccountId uint64 `json:"account_id,omitempty" codec:"account_id,omitempty"` JdUserId int64 `json:"jd_user_id,omitempty" codec:"jd_user_id,omitempty"` CustomerEncryPin string `json:"customer_encrypin,omitempty" codec:"customer_encrypin,omitempty"` }
type MemberScanData ¶
type MemberScanData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result *MemberScanResult `json:"crm_member_scan_result,omitempty" codec:"crm_member_scan_result,omitempty"` }
type MemberScanRequest ¶
type MemberScanRequest struct { api.BaseRequest Pin string `json:"pin,omitempty" codec:"pin,omitempty"` // 会员名称,用户在京东的唯一标识 Grade string `json:"grade,omitempty" codec:"grade,omitempty"` // 会员等级(可支持多个,用逗号分隔,如:1,2,3) MinLastTradeTime string `json:"min_last_trade_time,omitempty" codec:"min_last_trade_time,omitempty"` // 最早上次交易时间,精确至年月日 MaxLastTradeTime string `json:"max_last_trade_time,omitempty" codec:"max_last_trade_time,omitempty"` // 最迟上次交易时间,精确至年月日 MinTradeCount int `json:"min_trade_count,omitempty" codec:"min_trade_count,omitempty"` // 最小交易量 MaxTradeCount int `json:"max_trade_count,omitempty" codec:"max_trade_count,omitempty"` // 最大交易量 AvgPrice int `json:"avg_price,omitempty" codec:"avg_price,omitempty"` // 最小平均客单价,单位为元 MinTradeAmount int `json:"min_trade_amount,omitempty" codec:"min_trade_amount,omitempty"` // 最小交易额,单位为元 PageSize int `json:"page_size,omitempty" codec:"page_size,omitempty"` // 页大小,查询第一页时必填 ScrollId string `json:"scroll_id,omitempty" codec:"scroll_id,omitempty"` // 上一次查询的游标,查询第一页时不填。第二页及以后scrollID为必填项,其他参数均可不填,scrollID为唯一有效参数。 }
type MemberScanResponse ¶
type MemberScanResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *MemberScanData `json:"jingdong_crm_member_scan_responce",omitempty" codec:"jingdong_crm_member_scan_responce",omitempty"` }
type MemberScanResult ¶
type MemberScanResult struct { TotalResult int `json:"total_result,omitempty" codec:"total_result,omitempty"` Members []*Member `json:"crm_members,omitempty" codec:"crm_members,omitempty"` ScrollId string `json:"scroll_id,omitempty" codec:"scroll_id,omitempty"` }
func MemberScan ¶
func MemberScan(req *MemberScanRequest) (*MemberScanResult, error)
type MemberSearchNewData ¶
type MemberSearchNewData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result *MemberSearchNewResult `json:"crm_member_result,omitempty" codec:"crm_member_result,omitempty"` }
type MemberSearchNewRequest ¶
type MemberSearchNewRequest struct { api.BaseRequest Pin string `json:"pin,omitempty" codec:"pin,omitempty"` // 会员名称,用户在京东的唯一标识 Grade string `json:"grade,omitempty" codec:"grade,omitempty"` // 会员等级(可支持多个,用逗号分隔,如:1,2,3) MinLastTradeTime string `json:"min_last_trade_time,omitempty" codec:"min_last_trade_time,omitempty"` // 最早上次交易时间,精确至年月日 MaxLastTradeTime string `json:"max_last_trade_time,omitempty" codec:"max_last_trade_time,omitempty"` // 最迟上次交易时间,精确至年月日 MinTradeCount int `json:"min_trade_count,omitempty" codec:"min_trade_count,omitempty"` // 最小交易量 MaxTradeCount int `json:"max_trade_count,omitempty" codec:"max_trade_count,omitempty"` // 最大交易量 AvgPrice int `json:"avg_price,omitempty" codec:"avg_price,omitempty"` // 最小平均客单价,单位为元 MinTradeAmount int `json:"min_trade_amount,omitempty" codec:"min_trade_amount,omitempty"` // 最小交易额,单位为元 Page int `json:"page,omitempty" codec:"page,omitempty"` // 显示第几页的会员,如果输入的页码大于总共的页码数,例如总共10页,但是current_page的值为11,则返回空白页,最小页数为1,最大页数为100 PageSize int `json:"page_size,omitempty" codec:"page_size,omitempty"` // 表示每页显示的会员数量,page_size的最大值不能超过100条,最小值不能低于1 }
type MemberSearchNewResponse ¶
type MemberSearchNewResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *MemberSearchNewData `json:"jingdong_crm_member_searchNew_responce",omitempty" codec:"jingdong_crm_member_searchNew_responce",omitempty"` }
type MemberSearchNewResult ¶
type MemberSearchNewResult struct { TotalResult int `json:"total_result,omitempty" codec:"total_result,omitempty"` Members []*Member `json:"crm_members,omitempty" codec:"crm_members,omitempty"` }
func MemberSearchNew ¶
func MemberSearchNew(req *MemberSearchNewRequest) (*MemberSearchNewResult, error)
type PointsDetailView ¶
type PointsDetailView struct { OccurTime string `json:"occurTime,omitempty" codec:"occurTime,omitempty"` SourceType int `json:"sourceType,omitempty" codec:"sourceType,omitempty"` CurPoints int64 `json:"curPoints,omitempty" codec:"curPoints,omitempty"` VenderId uint64 `json:"venderId,omitempty" codec:"venderId,omitempty"` Points int64 `json:"points,omitempty" codec:"points,omitempty"` BusinessId string `json:"businessId,omitempty" codec:"businessId,omitempty"` ResId string `json:"resId,omitempty" codec:"resId,omitempty"` Msg string `json:"msg,omitempty" codec:"msg,omitempty"` }
func GetPointsDetail ¶
func GetPointsDetail(req *GetPointsDetailRequest) ([]*PointsDetailView, error)
type ReturnType ¶
type SendPointsData ¶
type SendPointsRequest ¶
type SendPointsRequest struct { api.BaseRequest SysName string `json:"sys_name,omitempty" codec:"sys_name,omitempty"` // 系统名称 CustomerPin string `json:"customer_pin,omitempty" codec:"customer_pin,omitempty"` // 用户pin ResId string `json:"res_id,omitempty" codec:"res_id,omitempty"` // 来源标识 SourceType int `json:"source_type,omitempty" codec:"source_type,omitempty"` // 来源类型 Points int64 `json:"points,omitempty" codec:"points,omitempty"` // 积分数 }
type SendPointsResponse ¶
type SendPointsResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *SendPointsData `json:"jingdong_pop_crm_sendPoints_responce",omitempty" codec:"jingdong_pop_crm_sendPoints_responce",omitempty"` }
type SetMemberGradeData ¶
type SetMemberGradeData struct {
ReturnType *ReturnType `json:"returnType,omitempty" codec:"returnType,omitempty"`
}
type SetMemberGradeRequest ¶
type SetMemberGradeRequest struct { api.BaseRequest Pin string `json:"pin"` //用户Pin Grade uint8 `json:"grade"` //等级 }
type SetMemberGradeResponse ¶
type SetMemberGradeResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *SetMemberGradeData `json:"jingdong_pop_crm_setMemberGrade_responce,omitempty" codec:"jingdong_pop_crm_setMemberGrade_responce,omitempty"` }
type SetShopLevelRuleData ¶
type SetShopLevelRuleData struct {
ReturnType *ReturnType `json:"returnType,omitempty" codec:"returnType,omitempty"`
}
type SetShopLevelRuleRequest ¶
type SetShopLevelRuleRequest struct { api.BaseRequest CustomerLevelName []string `json:"customerLevelName,omitempty"` //按顺序填写店铺会员等级名称 }
type SetShopLevelRuleResponse ¶
type SetShopLevelRuleResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *SetShopLevelRuleData `json:"jingdong_pop_crm_setShopLevelRule_responce,omitempty" codec:"jingdong_pop_crm_setShopLevelRule_responce,omitempty"` }
type ShopRuleDiscountDTO ¶
type ShopRuleDiscountDTO struct { CurGradeName string `json:"curGradeName,omitempty" codec:"curGradeName,omitempty"` //当前会员店铺等级名称 CurGrade string `json:"curGrade,omitempty" codec:"curGrade,omitempty"` // 当前会员店铺等级(1、2、3、4、5),最少1个等级,最多5个等级 VenderId uint64 `json:"venderId,omitempty" codec:"venderId,omitempty"` //商家Id Discount string `json:"discount,omitempty" codec:"discount,omitempty"` //会员折扣(1-9.9),为空表示未设置折扣 }
func GetMemeberDiscount ¶
func GetMemeberDiscount(req *GetMemeberDiscountRequest) ([]*ShopRuleDiscountDTO, error)
TODO 查询会员折扣信息
type WriteCustomerInfoData ¶
type WriteCustomerInfoData struct { Code string `json:"code,omitempty" codec:"code,omitempty"` Result *WriteCustomerInfoResult `json:"writecustomerinfo_result,omitempty" codec:"writecustomerinfo_result,omitempty"` }
type WriteCustomerInfoRequest ¶
type WriteCustomerInfoRequest struct { api.BaseRequest LinkUrl string `json:"linkUrl,omitempty" codec:"linkUrl,omitempty"` }
type WriteCustomerInfoResponse ¶
type WriteCustomerInfoResponse struct { ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"` Data *WriteCustomerInfoData `json:"jingdong_crm_writeCustomerInfo_responce,omitempty" codec:"jingdong_crm_writeCustomerInfo_responce,omitempty"` }
type WriteCustomerInfoResult ¶
Source Files ¶
- customer.interface.go
- deleteCustomerOpenInfo.go
- getCustomer.go
- getCustomerPoints.go
- getGrades.go
- getMemberInVender.go
- getMemeberDiscount.go
- getPointsDetail.go
- getShopRuleType.go
- interface.go
- isPointsEnabled.go
- memberScan.go
- memberSearchNew.go
- sendPoints.go
- setMemberGrade.go
- setShopLevelRule.go
- writeCustomerInfo.go
Click to show internal directories.
Click to hide internal directories.