chore(infra): add gRPC layer, update protobufs, remove immediate module

- Add gRPC service modules: auth, channel, channel settings, member,
  permission
- Update protobuf definitions and generated code
- Remove immediate/ real-time module (superseded by IM service)
- Update etcd discovery and registration
- Update cache, error, config, and build infrastructure
- Add ADR documentation
- Update OpenAPI spec
This commit is contained in:
zhenyi
2026-06-10 18:49:42 +08:00
parent 9eb77ab98b
commit 1000f8a80d
57 changed files with 22524 additions and 2703 deletions
+4 -1
View File
@@ -2,10 +2,13 @@ use appks::api::openapi::OpenApiDoc;
use utoipa::OpenApi;
fn main() {
println!("Generating OpenAPI documentation...");
let json = OpenApiDoc::openapi().to_pretty_json();
if let Ok(json) = json {
if let Err(e) = std::fs::write("openapi.json", json) {
eprintln!("{}", e);
println!("Failed to write OpenAPI documentation. {}", e);
} else {
println!("OpenAPI documentation generated successfully.");
}
}
}