update openapi, add tags to rule entity

This commit is contained in:
Pavel 2024-06-08 16:27:38 +03:00
parent d7fd0c002c
commit ddb837035d
3 changed files with 68 additions and 1 deletions

2
go.mod

@ -13,7 +13,7 @@ require (
github.com/twmb/franz-go v1.16.1
go.uber.org/zap v1.27.0
google.golang.org/protobuf v1.33.0
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240608115230-da2584a374f6
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240608132031-6395b9fa3a2b
)
require (

2
go.sum

@ -134,3 +134,5 @@ penahub.gitlab.yandexcloud.net/backend/penahub_common v0.0.0-20240223054633-6cb3
penahub.gitlab.yandexcloud.net/backend/penahub_common v0.0.0-20240223054633-6cb3d5ce45b6/go.mod h1:lTmpjry+8evVkXWbEC+WMOELcFkRD1lFMc7J09mOndM=
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240608115230-da2584a374f6 h1:IKvZcF5A5lXwVH2nW8GR/pvH5sCR0iPmzDglBaQzO9k=
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240608115230-da2584a374f6/go.mod h1:n66zm88Dh12+idyfqh0vU5nd9BZYxM6Pv0XYnmy0398=
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240608132031-6395b9fa3a2b h1:+E8b916azpe0S+pBZ9CnatJEtSmd3gkEwdh2NiYbVLg=
penahub.gitlab.yandexcloud.net/backend/quiz/common.git v0.0.0-20240608132031-6395b9fa3a2b/go.mod h1:n66zm88Dh12+idyfqh0vU5nd9BZYxM6Pv0XYnmy0398=

@ -560,6 +560,38 @@ components:
type: array
items:
$ref: '#/components/schemas/FieldRule'
TagsToAdd:
type: object
properties:
Lead:
type: array
items:
type: integer
format: int64
description: Массив ID тегов для Leads, теги с id который наш Primary
Contact:
type: array
items:
type: integer
format: int64
description: Массив ID тегов для Contacts, теги с id который наш Primary
Company:
type: array
items:
type: integer
format: int64
description: Массив ID тегов для Company, теги с id который наш Primary
Customer:
type: array
items:
type: integer
format: int64
description: Массив ID тегов для Customer, теги с id который наш Primary
example:
Lead: [ 101, 102, 103 ]
Contact: [ 201, 202, 203 ]
Company: [ 301, 302, 303 ]
Customer: [ 401, 402, 403 ]
Deleted:
type: boolean
description: флаг мягкого удаления
@ -924,6 +956,39 @@ components:
items:
$ref: "#/components/schemas/FieldRule"
description: "правила заполнения полей сущностей в амо"
TagsToAdd:
type: object
properties:
Lead:
type: array
items:
type: integer
format: int64
description: Массив ID тегов для Leads, теги с id который наш Primary
Contact:
type: array
items:
type: integer
format: int64
description: Массив ID тегов для Contacts, теги с id который наш Primary
Company:
type: array
items:
type: integer
format: int64
description: Массив ID тегов для Company, теги с id который наш Primary
Customer:
type: array
items:
type: integer
format: int64
description: Массив ID тегов для Customer, теги с id который наш Primary
example:
Lead: [ 101, 102, 103 ]
Contact: [ 201, 202, 203 ]
Company: [ 301, 302, 303 ]
Customer: [ 401, 402, 403 ]
ContactRules:
type: object
description: правила заполнения сущности контакта, название поля = id кастомного поля в амо