瀏覽代碼

remove verifier

master
Patrick Peng Sun 8 年之前
父節點
當前提交
ba35bc48e2
共有 2 個文件被更改,包括 6 次插入19 次删除
  1. +2
    -0
      crmLead.go
  2. +4
    -19
      crmLead_test.go

+ 2
- 0
crmLead.go 查看文件

@@ -12,6 +12,8 @@ type crmdLead struct {
//ID string `json:"id,omitempty"`
//Name string `json:"name,omitempty"`
//Deleted bool `json:"deleted,omitempty"`
AvatarID string `json:"avatarId,omitempty"`
AvatarName string `json:"avatarName,omotempty"`
SalutationName string `json:"salutationName,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`

+ 4
- 19
crmLead_test.go 查看文件

@@ -34,12 +34,7 @@ func TestDecodeLeadInfo(t *testing.T) {
"accountName": "",
"password": "abcdefg",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [
"231823091",
"adkdaifaskfsafsa",
"394kfdjafdsa",
"39410498321041"
],

"opportunityAmountCurrency": null,
"opportunityAmountConverted": null,
"createdById": "1",
@@ -132,12 +127,7 @@ func TestCrmdLeadByCompleteInfo(t *testing.T) {
"accountName": "",
"password": "abcdefg",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [
"231823091",
"adkdaifaskfsafsa",
"394kfdjafdsa",
"39410498321041"
],

"opportunityAmountCurrency": "AUD",
"opportunityAmountConverted": 120,
"emailAddressData": [
@@ -309,12 +299,7 @@ func TestSearchResult(t *testing.T) {
"accountName": "",
"password": "abcdefg",
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [
"231823091",
"adkdaifaskfsafsa",
"394kfdjafdsa",
"39410498321041"
],

"opportunityAmountCurrency": "AUD",
"opportunityAmountConverted": 120,
"createdById": "1",
@@ -355,7 +340,7 @@ func TestSearchResult(t *testing.T) {
"accountName": "",
"password": null,
"wechatOpenID": "the user id obtained from wechat public account",
"verifier": [],
"opportunityAmountCurrency": null,
"opportunityAmountConverted": null,
"createdById": "1",

Loading…
取消
儲存