credata
parent
ec2052910d
commit
55e61cbf91
|
@ -277,6 +277,7 @@ func CreateCrmCustomer(c *fiber.Ctx) error {
|
||||||
crmCustomer["DealPhase"] = 1
|
crmCustomer["DealPhase"] = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
crmCustomer["CreatedBy"] = c.Locals("userId").(string)
|
||||||
crmCustomer["CreatedAt"] = time.Now()
|
crmCustomer["CreatedAt"] = time.Now()
|
||||||
|
|
||||||
result := database.DB.Model(&structs.CrmCustomer{}).Create(&crmCustomer)
|
result := database.DB.Model(&structs.CrmCustomer{}).Create(&crmCustomer)
|
||||||
|
|
Loading…
Reference in New Issue