crm

package
v1.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShopGiftClose

func ShopGiftClose(req *ShopGiftCloseRequest) (bool, error)

func ShopGiftCreate

func ShopGiftCreate(req *ShopGiftCreateRequest) (uint64, error)

func ShopGiftDraw

func ShopGiftDraw(req *ShopGiftDrawRequest) (uint64, error)

Types

type PopShopGiftListData

type PopShopGiftListData struct {
	Code      string                 `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc string                 `json:"error_description,omitempty" codec:"error_description,omitempty"`
	Result    *PopShopGiftListResult `json:"commonResult,omitempty" codec:"commonResult,omitempty"`
}

func (PopShopGiftListData) Error added in v1.1.1

func (r PopShopGiftListData) Error() string

func (PopShopGiftListData) IsError added in v1.1.1

func (r PopShopGiftListData) IsError() bool

type PopShopGiftListModel

type PopShopGiftListModel struct {
	Id            uint64   `json:"id"`            // 奖励Id
	VenderId      uint64   `json:"venderId"`      // 商家id
	ActivityId    uint64   `json:"activityId"`    // 活动id
	PrizeType     uint8    `json:"prizeType"`     // 奖品类型
	Discount      uint     `json:"discount"`      // 积分/京豆:单位发放数量;优惠金额: 优惠券面值
	Quota         uint     `json:"quota"`         // 满足优惠的最低消费额
	ModelNameList []string `json:"modelNameList"` // 人群列表
}

func PopShopGiftList

func PopShopGiftList(req *PopShopGiftListRequest) ([]PopShopGiftListModel, error)

type PopShopGiftListRequest

type PopShopGiftListRequest struct {
	api.BaseRequest

	UserPin     string `json:"userPin" codec:"userPin"`
	Channel     uint8  `json:"channel" codec:"channel"` // 渠道来源,pc:1 app:2 等
	OpenIdBuyer string `json:"open_id_buyer" codec:"open_id_buyer"`
}

type PopShopGiftListResponse

type PopShopGiftListResponse struct {
	ErrorResp *api.ErrorResponnse  `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *PopShopGiftListData `` /* 142-byte string literal not displayed */
}

func (PopShopGiftListResponse) Error added in v1.1.1

func (r PopShopGiftListResponse) Error() string

func (PopShopGiftListResponse) IsError added in v1.1.1

func (r PopShopGiftListResponse) IsError() bool

type PopShopGiftListResult

type PopShopGiftListResult struct {
	Code string                 `json:"code,omitempty" codec:"code,omitempty"`
	Desc string                 `json:"desc,omitempty" codec:"desc,omitempty"`
	Data []PopShopGiftListModel `json:"data,omitempty" codec:"data,omitempty"`
}

func (PopShopGiftListResult) Error added in v1.1.1

func (r PopShopGiftListResult) Error() string

func (PopShopGiftListResult) IsError added in v1.1.1

func (r PopShopGiftListResult) IsError() bool

type ShopGiftActivityDomain

type ShopGiftActivityDomain struct {
	Id                uint64 `json:"id"`                // 活动id
	VenderId          uint64 `json:"venderId"`          // 商家id
	ModelId           uint64 `json:"modelId"`           // 人群模型id
	ActivityName      string `json:"activityName"`      // 活动名称
	ActivityStartTime uint64 `json:"activityStartTime"` // 活动开始时间
	ActivityEndTime   uint64 `json:"activityEndTime"`   // 活动结束时间
}

type ShopGiftCloseData

