You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

cache.go 786 B

7 months ago
7 months ago
12345678910111213141516171819202122232425262728293031
  1. package api
  2. /*
  3. import (
  4. "net/http"
  5. "gitlink.org.cn/cloudream/common/sdks"
  6. cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types"
  7. )
  8. const CacheMovePackagePath = "/cache/movePackage"
  9. type CacheMovePackageReq struct {
  10. PackageID cdssdk.PackageID `json:"packageID"`
  11. StorageID cdssdk.StorageID `json:"storageID"`
  12. }
  13. func (r *CacheMovePackageReq) MakeParam() *sdks.RequestParam {
  14. return sdks.MakeJSONParam(http.MethodPost, CacheMovePackagePath, r)
  15. }
  16. type CacheMovePackageResp struct{}
  17. func (r *CacheMovePackageResp) ParseResponse(resp *http.Response) error {
  18. return sdks.ParseCodeDataJSONResponse(resp, r)
  19. }
  20. func (c *Client) CacheMovePackage(req CacheMovePackageReq) (*CacheMovePackageResp, error) {
  21. return JSONAPI(c.cfg, http.DefaultClient, &req, &CacheMovePackageResp{})
  22. }
  23. */

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。