JD-583: add party search (#6)

This commit is contained in:
vitaxa 2021-08-13 13:19:29 +03:00 committed by GitHub
parent 76c158891b
commit 0c92608157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 10 deletions

2
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
#!groovy
// -*- mode: groovy -*-
build('party-shop-proto', 'docker-host') {
build('vortigon-proto', 'docker-host') {
checkoutRepo()
loadBuildUtils()

View File

@ -7,7 +7,7 @@ UTILS_PATH := build_utils
TEMPLATES_PATH := .
# Name of the service
SERVICE_NAME := party-shop-proto
SERVICE_NAME := vortigon-proto
# Build image tag to be used
BUILD_IMAGE_TAG := bdc05544014b3475c8e0726d3b3d6fc81b09db96

View File

@ -1 +1 @@
# party-shop-proto
# vortigon-proto

View File

@ -10,11 +10,11 @@
<version>1.0.0</version>
</parent>
<artifactId>party-shop-proto</artifactId>
<artifactId>vortigon-proto</artifactId>
<version>SNAPSHOT</version>
<packaging>jar</packaging>
<name>Party shop</name>
<name>Vortigon</name>
<description>Generates jar artifact containing compiled thrift classes based on generated thrift IDL files</description>
<properties>

View File

@ -1,7 +1,32 @@
include "base.thrift"
namespace java com.rbkmoney.damsel.party_shop
namespace erlang party_shop
namespace java com.rbkmoney.damsel.vortigon
namespace erlang vortigon
typedef string PartyId
struct CategoryFilter {
1: optional string name
}
struct ShopFilter {
1: optional string location_url
2: optional CategoryFilter category_filter
}
struct PartyFilter {
1: optional string contact_info_email
}
struct ContractFilter {
1: optional string legal_agreement_signed_at
}
struct PartyFilterRequest {
1: optional ShopFilter shop_filter
2: optional PartyFilter party_filter
3: optional ContractFilter contract_filter
}
enum PaymentInstitutionRealm{
test
@ -11,11 +36,13 @@ enum PaymentInstitutionRealm{
/**
* Сервис для получения информации о магазинах по party
**/
service PartyShopService {
service VortigonService {
/**
* Получение идентификаторов магазинов по party в разрезе тестовой или продовой среды
**/
list<base.ID> GetShopsIds(1: base.ID party_id, 2: PaymentInstitutionRealm realm)
list<PartyId> findPartyIds(1: PartyFilterRequest request)
}

View File

@ -1,5 +1,5 @@
{application, party_shop_proto, [
{description, "Thrift proto for party-shop service"},
{description, "Thrift proto for vortigon service"},
{vsn, "0.1.0"},
{applications, [
kernel,