mirror of
https://github.com/valitydev/bender-proto.git
synced 2024-11-06 17:05:22 +00:00
Merge pull request #3 from rbkmoney/CAPI-357-new-api-call
Added GetInternalID
This commit is contained in:
commit
d765b9dfeb
@ -6,11 +6,18 @@ include "proto/msgpack.thrift"
|
|||||||
typedef string ExternalID
|
typedef string ExternalID
|
||||||
typedef string InternalID
|
typedef string InternalID
|
||||||
|
|
||||||
|
exception InternalIDNotFound {}
|
||||||
|
|
||||||
struct GenerationResult {
|
struct GenerationResult {
|
||||||
1: required InternalID internal_id
|
1: required InternalID internal_id
|
||||||
2: optional msgpack.Value context
|
2: optional msgpack.Value context
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct GetInternalIDResult {
|
||||||
|
1: required InternalID internal_id
|
||||||
|
2: required msgpack.Value context
|
||||||
|
}
|
||||||
|
|
||||||
union GenerationSchema {
|
union GenerationSchema {
|
||||||
1: SnowflakeSchema snowflake
|
1: SnowflakeSchema snowflake
|
||||||
2: ConstantSchema constant
|
2: ConstantSchema constant
|
||||||
@ -33,4 +40,7 @@ service Bender {
|
|||||||
|
|
||||||
GenerationResult GenerateID (1: ExternalID external_id, 2: GenerationSchema schema, 3: msgpack.Value context)
|
GenerationResult GenerateID (1: ExternalID external_id, 2: GenerationSchema schema, 3: msgpack.Value context)
|
||||||
|
|
||||||
|
GetInternalIDResult GetInternalID (1: ExternalID external_id)
|
||||||
|
throws (1: InternalIDNotFound ex1)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user