use bios_sdk_invoke::clients::SimpleInvokeClient;
use tardis::basic::dto::TardisContext;
use tardis::tokio;
use tardis::web::context_extractor::TardisContextExtractor;
use tardis::web::poem_openapi::param::{Path, Query};
use tardis::web::poem_openapi;
use tardis::web::web_resp::{TardisApiResult, TardisPage, TardisResp};
#[derive(Clone, Default)]
/// 用户触达消息-公共控制台
pub struct Api;
pub struct Client {}
impl SimpleInvokeClient for Client {
const DOMAIN_CODE: &'static str = "test";
fn get_ctx(&self) -> &'_ TardisContext {
unimplemented!()
}
fn get_base_url(&self) -> &str {
unimplemented!()
}
fn get_funs(&self) -> &tardis::TardisFunsInst {
todo!()
}
}
#[simple_invoke_client_macro::simple_invoke_client(Client)]
#[poem_openapi::OpenApi(prefix_path = "/ct/msg")]
impl Api {
/// 获取所有用户触达消息数据分页
#[oai(method = "get", path = "/page")]
pub async fn get_page(
&self,
page_number: Query