2021-03-28 02:00:00 +00:00
|
|
|
using namespace {{dtoNamespace}};
|
|
|
|
|
2021-09-01 12:50:02 +00:00
|
|
|
{{#each endpoints as |e|}}
|
|
|
|
{{#if e.endpoint.hasSuccessResponse}}
|
|
|
|
|
|
|
|
{{#if e.endpoint.description.length > 0}}
|
2021-03-24 19:04:03 +00:00
|
|
|
/**
|
2021-09-01 12:50:02 +00:00
|
|
|
* @brief {{e.endpoint.description}}
|
2021-03-24 19:04:03 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
{{/if}}
|
|
|
|
|
2021-03-28 02:00:00 +00:00
|
|
|
|
2021-09-01 12:50:02 +00:00
|
|
|
class {{e.className}}Loader : public {{supportNamespace}}::HttpLoader<{{e.endpoint.resultType}}, {{e.endpoint.parameterType}}> {
|
2021-03-24 19:04:03 +00:00
|
|
|
public:
|
2021-09-01 12:50:02 +00:00
|
|
|
explicit {{e.className}}Loader(ApiClient *apiClient = nullptr);
|
2021-03-24 19:04:03 +00:00
|
|
|
|
|
|
|
protected:
|
2021-09-01 12:50:02 +00:00
|
|
|
QString path(const {{e.endpoint.parameterType}}& parameters) const override;
|
|
|
|
QUrlQuery query(const {{e.endpoint.parameterType}}& parameters) const override;
|
2021-09-03 01:47:25 +00:00
|
|
|
QByteArray body(const {{e.endpoint.parameterType}}& parameters) const override;
|
|
|
|
QNetworkAccessManager::Operation operation() const override;
|
2021-03-24 19:04:03 +00:00
|
|
|
};
|
|
|
|
{{/if}}
|
2021-09-01 12:50:02 +00:00
|
|
|
{{/each}}
|