use json::{JsonValue, object};
use crate::{Action, Model};
use crate::tests::test::test::TestAction;
pub struct TestModel {}
impl Model for TestModel {
fn table(&mut self) -> String {
"tests_test".to_string()
}
fn fields(&mut self) -> JsonValue {
let fields = object! {};
return fields;
}
fn title(&mut self) -> String {
"测试模型".to_string()
}
fn action(&mut self, name: &str) -> Box<dyn Action> {
match name {
_ => Box::new(TestAction {model:TestModel{}})
}
}
}
pub mod test;