-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from zhangshuai/main
- Loading branch information
Showing
23 changed files
with
1,061 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package crm | ||
|
||
import ( | ||
"github.com/bububa/opentaobao/core" | ||
"github.com/bububa/opentaobao/model/crm" | ||
) | ||
|
||
// TaobaoCrmMemberIdentityGet 会员身份识别 | ||
// taobao.crm.member.identity.get | ||
// | ||
// 用来识别该用户是否是商家会员 | ||
func TaobaoCrmMemberIdentityGet(clt *core.SDKClient, req *crm.TaobaoCrmMemberIdentityGetAPIRequest, resp *crm.TaobaoCrmMemberIdentityGetAPIResponse, session string) error { | ||
return clt.Post(req, resp, session) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package crm | ||
|
||
import ( | ||
"github.com/bububa/opentaobao/core" | ||
"github.com/bububa/opentaobao/model/crm" | ||
) | ||
|
||
// TaobaoCrmMemberJoinurlGet 会员入会地址获取 | ||
// taobao.crm.member.joinurl.get | ||
// | ||
// 会员入会地址获取 | ||
func TaobaoCrmMemberJoinurlGet(clt *core.SDKClient, req *crm.TaobaoCrmMemberJoinurlGetAPIRequest, resp *crm.TaobaoCrmMemberJoinurlGetAPIResponse, session string) error { | ||
return clt.Post(req, resp, session) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package crm | ||
|
||
import ( | ||
"github.com/bububa/opentaobao/core" | ||
"github.com/bububa/opentaobao/model/crm" | ||
) | ||
|
||
// TaobaoCrmPointAvailableGet CRM会员积分查询开放接口 | ||
// taobao.crm.point.available.get | ||
// | ||
// 查询用户在某个商家的可用积分数 | ||
func TaobaoCrmPointAvailableGet(clt *core.SDKClient, req *crm.TaobaoCrmPointAvailableGetAPIRequest, resp *crm.TaobaoCrmPointAvailableGetAPIResponse, session string) error { | ||
return clt.Post(req, resp, session) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package qianniu | ||
|
||
import ( | ||
"github.com/bububa/opentaobao/core" | ||
"github.com/bububa/opentaobao/model/qianniu" | ||
) | ||
|
||
// TaobaoQianniuAutoTaskConfigCheck 自动化任务设置校验 | ||
// taobao.qianniu.auto.task.config.check | ||
// | ||
// 校验自动化任务配置 | ||
func TaobaoQianniuAutoTaskConfigCheck(clt *core.SDKClient, req *qianniu.TaobaoQianniuAutoTaskConfigCheckAPIRequest, resp *qianniu.TaobaoQianniuAutoTaskConfigCheckAPIResponse, session string) error { | ||
return clt.Post(req, resp, session) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
98 changes: 98 additions & 0 deletions
98
metadata/assets/patch/crm/taobao_crm_member_identity_get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"name": "taobao.crm.member.identity.get", | ||
"apiChineseName": "会员身份识别", | ||
"description": "用来识别该用户是否是商家会员", | ||
"id": 34436, | ||
"requestParams": [ | ||
{ | ||
"name": "extra_info", | ||
"type": "String", | ||
"description": "扩展参数为JSON字符串,用于埋点统计,source为来源字段固定值 paiyangji代表来源派样机类型设备,deviceId 为设备id,itemId 相关商品id", | ||
"required": false | ||
}, | ||
{ | ||
"name": "mix_nick", | ||
"type": "String", | ||
"description": "混淆昵称,", | ||
"required": false | ||
}, | ||
{ | ||
"name": "nick", | ||
"type": "String", | ||
"description": "明文nick,可不填,直接填混淆昵称", | ||
"required": false | ||
}, | ||
{ | ||
"name": "open_id", | ||
"type": "String", | ||
"description": "open_id", | ||
"required": false | ||
} | ||
], | ||
"responseParams": [ | ||
{ | ||
"name": "result", | ||
"description": "result", | ||
"subParams": [ | ||
{ | ||
"name": "total", | ||
"type": "Number", | ||
"description": "total", | ||
"required": false | ||
}, | ||
{ | ||
"name": "member_info", | ||
"description": "result", | ||
"subParams": [ | ||
{ | ||
"name": "grade", | ||
"type": "Number", | ||
"description": "等级编号", | ||
"subParams": [], | ||
"required": false | ||
}, | ||
{ | ||
"name": "grade_name", | ||
"type": "String", | ||
"description": "等级名称", | ||
"subParams": [], | ||
"required": false | ||
}, | ||
{ | ||
"name": "gmt_create", | ||
"type": "String", | ||
"description": "gmtCreate", | ||
"subParams": [], | ||
"required": false | ||
}, | ||
{ | ||
"name": "bind_status", | ||
"type": "Number", | ||
"description": "bindStatus 1:绑卡(已经是线下会员线上未绑定,或者解绑后再绑定),2:注册", | ||
"subParams": [], | ||
"required": false | ||
} | ||
], | ||
"type": "MemberAccountDto", | ||
"required": false | ||
}, | ||
{ | ||
"name": "code", | ||
"type": "String", | ||
"description": "code", | ||
"subParams": [], | ||
"required": false | ||
}, | ||
{ | ||
"name": "msg", | ||
"type": "String", | ||
"description": "msg", | ||
"subParams": [], | ||
"required": false | ||
} | ||
], | ||
"type": "ResultDto", | ||
"required": false | ||
} | ||
] | ||
} |
65 changes: 65 additions & 0 deletions
65
metadata/assets/patch/crm/taobao_crm_member_joinurl_get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"name": "taobao.crm.member.joinurl.get", | ||
"apiChineseName": "会员入会地址获取", | ||
"description": "会员入会地址获取", | ||
"id": 35156, | ||
"requestParams": [ | ||
{ | ||
"name": "callback_url", | ||
"type": "String", | ||
"description": "回调url", | ||
"required": false | ||
}, | ||
{ | ||
"name": "extra_info", | ||
"type": "String", | ||
"description": "扩展参数为JSON字符串,用于埋点统计,source为来源字段固定值 isvapp可录入的其他参数,活动ID:activityId三方招募来源:entrance", | ||
"required": true | ||
} | ||
], | ||
"responseParams": [ | ||
{ | ||
"name": "result", | ||
"type": "Result", | ||
"description": "result", | ||
"required": false, | ||
"subParams": [ | ||
{ | ||
"name": "total", | ||
"type": "Number", | ||
"description": "total", | ||
"required": false | ||
}, | ||
{ | ||
"name": "result", | ||
"type": "String", | ||
"description": "返回入会地址URL,需自行判断协议头,如返回结果为\/\/建议使用https:\/\/", | ||
"required": false | ||
}, | ||
{ | ||
"name": "error_code", | ||
"type": "Number", | ||
"description": "errorCode", | ||
"required": false | ||
}, | ||
{ | ||
"name": "error_msg", | ||
"type": "String", | ||
"required": false | ||
}, | ||
{ | ||
"name": "success", | ||
"type": "Boolean", | ||
"description": "success", | ||
"required": false | ||
}, | ||
{ | ||
"name": "exception_code", | ||
"type": "String", | ||
"description": "exceptionCode", | ||
"required": false | ||
} | ||
] | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
metadata/assets/patch/crm/taobao_crm_point_available_get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "taobao.crm.point.available.get", | ||
"apiChineseName": "CRM会员积分查询开放接口", | ||
"description": "查询用户在某个商家的可用积分数", | ||
"id": 42617, | ||
"requestParams": [ | ||
{ | ||
"name": "buyer_nick", | ||
"description": "明文nick,可不填,直接填混淆昵称", | ||
"type": "String", | ||
"required": false | ||
}, | ||
{ | ||
"name": "mix_nick", | ||
"description": "混淆昵称", | ||
"type": "String", | ||
"required": false | ||
}, | ||
{ | ||
"name": "open_uid", | ||
"description": "买家openid", | ||
"type": "String", | ||
"required": false | ||
} | ||
], | ||
"responseParams": [ | ||
{ | ||
"name": "result", | ||
"description": "积分数", | ||
"type": "Number", | ||
"required": false | ||
} | ||
] | ||
} |
35 changes: 35 additions & 0 deletions
35
metadata/assets/patch/qianniu/taobao_qianniu_auto_task_config_check.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "taobao.qianniu.auto.task.config.check", | ||
"apiChineseName": "自动化任务设置校验", | ||
"description": "校验自动化任务配置", | ||
"id": 53528, | ||
"requestParams": [ | ||
{ | ||
"name": "auto_task", | ||
"type": "String", | ||
"description": "场景,例如:催拍= RemindBuyBot" | ||
} | ||
], | ||
"responseParams": [ | ||
{ | ||
"description": "是否成功", | ||
"name": "rpc_success", | ||
"type": "Boolean" | ||
}, | ||
{ | ||
"description": "success", | ||
"name": "module", | ||
"type": "Boolean" | ||
}, | ||
{ | ||
"description": "错误信息", | ||
"name": "rpc_error_message", | ||
"type": "String" | ||
}, | ||
{ | ||
"description": "错误码", | ||
"name": "rpc_error_code", | ||
"type": "Number" | ||
} | ||
] | ||
} |
Oops, something went wrong.