chore: clean up imports
This commit is contained in:
parent
32e27978ec
commit
48f2d00c94
12 changed files with 66 additions and 63 deletions
|
|
@ -2,13 +2,12 @@ pub mod entities;
|
|||
mod migrator;
|
||||
pub mod query;
|
||||
|
||||
use sea_orm::{DeriveActiveEnum, EnumIter};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
pub use entities::{prelude::*, *};
|
||||
pub use migrator::Migrator;
|
||||
|
||||
use sea_orm::{DeriveActiveEnum, EnumIter};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
type Result<T> = std::result::Result<T, sea_orm::DbErr>;
|
||||
|
||||
#[derive(EnumIter, DeriveActiveEnum, Serialize, Deserialize, PartialEq, Eq, Clone, Debug)]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
use crate::db::*;
|
||||
|
||||
use sea_orm::{sea_query::IntoCondition, *};
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::db::*;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct Filter {
|
||||
repo: Option<i32>,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use sea_orm::{sea_query::IntoCondition, *};
|
||||
|
||||
use crate::db::*;
|
||||
|
||||
use sea_orm::{sea_query::IntoCondition, *};
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct Filter {
|
||||
name: Option<String>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue