mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +00:00
WIP: logic rewrite
WIP: adding loaders
This commit is contained in:
parent
b9b08ab384
commit
2360b261f7
1769 changed files with 124903 additions and 1963 deletions
17
core/codegen/loader_header.hbs
Normal file
17
core/codegen/loader_header.hbs
Normal file
|
@ -0,0 +1,17 @@
|
|||
{{#if endpoint.hasSuccessResponse}}
|
||||
{{#if endpoint.description.length > 0}}
|
||||
/**
|
||||
* @brief {{endpoint.description}}
|
||||
|
||||
*/
|
||||
{{/if}}
|
||||
|
||||
class {{className}} : public {{supportNamespace}}::HttpLoader<{{dtoNamespace}}::{{endpoint.resultType}}, {{endpoint.parameterType}}> {
|
||||
public:
|
||||
explicit {{className}}(ApiClient *apiClient);
|
||||
|
||||
protected:
|
||||
QString url(const {{endpoint.parameterType}}& parameters) const override;
|
||||
QUrlQuery query(const {{endpoint.parameterType}}& parameters) const override;
|
||||
};
|
||||
{{/if}}
|
Loading…
Add table
Add a link
Reference in a new issue