a34fe57
zhenyi
feat(lib): add new handlers and export views (db users_loader, repo readme/lifecycle/tree/PR/release, issue reopen, export sidebar/basic)
a34fe57
use serde::Deserialize;
use utoipa::IntoParams;
use uuid::Uuid;
#[derive(Debug, Clone, Deserialize, IntoParams)]
pub struct ProjectPath {
pub space_name: String,
pub project_id: Uuid,
}
#[derive(Debug, Clone, Deserialize, IntoParams)]
pub struct MemberPath {
pub space_name: String,
pub project_id: Uuid,
pub user_id: Uuid,
}
#[derive(Debug, Clone, Deserialize, IntoParams)]
pub struct ViewPath {
pub space_name: String,
pub project_id: Uuid,
pub view_id: Uuid,
}
#[derive(Debug, Clone, Deserialize, IntoParams)]
pub struct DocumentPath {
pub space_name: String,
pub project_id: Uuid,
pub doc_id: Uuid,
}
#[derive(Debug, Clone, Deserialize, IntoParams)]
pub struct LinkPath {
pub space_name: String,
pub project_id: Uuid,
pub link_id: Uuid,
}
#[derive(Debug, Clone, Deserialize, IntoParams)]
pub struct FavoritePath {
pub space_name: String,
pub project_id: Uuid,
pub favorite_id: Uuid,
}