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

/api/fs/get接口返回结果改进 #5259

Closed
4 tasks done
ChenyangGao opened this issue Sep 21, 2023 · 0 comments
Closed
4 tasks done

/api/fs/get接口返回结果改进 #5259

ChenyangGao opened this issue Sep 21, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ChenyangGao
Copy link

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure this feature is not implemented.
  • I'm sure it's a reasonable and popular requirement.

Description of the feature / 需求描述

/api/fs/get接口返回结果的hashinfo字段希望是object而不是string

Suggested solution / 实现思路

No response

Additional context / 附件

{
    "code": 200,
    "message": "success",
    "data": {
        "name": "haha1.txt",
        "size": 1031,
        "is_dir": false,
        "modified": "2023-09-21T21:27:00Z",
        "created": "2023-09-21T13:27:15Z",
        "sign": "",
        "thumb": "",
        "type": 4,
         // 就是这个字段,应该是 object,而不是string,这样使用也方便,不然使用时还要再反序列化一下
        "hashinfo": "{\"sha1\":\"21FBB44CE85285DEDD44057F7E6FF0DC9A381D6D\"}",
        "raw_url": "http://192.168.1.66:5244/p/115/haha1.txt",
        "readme": "",
        "provider": "115 Cloud",
        "related": null
    }
}
@ChenyangGao ChenyangGao added the enhancement New feature or request label Sep 21, 2023
@xhofe xhofe closed this as completed in 882112e Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant