Commit 96df5bca authored by yangjian's avatar yangjian

Update Amf3GppAccessRegistration: add database

parent fc26b322
/** /**
* Nudr_DataRepository API OpenAPI file * Nudr_DataRepository API OpenAPI file
* Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved. * Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB, ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
* *
* The version of the OpenAPI document: 2.1.2 * The version of the OpenAPI document: 2.1.2
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech * https://openapi-generator.tech
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
/* /*
* AMF3GPPAccessRegistrationDocumentApiImpl.h * AMF3GPPAccessRegistrationDocumentApiImpl.h
* *
* *
*/ */
#ifndef AMF3_GPP_ACCESS_REGISTRATION_DOCUMENT_API_IMPL_H_ #ifndef AMF3_GPP_ACCESS_REGISTRATION_DOCUMENT_API_IMPL_H_
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <mysql/mysql.h>
namespace org { namespace org {
namespace openapitools { namespace openapitools {
namespace server { namespace server {
...@@ -45,13 +47,15 @@ using namespace org::openapitools::server::model; ...@@ -45,13 +47,15 @@ using namespace org::openapitools::server::model;
class AMF3GPPAccessRegistrationDocumentApiImpl : public org::openapitools::server::api::AMF3GPPAccessRegistrationDocumentApi { class AMF3GPPAccessRegistrationDocumentApiImpl : public org::openapitools::server::api::AMF3GPPAccessRegistrationDocumentApi {
public: public:
AMF3GPPAccessRegistrationDocumentApiImpl(std::shared_ptr<Pistache::Rest::Router>); AMF3GPPAccessRegistrationDocumentApiImpl(std::shared_ptr<Pistache::Rest::Router>, MYSQL *mysql);
~AMF3GPPAccessRegistrationDocumentApiImpl() {} ~AMF3GPPAccessRegistrationDocumentApiImpl() {}
void amf_context3gpp(const std::string &ueId, const std::vector<PatchItem> &patchItem, const Pistache::Optional<std::string> &supportedFeatures, Pistache::Http::ResponseWriter &response); void amf_context3gpp(const std::string &ueId, const std::vector<PatchItem> &patchItem, const Pistache::Optional<std::string> &supportedFeatures, Pistache::Http::ResponseWriter &response);
void create_amf_context3gpp(const std::string &ueId, const Amf3GppAccessRegistration &amf3GppAccessRegistration, Pistache::Http::ResponseWriter &response); void create_amf_context3gpp(const std::string &ueId, const Amf3GppAccessRegistration &amf3GppAccessRegistration, Pistache::Http::ResponseWriter &response);
void query_amf_context3gpp(const std::string &ueId, const Pistache::Optional<std::vector<std::string>> &fields, const Pistache::Optional<std::string> &supportedFeatures, Pistache::Http::ResponseWriter &response); void query_amf_context3gpp(const std::string &ueId, const Pistache::Optional<std::vector<std::string>> &fields, const Pistache::Optional<std::string> &supportedFeatures, Pistache::Http::ResponseWriter &response);
private:
MYSQL *mysql_WitcommUDRDB;
}; };
} }
......
...@@ -171,7 +171,7 @@ int main() { ...@@ -171,7 +171,7 @@ int main() {
} }
AMF3GPPAccessRegistrationDocumentApiImpl AMF3GPPAccessRegistrationDocumentApiserver(router); AMF3GPPAccessRegistrationDocumentApiImpl AMF3GPPAccessRegistrationDocumentApiserver(router,&mysql);
AMF3GPPAccessRegistrationDocumentApiserver.init(); AMF3GPPAccessRegistrationDocumentApiserver.init();
AMFNon3GPPAccessRegistrationDocumentApiImpl AMFNon3GPPAccessRegistrationDocumentApiserver(router); AMFNon3GPPAccessRegistrationDocumentApiImpl AMFNon3GPPAccessRegistrationDocumentApiserver(router);
AMFNon3GPPAccessRegistrationDocumentApiserver.init(); AMFNon3GPPAccessRegistrationDocumentApiserver.init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment