diff --git a/interfaces/innerkits/distributeddata/include/types.h b/interfaces/innerkits/distributeddata/include/types.h index ddb686207d6beb7ec75d87c838e3131230123b84..2709604eee5e72d9e1acb029f1617d8f2c2c29a3 100644 --- a/interfaces/innerkits/distributeddata/include/types.h +++ b/interfaces/innerkits/distributeddata/include/types.h @@ -224,6 +224,11 @@ enum class DeviceFilterStrategy { NO_FILTER = 1, }; +struct CommunicationParam { + std::string pipeId; // Declare data synchronization channel + std::string userId; // Compatible use only +}; + struct Options { bool createIfMissing = true; bool encrypt = false; @@ -236,6 +241,7 @@ struct Options { bool syncable = true; // let bms delete first std::string schema = ""; bool dataOwnership = true; // true indicates the ownership of distributed data is DEVICE, otherwise, ACCOUNT + CommunicationParam communicationParam = {"", ""}; // Communication customization inline bool IsValidType() const {