mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 16:12:14 +11:00
🎉 BankResponse struct
This commit is contained in:
parent
f431d8bcda
commit
ff89efe4fc
2 changed files with 16 additions and 0 deletions
12
include/bank_resp.h
Normal file
12
include/bank_resp.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#pragma once
|
||||
#include <string>
|
||||
#include <drogon/HttpTypes.h>
|
||||
|
||||
struct BankResponse
|
||||
{
|
||||
drogon::HttpStatusCode first = drogon::k200OK;
|
||||
std::string second;
|
||||
|
||||
BankResponse();
|
||||
BankResponse(drogon::HttpStatusCode code, std::string &&str);
|
||||
};
|
||||
4
src/bank_resp.cpp
Normal file
4
src/bank_resp.cpp
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#include "bank_resp.h"
|
||||
|
||||
BankResponse::BankResponse() = default;
|
||||
BankResponse::BankResponse(drogon::HttpStatusCode code, std::string &&str) : first(code), second(str) {}
|
||||
Loading…
Reference in a new issue