This commit is contained in:
2026-10-03 12:38:11 +07:00
parent 119b22d63e
commit c16c1ed5ac
22 changed files with 34 additions and 20 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ func (s *server) AddScenario(ctx context.Context, req *proto.AddScenarioReq) (*p
}, nil
}
func (s *server) GetMyScenarios(ctx context.Context, req *proto.GetMyScenariosReq) (*proto.GetMyScenariosRsp, error) {
func (s *server) GetMyScenarios(ctx context.Context, _ *proto.GetMyScenariosReq) (*proto.GetMyScenariosRsp, error) {
claims, claimsErr := claimsFromContext(ctx)
if claimsErr != nil {
return nil, claimsErr
@@ -48,7 +48,7 @@ func (s *server) GetMyScenarios(ctx context.Context, req *proto.GetMyScenariosRe
}, nil
}
func (s *server) GetScenariosCatalog(ctx context.Context, req *proto.GetScenariosCatalogReq) (*proto.GetScenariosCatalogRsp, error) {
func (s *server) GetScenariosCatalog(ctx context.Context, _ *proto.GetScenariosCatalogReq) (*proto.GetScenariosCatalogRsp, error) {
scenarios, err := s.scenarioService.GetScenariosCatalog(ctx)
if err != nil {
return nil, scenarioErrorStatus(err, "не удалось получить каталог сценариев")