🐛 Fix insight register grpc service twice

This commit is contained in:
2026-01-02 21:33:33 +08:00
parent 9ecc64352c
commit 1596897a5b
2 changed files with 75 additions and 79 deletions

View File

@@ -39,10 +39,6 @@ using (var scope = app.Services.CreateScope())
await db.Database.MigrateAsync();
}
app.MapGrpcService<WebReaderGrpcService>();
app.MapGrpcService<WebArticleGrpcService>();
app.MapGrpcService<WebFeedGrpcService>();
app.ConfigureAppMiddleware(builder.Configuration);
app.UseSwaggerManifest("DysonNetwork.Insight");

View File

@@ -79,7 +79,7 @@ message ListWebArticlesRequest {
string page_token = 3;
}
message ListWebArticlesResponse {
message ListWebArticlesResponse {
repeated WebArticle articles = 1;
string next_page_token = 2;
int32 total_size = 3;
@@ -141,7 +141,7 @@ message InvalidateLinkPreviewCacheResponse {
bool success = 1;
}
service WebArticleService {
service WebArticleService {
rpc GetWebArticle(GetWebArticleRequest) returns (GetWebArticleResponse);
rpc GetWebArticleBatch(GetWebArticleBatchRequest) returns (GetWebArticleBatchResponse);
rpc ListWebArticles(ListWebArticlesRequest) returns (ListWebArticlesResponse);