Selaa lähdekoodia

using time layout

master
Patrick Peng Sun 8 vuotta sitten
vanhempi
commit
8edc66f8af
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. +2
    -1
      crmEntity_test.go

+ 2
- 1
crmEntity_test.go Näytä tiedosto

@@ -11,10 +11,11 @@ import (
func TestCrmCreateEntity(t *testing.T) {

e := crmdLead{}
e.FirstName = "ff" + time.Now().Format("2006-jan-02 03:04:05")
e.FirstName = "ff" + time.Now().Format(getCrmTimeLayout())
e.LastName = "ll"
e.Password = "pp"
e.Status = "New"
e.WechatHitxyID = time.Now().Format(getCrmTimeLayout())
b, _ := json.Marshal(e)

//Create

Loading…
Peruuta
Tallenna