1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//! http data
#![cfg(feature = "server-http")]

use serde_json::Value;

use self::response_stream::ResStream;

use super::app_error::AppError;

pub(crate) mod multipart;
pub mod request_byte;
pub mod request_json;
pub mod request_log_param;
pub mod request_metadata;
pub mod request_multipart;
pub mod request_param;
pub mod request_path;
pub mod response_data;
pub mod response_page;
pub mod response_stream;

/// 成功标志
pub struct SuccessFlag;
/// 异常消息
pub struct ErrorMsg(pub String);
/// 禁用请求日志标示
pub struct DisableReqLogParamFlag;
/// 禁用操作日志标示
pub struct DisableOperLogFlag;
/// 错误记录
pub struct ErrorResponse(pub AppError);
/// 结果记录
pub struct JsonResponse(pub Value);
/// 结果记录
#[cfg(feature = "server-http")]
pub struct StreamResponse(pub ResStream);