larksuite / larksuite/oapi-sdk-java
招聘-获取附件信息中create_time字段超过int最大值
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 310
- Forks
- 115
- PR merge metrics
- No merged PRs in 30d
Description
https://open.feishu.cn/document/server-docs/hire-v1/attachment/get
接口返回对象中包含创建时间,在SDK中com.lark.oapi.service.hire.v1.model.Attachmentd类create_time是int类型
/**
* 附件创建时间(单位ms)
* <p> 示例值:1618899376480
*/
@SerializedName("create_time")
private Integer createTime;
执行会出现异常com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 1702537517679 at line 1 column 60 path $.data.attachment.create_time
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with com.lark.oapi.service.hire.v1.model.Attachmentd and inspect the create_time/createTime mapping against the documented millisecond value. Verify that deserializing the attachment response containing 1702537517679 no longer raises JsonSyntaxException or NumberFormatException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100