bitrix/internal/models/getListPipelines.go

27 lines
654 B
Go
Raw Normal View History

2024-09-20 14:41:33 +00:00
package models
type Category struct {
ID int64 `json:"id"`
Name string `json:"name"`
Sort int64 `json:"sort"`
EntityTypeId int64 `json:"entityTypeId"`
IsDefault BitrixIsDefault `json:"isDefault"`
}
type CategoryResponse struct {
2024-09-22 09:30:02 +00:00
Result struct {
Categories []Category `json:"categories"`
} `json:"result"`
2024-09-20 14:41:33 +00:00
}
type BitrixIsDefault string
const (
BitrixIsDefaultY BitrixIsDefault = "Y"
BitrixIsDefaultN BitrixIsDefault = "N"
)
2024-09-22 09:30:02 +00:00
2024-09-22 09:31:07 +00:00
var CategoryArr = [4]IntegerEntityType{
2024-09-22 09:30:02 +00:00
IntegerEntityTypeCompany, IntegerEntityTypeContact, IntegerEntityTypeDeal, IntegerEntityTypeInvoiceNew,
}