Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DIS Record Data 类型错误 #16

Open
drinks5 opened this issue Apr 19, 2021 · 0 comments
Open

DIS Record Data 类型错误 #16

drinks5 opened this issue Apr 19, 2021 · 0 comments

Comments

@drinks5
Copy link

drinks5 commented Apr 19, 2021

在版本v0.0.40-rc中, Data 被设置为 **os.File类型,但是实际序列化的时候还是二进制,实际调用中Records为空,是否应该把Data设置为*string类型? 这样可以获取到Records数据

`type Record struct {
// 用户上传数据时设置的partition_key。 说明: 上传数据时,如果传了partition_key参数,则下载数据时可返回此参数。如果上传数据时,未传partition_key参数,而是传入partition_id,则不返回partition_key。

PartitionKey *string `json:"partition_key,omitempty"`
// 该条数据的序列号。

SequenceNumber *string `json:"sequence_number,omitempty"`
// 下载的数据。  下载的数据为序列化之后的二进制数据(Base64编码后的字符串)。  比如下载数据接口返回的数据是“ZGF0YQ==”,“ZGF0YQ==”经过Base64解码之后是“data”。

Data **os.File `json:"data,omitempty"`
// 记录写入DIS的时间戳。

Timestamp *int64 `json:"timestamp,omitempty"`
// 时间戳类型。  - CreateTime:创建时间。

TimestampType *string `json:"timestamp_type,omitempty"`

}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants