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 37 38 39 40 41 42 43 44
| use chrono::NaiveDateTime; use serde::{Deserialize, Serialize}; use sqlx::FromRow;
#[allow(dead_code)] #[derive(FromRow, Debug,Clone,Serialize,Deserialize)] pub struct SysMenu {
#[serde(rename = "id")] pub menu_id: i64,
#[serde(rename = "title")] pub menu_name: String,
pub parent_id: i64,
pub order_num: i32,
#[serde(rename = "href")] pub url: Option<String>,
#[serde(rename = "openType")] pub target: Option<i8>,
#[serde(rename = "type")] pub menu_type: i8,
pub visible: Option<i8>, pub perms: Option<String>,
pub icon: Option<String>, pub create_by: Option<String>, pub create_time: Option<NaiveDateTime>, pub update_by: Option<String>, pub update_time: Option<NaiveDateTime>, pub remark: Option<String>, pub del_flag: i8,
#[sqlx(skip)] pub children: Vec<SysMenu>, }
|