forked from loafle/openapi-generator-original
update cpp qt5 sample
This commit is contained in:
parent
f2186b212c
commit
7673813648
@ -26,6 +26,6 @@ fi
|
||||
|
||||
# if you've executed sbt assembly previously it will use that instead.
|
||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||
ags="$@ generate -t modules/openapi-generator/src/main/resources/qt5cpp -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l qt5cpp -o samples/client/petstore/qt5cpp"
|
||||
ags="$@ generate -t modules/openapi-generator/src/main/resources/qt5cpp -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l cpp-qt5 -o samples/client/petstore/qt5cpp"
|
||||
|
||||
java $JAVA_OPTS -jar $executable $ags
|
||||
|
@ -5,6 +5,6 @@ If Not Exist %executable% (
|
||||
)
|
||||
|
||||
REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
|
||||
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -l qt5cpp -o samples\client\petstore\qt5cpp
|
||||
set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -l cpp-qt5 -o samples\client\petstore\qt5cpp
|
||||
|
||||
java %JAVA_OPTS% -jar %executable% %ags%
|
||||
|
@ -39,7 +39,7 @@ void
|
||||
SWGPet::init() {
|
||||
id = 0L;
|
||||
m_id_isSet = false;
|
||||
category = new SWG#/components/schemas/Category();
|
||||
category = new SWGCategory();
|
||||
m_category_isSet = false;
|
||||
name = new QString("");
|
||||
m_name_isSet = false;
|
||||
|
@ -82,7 +82,7 @@ SWGPetApi::addPetCallback(SWGHttpRequestWorker * worker) {
|
||||
}
|
||||
|
||||
void
|
||||
SWGPetApi::deletePet(qint32 pet_id, QString* api_key) {
|
||||
SWGPetApi::deletePet(qint64 pet_id, QString* api_key) {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/pet/{petId}");
|
||||
|
||||
@ -282,7 +282,7 @@ SWGPetApi::findPetsByTagsCallback(SWGHttpRequestWorker * worker) {
|
||||
}
|
||||
|
||||
void
|
||||
SWGPetApi::getPetById(qint32 pet_id) {
|
||||
SWGPetApi::getPetById(qint64 pet_id) {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/pet/{petId}");
|
||||
|
||||
@ -389,7 +389,7 @@ SWGPetApi::updatePetCallback(SWGHttpRequestWorker * worker) {
|
||||
}
|
||||
|
||||
void
|
||||
SWGPetApi::updatePetWithForm(qint32 pet_id, QString* name, QString* status) {
|
||||
SWGPetApi::updatePetWithForm(qint64 pet_id, QString* name, QString* status) {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/pet/{petId}");
|
||||
|
||||
@ -446,7 +446,7 @@ SWGPetApi::updatePetWithFormCallback(SWGHttpRequestWorker * worker) {
|
||||
}
|
||||
|
||||
void
|
||||
SWGPetApi::uploadFile(qint32 pet_id, QString* additional_metadata, SWGHttpRequestInputFileElement* file) {
|
||||
SWGPetApi::uploadFile(qint64 pet_id, QString* additional_metadata, SWGHttpRequestInputFileElement* file) {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/pet/{petId}/uploadImage");
|
||||
|
||||
|
@ -37,13 +37,13 @@ public:
|
||||
QMap<QString, QString> defaultHeaders;
|
||||
|
||||
void addPet(SWGPet& pet);
|
||||
void deletePet(qint32 pet_id, QString* api_key);
|
||||
void deletePet(qint64 pet_id, QString* api_key);
|
||||
void findPetsByStatus(QList<QString*>* status);
|
||||
void findPetsByTags(QList<QString*>* tags);
|
||||
void getPetById(qint32 pet_id);
|
||||
void getPetById(qint64 pet_id);
|
||||
void updatePet(SWGPet& pet);
|
||||
void updatePetWithForm(qint32 pet_id, QString* name, QString* status);
|
||||
void uploadFile(qint32 pet_id, QString* additional_metadata, SWGHttpRequestInputFileElement* file);
|
||||
void updatePetWithForm(qint64 pet_id, QString* name, QString* status);
|
||||
void uploadFile(qint64 pet_id, QString* additional_metadata, SWGHttpRequestInputFileElement* file);
|
||||
|
||||
private:
|
||||
void addPetCallback (SWGHttpRequestWorker * worker);
|
||||
|
@ -141,7 +141,7 @@ SWGStoreApi::getInventoryCallback(SWGHttpRequestWorker * worker) {
|
||||
}
|
||||
|
||||
void
|
||||
SWGStoreApi::getOrderById(qint32 order_id) {
|
||||
SWGStoreApi::getOrderById(qint64 order_id) {
|
||||
QString fullPath;
|
||||
fullPath.append(this->host).append(this->basePath).append("/store/order/{orderId}");
|
||||
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
|
||||
void deleteOrder(QString* order_id);
|
||||
void getInventory();
|
||||
void getOrderById(qint32 order_id);
|
||||
void getOrderById(qint64 order_id);
|
||||
void placeOrder(SWGOrder& order);
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user