pub trait Action {
fn title(&mut self) -> String;
fn name(&mut self) -> String;
fn index(
&mut self,
header: JsonValue,
request: JsonValue,
tools: Tools
) -> Response;
fn token(&mut self) -> bool { ... }
fn public(&mut self) -> bool { ... }
fn extend(&mut self) -> Vec<&str> ⓘ { ... }
fn params(&mut self) -> JsonValue { ... }
fn _check(&mut self, request: JsonValue) -> (bool, String, JsonValue) { ... }
fn run(
&mut self,
header: JsonValue,
request: JsonValue,
tools: Tools
) -> Response { ... }
fn success(&mut self, data: JsonValue, msg: &str) -> Response { ... }
fn fail(&mut self, msg: &str) -> Response { ... }
fn login(&mut self, msg: &str) -> Response { ... }
}
Expand description
动作