This commit is contained in:
2026-05-10 03:16:13 +02:00
parent 5f05108132
commit 0b441b0759
77 changed files with 2100 additions and 71 deletions
+1
View File
@@ -0,0 +1 @@
pub struct Attachment {}
+10
View File
@@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct CreateAttachmentRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct UpdateAttachmentRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct AttachmentResponse {}
+22
View File
@@ -0,0 +1,22 @@
use axum::http::StatusCode;
use axum::response::IntoResponse;
pub async fn get_all() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn get_by_id() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn create() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn update() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn delete() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
+5
View File
@@ -0,0 +1,5 @@
use super::{domain::Attachment, dto::AttachmentResponse};
pub fn to_response(_item: Attachment) -> AttachmentResponse {
todo!()
}
+6
View File
@@ -0,0 +1,6 @@
pub mod domain;
pub mod dto;
pub mod handlers;
pub mod mapper;
pub mod routes;
pub mod service;
+14
View File
@@ -0,0 +1,14 @@
use axum::{Router, routing::get};
use super::handlers;
pub fn router() -> Router {
Router::new()
.route("/attachments", get(handlers::get_all).post(handlers::create))
.route(
"/attachments/:id",
get(handlers::get_by_id)
.put(handlers::update)
.delete(handlers::delete),
)
}
+21
View File
@@ -0,0 +1,21 @@
use super::domain::Attachment;
pub async fn find_all() -> Vec<Attachment> {
todo!()
}
pub async fn find_by_id(_id: u64) -> Option<Attachment> {
todo!()
}
pub async fn create(_item: Attachment) -> Attachment {
todo!()
}
pub async fn update(_id: u64, _item: Attachment) -> Option<Attachment> {
todo!()
}
pub async fn delete(_id: u64) -> bool {
todo!()
}
+1
View File
@@ -0,0 +1 @@
pub struct Category {}
+10
View File
@@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct CreateCategoryRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct UpdateCategoryRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct CategoryResponse {}
+22
View File
@@ -0,0 +1,22 @@
use axum::http::StatusCode;
use axum::response::IntoResponse;
pub async fn get_all() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn get_by_id() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn create() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn update() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn delete() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
+5
View File
@@ -0,0 +1,5 @@
use super::{domain::Category, dto::CategoryResponse};
pub fn to_response(_item: Category) -> CategoryResponse {
todo!()
}
+6
View File
@@ -0,0 +1,6 @@
pub mod domain;
pub mod dto;
pub mod handlers;
pub mod mapper;
pub mod routes;
pub mod service;
+14
View File
@@ -0,0 +1,14 @@
use axum::{Router, routing::get};
use super::handlers;
pub fn router() -> Router {
Router::new()
.route("/categorys", get(handlers::get_all).post(handlers::create))
.route(
"/categorys/:id",
get(handlers::get_by_id)
.put(handlers::update)
.delete(handlers::delete),
)
}
+21
View File
@@ -0,0 +1,21 @@
use super::domain::Category;
pub async fn find_all() -> Vec<Category> {
todo!()
}
pub async fn find_by_id(_id: u64) -> Option<Category> {
todo!()
}
pub async fn create(_item: Category) -> Category {
todo!()
}
pub async fn update(_id: u64, _item: Category) -> Option<Category> {
todo!()
}
pub async fn delete(_id: u64) -> bool {
todo!()
}
+1
View File
@@ -0,0 +1 @@
pub struct Channel {}
+10
View File
@@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct CreateChannelRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct UpdateChannelRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct ChannelResponse {}
+22
View File
@@ -0,0 +1,22 @@
use axum::http::StatusCode;
use axum::response::IntoResponse;
pub async fn get_all() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn get_by_id() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn create() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn update() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn delete() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
+5
View File
@@ -0,0 +1,5 @@
use super::{domain::Channel, dto::ChannelResponse};
pub fn to_response(_item: Channel) -> ChannelResponse {
todo!()
}
+6
View File
@@ -0,0 +1,6 @@
pub mod domain;
pub mod dto;
pub mod handlers;
pub mod mapper;
pub mod routes;
pub mod service;
+14
View File
@@ -0,0 +1,14 @@
use axum::{Router, routing::get};
use super::handlers;
pub fn router() -> Router {
Router::new()
.route("/channels", get(handlers::get_all).post(handlers::create))
.route(
"/channels/:id",
get(handlers::get_by_id)
.put(handlers::update)
.delete(handlers::delete),
)
}
+21
View File
@@ -0,0 +1,21 @@
use super::domain::Channel;
pub async fn find_all() -> Vec<Channel> {
todo!()
}
pub async fn find_by_id(_id: u64) -> Option<Channel> {
todo!()
}
pub async fn create(_item: Channel) -> Channel {
todo!()
}
pub async fn update(_id: u64, _item: Channel) -> Option<Channel> {
todo!()
}
pub async fn delete(_id: u64) -> bool {
todo!()
}
+1
View File
@@ -0,0 +1 @@
pub struct Group {}
+10
View File
@@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct CreateGroupRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct UpdateGroupRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct GroupResponse {}
+22
View File
@@ -0,0 +1,22 @@
use axum::http::StatusCode;
use axum::response::IntoResponse;
pub async fn get_all() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn get_by_id() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn create() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn update() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn delete() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
+5
View File
@@ -0,0 +1,5 @@
use super::{domain::Group, dto::GroupResponse};
pub fn to_response(_item: Group) -> GroupResponse {
todo!()
}
+6
View File
@@ -0,0 +1,6 @@
pub mod domain;
pub mod dto;
pub mod handlers;
pub mod mapper;
pub mod routes;
pub mod service;
+14
View File
@@ -0,0 +1,14 @@
use axum::{Router, routing::get};
use super::handlers;
pub fn router() -> Router {
Router::new()
.route("/groups", get(handlers::get_all).post(handlers::create))
.route(
"/groups/:id",
get(handlers::get_by_id)
.put(handlers::update)
.delete(handlers::delete),
)
}
+21
View File
@@ -0,0 +1,21 @@
use super::domain::Group;
pub async fn find_all() -> Vec<Group> {
todo!()
}
pub async fn find_by_id(_id: u64) -> Option<Group> {
todo!()
}
pub async fn create(_item: Group) -> Group {
todo!()
}
pub async fn update(_id: u64, _item: Group) -> Option<Group> {
todo!()
}
pub async fn delete(_id: u64) -> bool {
todo!()
}
+1
View File
@@ -0,0 +1 @@
pub struct Message {}
+10
View File
@@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct CreateMessageRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct UpdateMessageRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct MessageResponse {}
+22
View File
@@ -0,0 +1,22 @@
use axum::http::StatusCode;
use axum::response::IntoResponse;
pub async fn get_all() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn get_by_id() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn create() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn update() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn delete() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
+5
View File
@@ -0,0 +1,5 @@
use super::{domain::Message, dto::MessageResponse};
pub fn to_response(_item: Message) -> MessageResponse {
todo!()
}
+6
View File
@@ -0,0 +1,6 @@
pub mod domain;
pub mod dto;
pub mod handlers;
pub mod mapper;
pub mod routes;
pub mod service;
+14
View File
@@ -0,0 +1,14 @@
use axum::{Router, routing::get};
use super::handlers;
pub fn router() -> Router {
Router::new()
.route("/messages", get(handlers::get_all).post(handlers::create))
.route(
"/messages/:id",
get(handlers::get_by_id)
.put(handlers::update)
.delete(handlers::delete),
)
}
+21
View File
@@ -0,0 +1,21 @@
use super::domain::Message;
pub async fn find_all() -> Vec<Message> {
todo!()
}
pub async fn find_by_id(_id: u64) -> Option<Message> {
todo!()
}
pub async fn create(_item: Message) -> Message {
todo!()
}
pub async fn update(_id: u64, _item: Message) -> Option<Message> {
todo!()
}
pub async fn delete(_id: u64) -> bool {
todo!()
}
+20
View File
@@ -0,0 +1,20 @@
use axum::Router;
pub mod attachment;
pub mod category;
pub mod channel;
pub mod group;
pub mod message;
pub mod server;
pub mod user;
pub fn router() -> Router {
Router::new()
.merge(user::routes::router())
.merge(server::routes::router())
.merge(channel::routes::router())
.merge(message::routes::router())
.merge(group::routes::router())
.merge(category::routes::router())
.merge(attachment::routes::router())
}
+1
View File
@@ -0,0 +1 @@
pub struct Server {}
+10
View File
@@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct CreateServerRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct UpdateServerRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct ServerResponse {}
+22
View File
@@ -0,0 +1,22 @@
use axum::http::StatusCode;
use axum::response::IntoResponse;
pub async fn get_all() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn get_by_id() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn create() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn update() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn delete() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
+5
View File
@@ -0,0 +1,5 @@
use super::{domain::Server, dto::ServerResponse};
pub fn to_response(_item: Server) -> ServerResponse {
todo!()
}
+6
View File
@@ -0,0 +1,6 @@
pub mod domain;
pub mod dto;
pub mod handlers;
pub mod mapper;
pub mod routes;
pub mod service;
+14
View File
@@ -0,0 +1,14 @@
use axum::{Router, routing::get};
use super::handlers;
pub fn router() -> Router {
Router::new()
.route("/servers", get(handlers::get_all).post(handlers::create))
.route(
"/servers/:id",
get(handlers::get_by_id)
.put(handlers::update)
.delete(handlers::delete),
)
}
+21
View File
@@ -0,0 +1,21 @@
use super::domain::Server;
pub async fn find_all() -> Vec<Server> {
todo!()
}
pub async fn find_by_id(_id: u64) -> Option<Server> {
todo!()
}
pub async fn create(_item: Server) -> Server {
todo!()
}
pub async fn update(_id: u64, _item: Server) -> Option<Server> {
todo!()
}
pub async fn delete(_id: u64) -> bool {
todo!()
}
+1
View File
@@ -0,0 +1 @@
pub struct User {}
+10
View File
@@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize)]
pub struct CreateUserRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct UpdateUserRequest {}
#[derive(Debug, Serialize, Deserialize)]
pub struct UserResponse {}
+22
View File
@@ -0,0 +1,22 @@
use axum::http::StatusCode;
use axum::response::IntoResponse;
pub async fn get_all() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn get_by_id() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn create() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn update() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
pub async fn delete() -> impl IntoResponse {
StatusCode::NOT_IMPLEMENTED
}
+5
View File
@@ -0,0 +1,5 @@
use super::{domain::User, dto::UserResponse};
pub fn to_response(_user: User) -> UserResponse {
todo!()
}
+6
View File
@@ -0,0 +1,6 @@
pub mod domain;
pub mod dto;
pub mod handlers;
pub mod mapper;
pub mod routes;
pub mod service;
+14
View File
@@ -0,0 +1,14 @@
use axum::{routing::get, Router};
use super::handlers;
pub fn router() -> Router {
Router::new()
.route("/users", get(handlers::get_all).post(handlers::create))
.route(
"/users/:id",
get(handlers::get_by_id)
.put(handlers::update)
.delete(handlers::delete),
)
}
+21
View File
@@ -0,0 +1,21 @@
use super::domain::User;
pub async fn find_all() -> Vec<User> {
todo!()
}
pub async fn find_by_id(_id: u64) -> Option<User> {
todo!()
}
pub async fn create(_user: User) -> User {
todo!()
}
pub async fn update(_id: u64, _user: User) -> Option<User> {
todo!()
}
pub async fn delete(_id: u64) -> bool {
todo!()
}