正在显示
4 个修改的文件
包含
4 行增加
和
4 行删除
@@ -7,7 +7,7 @@ import ( | @@ -7,7 +7,7 @@ import ( | ||
7 | 7 | ||
8 | func (gateway *ByteMetadataService) TableDataPreview(ctx context.Context, request *TableDataPreviewRequest) (TablePreviewResponse, error) { | 8 | func (gateway *ByteMetadataService) TableDataPreview(ctx context.Context, request *TableDataPreviewRequest) (TablePreviewResponse, error) { |
9 | var result TablePreviewResponse | 9 | var result TablePreviewResponse |
10 | - if err := gateway.Do(ctx, "/data/table-preview", http.MethodPost, request, &result); err != nil { | 10 | + if err := gateway.Do(ctx, "/api/tables/table-preview", http.MethodPost, request, &result); err != nil { |
11 | return result, err | 11 | return result, err |
12 | } | 12 | } |
13 | return result, nil | 13 | return result, nil |
@@ -7,7 +7,7 @@ import ( | @@ -7,7 +7,7 @@ import ( | ||
7 | 7 | ||
8 | func (gateway *ByteMetadataService) TableFieldOptionalValues(ctx context.Context, request *TableFieldOptionalValuesRequest) (TableFieldOptionalValuesResponse, error) { | 8 | func (gateway *ByteMetadataService) TableFieldOptionalValues(ctx context.Context, request *TableFieldOptionalValuesRequest) (TableFieldOptionalValuesResponse, error) { |
9 | var result TableFieldOptionalValuesResponse | 9 | var result TableFieldOptionalValuesResponse |
10 | - if err := gateway.Do(ctx, "/data/field-optional-values", http.MethodPost, request, &result); err != nil { | 10 | + if err := gateway.Do(ctx, "/api/tables/field-optional-values", http.MethodPost, request, &result); err != nil { |
11 | return result, err | 11 | return result, err |
12 | } | 12 | } |
13 | return result, nil | 13 | return result, nil |
@@ -7,7 +7,7 @@ import ( | @@ -7,7 +7,7 @@ import ( | ||
7 | 7 | ||
8 | func (gateway *ByteMetadataService) TableInfo(ctx context.Context, request *TableInfoRequest) (TableInfoResponse, error) { | 8 | func (gateway *ByteMetadataService) TableInfo(ctx context.Context, request *TableInfoRequest) (TableInfoResponse, error) { |
9 | var result TableInfoResponse | 9 | var result TableInfoResponse |
10 | - if err := gateway.Do(ctx, "/data/tables/:tableId", http.MethodGet, request, &result); err != nil { | 10 | + if err := gateway.Do(ctx, "/api/tables/tables/:tableId", http.MethodGet, request, &result); err != nil { |
11 | return result, err | 11 | return result, err |
12 | } | 12 | } |
13 | return result, nil | 13 | return result, nil |
@@ -7,7 +7,7 @@ import ( | @@ -7,7 +7,7 @@ import ( | ||
7 | 7 | ||
8 | func (gateway *ByteMetadataService) ObjectTableSearch(ctx context.Context, request ObjectTableSearchRequest) (ObjectTableSearchResponse, error) { | 8 | func (gateway *ByteMetadataService) ObjectTableSearch(ctx context.Context, request ObjectTableSearchRequest) (ObjectTableSearchResponse, error) { |
9 | result := ObjectTableSearchResponse{} | 9 | result := ObjectTableSearchResponse{} |
10 | - if err := gateway.Do(ctx, "/data/table-object-search", http.MethodPost, request, &result); err != nil { | 10 | + if err := gateway.Do(ctx, "/api/tables/table-object-search", http.MethodPost, request, &result); err != nil { |
11 | return result, err | 11 | return result, err |
12 | } | 12 | } |
13 | return result, nil | 13 | return result, nil |
-
请 注册 或 登录 后发表评论