Skip to content

Commit 9297991

Browse files
committed
Fix API doc
1 parent 339ea78 commit 9297991

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

backend/src/handler.rs

+18-17
Original file line numberDiff line numberDiff line change
@@ -68,32 +68,33 @@ async fn server_header_middleware<B>(req: Request<B>, next: Next<B>) -> Response
6868
self::api::setting::put_setting,
6969
),
7070
components(schemas(
71-
crate::dto::IdResponse,
72-
crate::dto::NameResponse,
73-
crate::dto::User,
74-
crate::dto::Visibility,
75-
crate::dto::Mention,
76-
crate::dto::File,
77-
crate::dto::Emoji,
7871
crate::dto::CreateContentReaction,
72+
crate::dto::CreateEmoji,
7973
crate::dto::CreateEmojiReaction,
80-
crate::dto::CreateReaction,
81-
crate::dto::Reaction,
82-
crate::dto::Post,
74+
crate::dto::CreateFollow,
8375
crate::dto::CreatePost,
84-
crate::dto::LocalFile,
85-
crate::dto::LocalEmoji,
86-
crate::dto::CreateEmoji,
76+
crate::dto::CreateReaction,
77+
crate::dto::CreateReport,
78+
crate::dto::Emoji,
79+
crate::dto::File,
8780
crate::dto::Follow,
88-
crate::dto::CreateFollow,
89-
crate::dto::Setting,
81+
crate::dto::IdResponse,
82+
crate::dto::LocalEmoji,
83+
crate::dto::LocalFile,
84+
crate::dto::Mention,
85+
crate::dto::NameResponse,
9086
crate::dto::Object,
87+
crate::dto::ObjectStoreType,
88+
crate::dto::Post,
89+
crate::dto::Reaction,
9190
crate::dto::Report,
92-
crate::dto::CreateReport,
91+
crate::dto::Setting,
92+
crate::dto::User,
93+
crate::dto::Visibility,
9394
crate::queue::Event,
94-
crate::queue::Update,
9595
crate::queue::Notification,
9696
crate::queue::NotificationType,
97+
crate::queue::Update,
9798
self::api::auth::PostLoginReq,
9899
self::api::auth::PostLoginResp,
99100
self::api::setting::PostSettingReq,

backend/src/handler/api/setting.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use utoipa::ToSchema;
77

88
use crate::{
99
ap::person::PersonUpdate,
10-
dto::{self, Setting},
10+
dto::{ObjectStoreType, Setting},
1111
entity::{local_file, setting},
1212
error::{Context, Result},
1313
format_err,
@@ -90,7 +90,7 @@ pub struct PutSettingReq {
9090
#[serde(default)]
9191
pub theme_color: Option<String>,
9292
#[serde(default)]
93-
pub object_store_type: Option<dto::ObjectStoreType>,
93+
pub object_store_type: Option<ObjectStoreType>,
9494
#[serde(default)]
9595
pub object_store_s3_bucket: Option<String>,
9696
#[schema(value_type = Option<String>, format = "url")]

0 commit comments

Comments
 (0)