feat(controller):增加控制器功能以及产品检索控制器。
This commit is contained in:
3
license_server/src/vo/mod.rs
Normal file
3
license_server/src/vo/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
mod shared;
|
||||
|
||||
pub use shared::*;
|
||||
12
license_server/src/vo/shared.rs
Normal file
12
license_server/src/vo/shared.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Debug, Clone, Deserialize)]
|
||||
pub struct KeywordQuery {
|
||||
pub keyword: Option<String>,
|
||||
}
|
||||
|
||||
impl KeywordQuery {
|
||||
pub fn keyword(&self) -> Option<String> {
|
||||
self.keyword.clone().and_then(crate::utils::empty_to_none)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user