Skip to content

Commit 6d3e23d

Browse files
committed
refactor: standardize module naming conventions
1 parent 9380fc1 commit 6d3e23d

File tree

19 files changed

+21
-21
lines changed

19 files changed

+21
-21
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "codecraft-server"
33
description = "CodeCraft Backend Server"
4-
version = "0.5.0"
4+
version = "0.6.0"
55
edition = "2021"
66

77
default-run = "codecraft-server"

openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": {
77
"name": ""
88
},
9-
"version": "0.4.0"
9+
"version": "0.6.0"
1010
},
1111
"paths": {
1212
"/v1/workflows": {

src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use serde_json::json;
2121
use thiserror::Error;
2222
use tracing::error;
2323

24-
use crate::{schema, services::storage::StorageError};
24+
use crate::{schema, service::storage::StorageError};
2525

2626
pub type Result<T, E = ApiError> = std::result::Result<T, E>;
2727

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use crate::{
1616
context::Context,
1717
errors::{ApiError, Result},
18-
services::git::GitService,
18+
service::git::GitService,
1919
};
2020
use axum::{
2121
body::Bytes,
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use axum::{
2323
use uuid::Uuid;
2424

2525
use crate::{
26-
context::Context, errors::Result, requests::workflow::CreateWorkflowRequest,
27-
responses::workflow::WorkflowResponse, services::workflow::WorkflowService,
26+
context::Context, errors::Result, request::workflow::CreateWorkflowRequest,
27+
response::workflow::WorkflowResponse, service::workflow::WorkflowService,
2828
};
2929

3030
// The Workflow Service Handlers.

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ pub mod app;
1616
pub mod config;
1717
pub mod context;
1818
pub mod errors;
19-
pub mod handlers;
19+
pub mod handler;
2020
pub mod logger;
21-
pub mod requests;
22-
pub mod responses;
21+
pub mod request;
22+
pub mod response;
2323
pub mod routes;
2424
pub mod schema;
25-
pub mod services;
25+
pub mod service;
2626
pub mod swagger;
File renamed without changes.

0 commit comments

Comments
 (0)