1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
mod fund;
mod merchant;
mod user;
use crate::Client;
macro_rules! create_api {
($ ($ident: ident) +) => {
$(
pub struct $ident {
client: Client,
}
impl $ident {
pub fn new(client: Client) -> $ident {
$ident {client}
}
}
)+
};
}
create_api![Fund User Merchant];