added another entity type for statuses
This commit is contained in:
parent
aee8cdd1ee
commit
e038b66109
@ -39,8 +39,8 @@ func (c *Controller) Register(router fiber.Router) {
|
||||
router.Patch("/rules/:quizID", c.ChangeQuizSettings)
|
||||
router.Post("/rules/:quizID", c.SetQuizSettings)
|
||||
router.Get("/rules/:quizID", c.GettingQuizRules)
|
||||
router.Get("/tags", c.GetTagsWithPagination)
|
||||
router.Patch("/tags", c.UpdateListTags)
|
||||
//router.Get("/tags", c.GetTagsWithPagination)
|
||||
//router.Patch("/tags", c.UpdateListTags)
|
||||
router.Get("/fields", c.GetFieldsWithPagination)
|
||||
router.Patch("/fields", c.UpdateListCustom)
|
||||
}
|
||||
|
@ -26,8 +26,17 @@ type Extra struct {
|
||||
type TypeStepsEntityID string
|
||||
|
||||
const (
|
||||
StatusStepsEntityID TypeStepsEntityID = "STATUS"
|
||||
DealTypeStepsEntityID TypeStepsEntityID = "DEAL_TYPE"
|
||||
DealStageStepsEntityID TypeStepsEntityID = "DEAL_STAGE"
|
||||
SourceStepsEntityID TypeStepsEntityID = "SOURCE"
|
||||
StatusStepsEntityID TypeStepsEntityID = "STATUS"
|
||||
DealTypeStepsEntityID TypeStepsEntityID = "DEAL_TYPE"
|
||||
DealStageStepsEntityID TypeStepsEntityID = "DEAL_STAGE"
|
||||
SourceStepsEntityID TypeStepsEntityID = "SOURCE"
|
||||
ContactTypeStepsEntityID TypeStepsEntityID = "CONTACT_TYPE"
|
||||
CompanyTypeStepsEntityID TypeStepsEntityID = "COMPANY_TYPE"
|
||||
EmployeesStepsEntityID TypeStepsEntityID = "EMPLOYEES"
|
||||
IndustryStepsEntityID TypeStepsEntityID = "INDUSTRY"
|
||||
SmartInvoiceStageStepsEntityID TypeStepsEntityID = "SMART_INVOICE_STAGE_3"
|
||||
QuoteStatusStepsEntityID TypeStepsEntityID = "QUOTE_STATUS"
|
||||
HonorificStepsEntityID TypeStepsEntityID = "HONORIFIC"
|
||||
CallListStepsEntityID TypeStepsEntityID = "CALL_LIST"
|
||||
SmartDocumentStageStepsEntityID TypeStepsEntityID = "SMART_DOCUMENT_STAGE_5"
|
||||
)
|
||||
|
@ -65,7 +65,7 @@ func TestGetListFields(t *testing.T) {
|
||||
|
||||
reqMap := models.FormattingToMap(&createContactReq, fieldAnswer)
|
||||
|
||||
contactResult, err := b.CreateContact(reqMap, "97d8f2660000071b00717f92000000010000077a2e1c14dea41b3c5fc7deb92ac52401", "b24-ld76ub.bitrix24.ru")
|
||||
contactResult, err := b.CreateContact(reqMap, "eb19f5660000071b00717f9200000001000007f6c1795b0c3c995cf4cbbae1a9d0394c", "b24-ld76ub.bitrix24.ru")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
@ -85,7 +85,7 @@ func TestGetListFields(t *testing.T) {
|
||||
}
|
||||
|
||||
reqMap = models.FormattingToMap(&createCompanyReq, fieldAnswer)
|
||||
companyResult, err := b.CreateCompany(reqMap, "97d8f2660000071b00717f92000000010000077a2e1c14dea41b3c5fc7deb92ac52401", "b24-ld76ub.bitrix24.ru")
|
||||
companyResult, err := b.CreateCompany(reqMap, "eb19f5660000071b00717f9200000001000007f6c1795b0c3c995cf4cbbae1a9d0394c", "b24-ld76ub.bitrix24.ru")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
@ -110,7 +110,7 @@ func TestGetListFields(t *testing.T) {
|
||||
}
|
||||
|
||||
reqMap = models.FormattingToMap(&createDealReq, fieldAnswer)
|
||||
result, err := b.CreatingDeal(reqMap, "97d8f2660000071b00717f92000000010000077a2e1c14dea41b3c5fc7deb92ac52401", "b24-ld76ub.bitrix24.ru")
|
||||
result, err := b.CreatingDeal(reqMap, "eb19f5660000071b00717f9200000001000007f6c1795b0c3c995cf4cbbae1a9d0394c", "b24-ld76ub.bitrix24.ru")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user