Skip to main content

fail

Function fail 

Source
pub fn fail(code: i32, msg: impl Into<Cow<'static, str>>) -> Response<()>
Available on crate feature resputil only.
Expand description

业务失败响应 (HTTP 200, data 为空对象); code 为业务错误码