Skip to content

Commit

Permalink
fix super
Browse files Browse the repository at this point in the history
  • Loading branch information
tikitko committed Dec 22, 2023
1 parent be219ad commit a893183
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions blog-server-api/src/endpoints/author/request_content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use screw_api::request::{ApiRequestContent, ApiRequestOriginContent};
use std::sync::Arc;

pub struct AuthorRequestContent {
pub(crate) slug: String,
pub(crate) author_service: Arc<Box<dyn AuthorService>>,
pub(super) slug: String,
pub(super) author_service: Arc<Box<dyn AuthorService>>,
}

impl<Extensions> ApiRequestContent<Extensions> for AuthorRequestContent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use screw_api::response::{ApiResponseContentBase, ApiResponseContentSuccess};

#[derive(Debug, Clone)]
pub struct AuthorResponseContentSuccess {
pub(crate) container: AuthorContainer,
pub(super) container: AuthorContainer,
}

impl Into<AuthorResponseContentSuccess> for ServiceAuthor {
Expand Down
8 changes: 4 additions & 4 deletions blog-server-api/src/endpoints/authors/request_content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ use screw_api::request::{ApiRequestContent, ApiRequestOriginContent};
use std::sync::Arc;

pub struct AuthorsRequestContent {
pub(crate) query: Option<String>,
pub(crate) offset: Option<u64>,
pub(crate) limit: Option<u64>,
pub(crate) author_service: Arc<Box<dyn AuthorService>>,
pub(super) query: Option<String>,
pub(super) offset: Option<u64>,
pub(super) limit: Option<u64>,
pub(super) author_service: Arc<Box<dyn AuthorService>>,
}

impl<Extensions> ApiRequestContent<Extensions> for AuthorsRequestContent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use screw_api::response::{ApiResponseContentBase, ApiResponseContentSuccess};

#[derive(Debug, Clone)]
pub struct AuthorsResponseContentSuccess {
pub(crate) container: AuthorsContainer,
pub(super) container: AuthorsContainer,
}

impl Into<AuthorsResponseContentSuccess> for AuthorsContainer {
Expand Down
8 changes: 4 additions & 4 deletions blog-server-api/src/endpoints/post/request_content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use screw_components::dyn_fn::DFuture;
use std::sync::Arc;

pub struct PostRequestContent {
pub(crate) id: String,
pub(crate) post_service: Arc<Box<dyn PostService>>,
pub(crate) entity_post_service: Arc<Box<dyn EntityPostService>>,
pub(crate) auth_author_future: DFuture<Result<Author, auth::Error>>,
pub(super) id: String,
pub(super) post_service: Arc<Box<dyn PostService>>,
pub(super) entity_post_service: Arc<Box<dyn EntityPostService>>,
pub(super) auth_author_future: DFuture<Result<Author, auth::Error>>,
}

impl<Extensions> ApiRequestContent<Extensions> for PostRequestContent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use screw_api::response::{ApiResponseContentBase, ApiResponseContentSuccess};

#[derive(Debug, Clone)]
pub struct PostResponseContentSuccess {
pub(crate) container: PostContainer,
pub(super) container: PostContainer,
}

impl Into<PostResponseContentSuccess> for Post {
Expand Down
10 changes: 5 additions & 5 deletions blog-server-api/src/endpoints/posts/request_content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ pub enum PostsRequestContentFilter {
}

pub struct PostsRequestContent {
pub(crate) filter: Option<PostsRequestContentFilter>,
pub(crate) offset: Option<u64>,
pub(crate) limit: Option<u64>,
pub(crate) post_service: Arc<Box<dyn PostService>>,
pub(crate) entity_post_service: Arc<Box<dyn EntityPostService>>,
pub(super) filter: Option<PostsRequestContentFilter>,
pub(super) offset: Option<u64>,
pub(super) limit: Option<u64>,
pub(super) post_service: Arc<Box<dyn PostService>>,
pub(super) entity_post_service: Arc<Box<dyn EntityPostService>>,
}

impl<Extensions> ApiRequestContent<Extensions> for PostsRequestContent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use screw_api::response::{ApiResponseContentBase, ApiResponseContentSuccess};

#[derive(Debug, Clone)]
pub struct PostsResponseContentSuccess {
pub(crate) container: PostsContainer,
pub(super) container: PostsContainer,
}

impl Into<PostsResponseContentSuccess> for PostsContainer {
Expand Down
4 changes: 2 additions & 2 deletions blog-server-api/src/endpoints/tag/request_content.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use screw_api::request::{ApiRequestContent, ApiRequestOriginContent};
use std::sync::Arc;

pub struct TagRequestContent {
pub(crate) id: String,
pub(crate) post_service: Arc<Box<dyn PostService>>,
pub(super) id: String,
pub(super) post_service: Arc<Box<dyn PostService>>,
}

impl<Extensions> ApiRequestContent<Extensions> for TagRequestContent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use screw_api::response::{ApiResponseContentBase, ApiResponseContentSuccess};

#[derive(Debug, Clone)]
pub struct TagResponseContentSuccess {
pub(crate) container: TagContainer,
pub(super) container: TagContainer,
}

impl Into<TagResponseContentSuccess> for ServiceTag {
Expand Down

0 comments on commit a893183

Please sign in to comment.