type ShopGiftCloseData struct {
	Code      string               `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc string               `json:"error_description,omitempty" codec:"error_description,omitempty"`
	Result    *ShopGiftCloseResult `json:"closeshopgiftcallback_result,omitempty" codec:"closeshopgiftcallback_result,omitempty"`
}

func (ShopGiftCloseData) Error added in v1.1.1

func (r ShopGiftCloseData) Error() string

func (ShopGiftCloseData) IsError added in v1.1.1

func (r ShopGiftCloseData) IsError() bool

type ShopGiftCloseRequest

type ShopGiftCloseRequest struct {
	api.BaseRequest

	ActivityId uint64 `json:"activityId" codec:"activityId"` // 活动ID
}

type ShopGiftCloseResponse

type ShopGiftCloseResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *ShopGiftCloseData  `` /* 148-byte string literal not displayed */
}

func (ShopGiftCloseResponse) Error added in v1.1.1

func (r ShopGiftCloseResponse) Error() string

func (ShopGiftCloseResponse) IsError added in v1.1.1

func (r ShopGiftCloseResponse) IsError() bool

type ShopGiftCloseResult

type ShopGiftCloseResult struct {
	Code string `json:"code,omitempty" codec:"code,omitempty"`
	Data bool   `json:"data,omitempty" codec:"data,omitempty"`
	Desc string `json:"desc,omitempty" codec:"desc,omitempty"`
}

func (ShopGiftCloseResult) Error added in v1.1.1

func (r ShopGiftCloseResult) Error() string

func (ShopGiftCloseResult) IsError added in v1.1.1

func (r ShopGiftCloseResult) IsError() bool

type ShopGiftCreateData

type ShopGiftCreateData struct {
	Code      string                `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc string                `json:"error_description,omitempty" codec:"error_description,omitempty"`
	Result    *ShopGiftCreateResult `json:"createisvshopgift_result,omitempty" codec:"createisvshopgift_result,omitempty"`
}

func (ShopGiftCreateData) Error added in v1.1.1

func (r ShopGiftCreateData) Error() string

func (ShopGiftCreateData) IsError added in v1.1.1

func (r ShopGiftCreateData) IsError() bool

type ShopGiftCreateRequest

type ShopGiftCreateRequest struct {
	api.BaseRequest

	Name          string `json:"name" codec:"name"`                                   // 活动名称
	StartDate     string `json:"startDate" codec:"startDate"`                         // 活动开始时间
	EndDate       string `json:"endDate" codec:"endDate"`                             // 活动结束时间
	ModelIds      string `json:"modelIds" codec:"modelIds"`                           // 活动对应的人群包的id,用下划线分割;商家的人群包信息通过jingdong.pop.crm.shopGift.getGroupModelList查询,系统定义人群和系统推荐及自定义人群不能同时存在,且系统自定义人群单选
	Creator       string `json:"creator" codec:"creator"`                             // 活动创建者,商家用户pin
	CreateChannel string `json:"createChannel" codec:"createChannel"`                 // 活动创建渠道,isv侧填写固定值:SHOP_GIFT_ISV
	CloseLink     string `json:"closeLink" codec:"closeLink"`                         // 关闭活动链接,商家可在商家后台点击链接,关闭活动
	IsvName       string `json:"isvName" codec:"isvName"`                             // ISV服务商的名称/在京麦平台作为插件的名称
	ActivityLink  string `json:"activityLink" codec:"activityLink"`                   // ISV活动页链接,做奖项的展示,需要提前与京东app侧协议接入
	RequestPin    string `json:"requestPin" codec:"requestPin"`                       // 创建者的用户pin
	IsvValidate   string `json:"isvValidate,omitempty" codec:"isvValidate,omitempty"` // isv插件有效期
	SendNumber    string `json:"sendNumber,omitempty" codec:"sendNumber,omitempty"`   // 发放总量
	OpenIdSeller  string `json:"open_id_seller" codec:"open_id_seller"`               // 活动创建者,商家用户pin
	OpenIdIsv     string `json:"open_id_isv" codec:"open_id_isv"`                     // 创建者的用户pin
	Discount      string `json:"discount" codec:"discount"`                           // 优惠金额 单位奖项额度 京券、东券、京豆、积分; 例满100减1的东券,此处填写1,
	Quota         string `json:"quota,omitempty" codec:"quota,omitempty"`             // 满足优惠的消费金额 -东券;例满100减1的东券,此处填写100
	ValidateDay   string `json:"validateDay,omitempty" codec:"validateDay,omitempty"` // 有效期(天数) --东券 京券
	PrizeType     string `json:"prizeType" codec:"prizeType"`                         // 奖品类型code及代表类型如下: 0:京券 1:东券 4:京豆 6:积分
	SendCount     string `json:"sendCount" codec:"sendCount"`                         // 奖项发放人数
}

