Documentation
¶
Index ¶
- func GetFindResponseWithCode(code codes.FindPDPCode, errArgs ...interface{}) *findV2.Response
- func GetResponseWithCode(code codes.SudirPDPCode, errArgs ...interface{}) *sudirV2.ResponseType
- func GetResponseWithError(err error) *sudirV2.ResponseType
- type BatchConvertPdpRequest
- type DeletedObject
- type DeltaInfo
- type PayloadResponse
- type PdpDelta
- type PdpNotification
- type PdpNotificationMessage
- type PdpUpsertBatchRequest
- type PdpUpsertRequest
- type SudirUpdateRecordRequest
- type UpsertResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFindResponseWithCode ¶
func GetFindResponseWithCode(code codes.FindPDPCode, errArgs ...interface{}) *findV2.Response
func GetResponseWithCode ¶
func GetResponseWithCode(code codes.SudirPDPCode, errArgs ...interface{}) *sudirV2.ResponseType
func GetResponseWithError ¶
func GetResponseWithError(err error) *sudirV2.ResponseType
Types ¶
type BatchConvertPdpRequest ¶
type BatchConvertPdpRequest struct {
*structure.ConvertRequestPayload `valid:"required~Required"`
*structure.AbstractConvertBatchRequest
Delta PdpDelta
}
type DeletedObject ¶
DeletedObject e.q.
{
Id: "62D1FA909140BABC0C10DA90A13B041E30",
ObjectGroup: "VEHICLE",
}
type DeltaInfo ¶
type DeltaInfo struct {
AttributeDeltaData map[string]map[string]interface{}
ObjectDeltaData map[string][]map[string]interface{}
}
DeltaInfo e.q.
{
AttributeDeltaData: {
"FIO": {
"MIDNAME": "IVANOVICH",
"SURNAME": "",
}
}
ObjectDeltaData: {
"VEHICLES": [
{
"ITEM_ID": "1234567890_1",
"VEHICLE_DESC": "TEST VEH 1"
},
{
"ITEM_ID": "1234567890_2",
"VEHICLE_DESC": ""
}
]
}
}
type PayloadResponse ¶
type PayloadResponse struct {
ConvertRequest *structure.ConvertRequestPayload
Error *codes.PdpError
}
type PdpDelta ¶
type PdpDelta struct {
DeltaInfo DeltaInfo
DeletedObjects []DeletedObject
}
type PdpNotification ¶
type PdpNotification struct {
entity.Notification
PdpDelta PdpDelta
}
type PdpNotificationMessage ¶
type PdpNotificationMessage struct {
Notifications []PdpNotification
AppSource int32
}
type PdpUpsertBatchRequest ¶
type PdpUpsertBatchRequest struct {
Requests []SudirUpdateRecordRequest
UpdateMethod pdp.HandleMethod
AppSource int32
}
type PdpUpsertRequest ¶
type PdpUpsertRequest struct {
SudirUpdateRecordRequest
UpdateMethod pdp.HandleMethod
}
type SudirUpdateRecordRequest ¶
type SudirUpdateRecordRequest struct {
TechRecord bool
Record *entity.DataRecord `valid:"required~Required"`
SoftDelete bool
DeleteOperations map[string]map[string]string
Error *structure.ConvertSearchError
}
type UpsertResponse ¶
type UpsertResponse struct {
OldValue *entity.DataRecord
NewValue *entity.DataRecord
Inserted bool
Updated bool
}
Click to show internal directories.
Click to hide internal directories.