This commit is contained in:
Mrx
2026-01-31 12:15:42 +08:00
parent a6f858dbd3
commit ff86cb6fb9
13 changed files with 47 additions and 10 deletions

View File

@@ -37,6 +37,9 @@ func ProcessJRZQACABERequest(ctx context.Context, params []byte, deps *processor
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -34,6 +34,9 @@ func ProcessQCXG3B8ZRequest(ctx context.Context, params []byte, deps *processors
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -36,6 +36,9 @@ func ProcessQCXG3M7ZRequest(ctx context.Context, params []byte, deps *processors
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -22,8 +22,8 @@ func ProcessQCXG5U0ZRequest(ctx context.Context, params []byte, deps *processors
}
reqParams := map[string]interface{}{
"key": "7c8122677476dd2621f574976f1a9fde",
"vin": paramsDto.VinCode,
"key": "7c8122677476dd2621f574976f1a9fde",
"vinList": paramsDto.VinCode,
}
apiPath := "/communication/personal/10479"
@@ -32,6 +32,9 @@ func ProcessQCXG5U0ZRequest(ctx context.Context, params []byte, deps *processors
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -34,6 +34,9 @@ func ProcessQCXG9F5CERequest(ctx context.Context, params []byte, deps *processor
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -34,6 +34,9 @@ func ProcessQCXGM7R9Request(ctx context.Context, params []byte, deps *processors
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -34,6 +34,9 @@ func ProcessQCXGP1W3Request(ctx context.Context, params []byte, deps *processors
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -34,6 +34,9 @@ func ProcessQCXGU2K4Request(ctx context.Context, params []byte, deps *processors
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -36,6 +36,9 @@ func ProcessQCXGY7F2Request(ctx context.Context, params []byte, deps *processors
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}

View File

@@ -36,6 +36,9 @@ func ProcessYYSYK9R4Request(ctx context.Context, params []byte, deps *processors
if errors.Is(err, shujubao.ErrDatasource) {
return nil, errors.Join(processors.ErrDatasource, err)
}
if errors.Is(err, shujubao.ErrQueryEmpty) {
return nil, errors.Join(processors.ErrNotFound, err)
}
return nil, errors.Join(processors.ErrSystem, err)
}