type ShopGiftCreateResponse

type ShopGiftCreateResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *ShopGiftCreateData `` /* 134-byte string literal not displayed */
}

func (ShopGiftCreateResponse) Error added in v1.1.1

func (r ShopGiftCreateResponse) Error() string

func (ShopGiftCreateResponse) IsError added in v1.1.1

func (r ShopGiftCreateResponse) IsError() bool

type ShopGiftCreateResult

type ShopGiftCreateResult struct {
	Code string `json:"code,omitempty" codec:"code,omitempty"`
	Data uint64 `json:"data,omitempty" codec:"data,omitempty"`
	Desc string `json:"desc,omitempty" codec:"desc,omitempty"`
}

func (ShopGiftCreateResult) Error added in v1.1.1

func (r ShopGiftCreateResult) Error() string

func (ShopGiftCreateResult) IsError added in v1.1.1

func (r ShopGiftCreateResult) IsError() bool

type ShopGiftDrawData

type ShopGiftDrawData struct {
	Code      string              `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc string              `json:"error_description,omitempty" codec:"error_description,omitempty"`
	Result    *ShopGiftDrawResult `json:"createshopgift_result,omitempty" codec:"createshopgift_result,omitempty"`
}

func (ShopGiftDrawData) Error added in v1.1.1

func (r ShopGiftDrawData) Error() string

func (ShopGiftDrawData) IsError added in v1.1.1

func (r ShopGiftDrawData) IsError() bool

type ShopGiftDrawRequest

type ShopGiftDrawRequest struct {
	api.BaseRequest

	UserPin     string `json:"userPin" codec:"userPin"`             // 用户密文pin
	ActivityId  uint64 `json:"activityId" codec:"activityId"`       // 活动ID
	Ip          string `json:"ip" codec:"ip"`                       // 领取礼包的ip
	BussinessId string `json:"bussinessId" codec:"bussinessId"`     // 调用方的业务id
	Channel     uint8  `json:"channel" codec:"channel"`             // 领取礼包的渠道
	OpenIdBuyer string `json:"open_id_buyer" codec:"open_id_buyer"` // 用户密文pin
}

type ShopGiftDrawResponse

type ShopGiftDrawResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *ShopGiftDrawData   `` /* 130-byte string literal not displayed */
}

func (ShopGiftDrawResponse) Error added in v1.1.1

func (r ShopGiftDrawResponse) Error() string

func (ShopGiftDrawResponse) IsError added in v1.1.1

func (r ShopGiftDrawResponse) IsError() bool

type ShopGiftDrawResult

type ShopGiftDrawResult struct {
	Code string `json:"code,omitempty" codec:"code,omitempty"`
	Data uint64 `json:"data,omitempty" codec:"data,omitempty"`
	Desc string `json:"desc,omitempty" codec:"desc,omitempty"`
}

func (ShopGiftDrawResult) Error added in v1.1.1

func (r ShopGiftDrawResult) Error() string

func (ShopGiftDrawResult) IsError added in v1.1.1

func (r ShopGiftDrawResult) IsError() bool

type ShopGiftGroupModel

type ShopGiftGroupModel struct {
	Id            uint64   `json:"id"`               // 人群id
	VenderId      int      `json:"venderId"`         // 商家id
	ModelId       int      `json:"modelId"`          // 人群模型id
	ModelName     string   `json:"modelName"`        // 人群名称
	ModelDesc     string   `json:"modelDesc"`        // 人群名称描述
	SRange        string   `json:"range,omitempty"`  // 范围
	RuleExp       string   `json:"ruleExp"`          // 规则
	IsDelete      uint8    `json:"isDelete"`         // 是否删除
	CreateTime    uint64   `json:"createTime"`       // 创建时间
	ModifyTime    uint64   `json:"modifyTime"`       // 修改时间
	ModelNum      uint     `json:"modelNum"`         // 模型数
	ModelType     uint     `json:"modelType"`        // 模型类型
	TaskId        uint64   `json:"taskId,omitempty"` // 任务id
	Status        int      `json:"status"`           // 状态
	ModelDescList []string `json:"modelDescList"`    // 人群信息描述
}

type ShopGiftGroupModelListData

type ShopGiftGroupModelListData struct {
	Code      string                        `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc string                        `json:"error_description,omitempty" codec:"error_description,omitempty"`
	Result    *ShopGiftGroupModelListResult `json:"commonResult,omitempty" codec:"commonResult,omitempty"`
}

func (ShopGiftGroupModelListData) Error added in v1.1.1

func (ShopGiftGroupModelListData) IsError added in v1.1.1

func (r ShopGiftGroupModelListData) IsError() bool

type ShopGiftGroupModelListRequest

type ShopGiftGroupModelListRequest struct {
	api.BaseRequest

	Channel uint8 `json:"channel" codec:"channel"` // 渠道来源,pc:1 app:2 等
}

type ShopGiftGroupModelListResponse

type ShopGiftGroupModelListResponse struct {
	ErrorResp *api.ErrorResponnse         `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *ShopGiftGroupModelListData `` /* 140-byte string literal not displayed */
}

func (ShopGiftGroupModelListResponse) Error added in v1.1.1

func (ShopGiftGroupModelListResponse) IsError added in v1.1.1

type ShopGiftGroupModelListResult

type ShopGiftGroupModelListResult struct {
	Code string               `json:"code,omitempty" codec:"code,omitempty"`
	Desc string               `json:"desc,omitempty" codec:"desc,omitempty"`
	Data []ShopGiftGroupModel `json:"data,omitempty" codec:"data,omitempty"`
}

func (ShopGiftGroupModelListResult) Error added in v1.1.1

func (ShopGiftGroupModelListResult) IsError added in v1.1.1

func (r ShopGiftGroupModelListResult) IsError() bool

type ShopGiftValidActivityData

type ShopGiftValidActivityData struct {
	Code      string                       `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc string                       `json:"error_description,omitempty" codec:"error_description,omitempty"`
	Result    *ShopGiftValidActivityResult `json:"commonResult,omitempty" codec:"commonResult,omitempty"`
}

func (ShopGiftValidActivityData) Error added in v1.1.1

func (ShopGiftValidActivityData) IsError added in v1.1.1

func (r ShopGiftValidActivityData) IsError() bool

type ShopGiftValidActivityRequest

type ShopGiftValidActivityRequest struct {
	api.BaseRequest

	Channel uint8 `json:"channel" codec:"channel"` // 渠道来源,pc:1 app:2 等
}

type ShopGiftValidActivityResponse

type ShopGiftValidActivityResponse struct {
	ErrorResp *api.ErrorResponnse        `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *ShopGiftValidActivityData `` /* 138-byte string literal not displayed */
}

func (ShopGiftValidActivityResponse) Error added in v1.1.1

func (ShopGiftValidActivityResponse) IsError added in v1.1.1

func (r ShopGiftValidActivityResponse) IsError() bool

type ShopGiftValidActivityResult

type ShopGiftValidActivityResult struct {
	Code string                  `json:"code,omitempty" codec:"code,omitempty"`
	Desc string                  `json:"msg,omitempty" codec:"desc,omitempty"`
	Data *ShopGiftActivityDomain `json:"data,omitempty" codec:"data,omitempty"`
}

func (ShopGiftValidActivityResult) Error added in v1.1.1

func (ShopGiftValidActivityResult) IsError added in v1.1.1

func (r ShopGiftValidActivityResult) IsError() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL