|
12345678910111213141516171819202122232425262728293031 |
- package api
-
- /*
- import (
- "net/http"
-
- "gitlink.org.cn/cloudream/common/sdks"
- cdssdk "gitlink.org.cn/cloudream/jcs-pub/client/types"
- )
-
- const CacheMovePackagePath = "/cache/movePackage"
-
- type CacheMovePackageReq struct {
- PackageID cdssdk.PackageID `json:"packageID"`
- StorageID cdssdk.StorageID `json:"storageID"`
- }
-
- func (r *CacheMovePackageReq) MakeParam() *sdks.RequestParam {
- return sdks.MakeJSONParam(http.MethodPost, CacheMovePackagePath, r)
- }
-
- type CacheMovePackageResp struct{}
-
- func (r *CacheMovePackageResp) ParseResponse(resp *http.Response) error {
- return sdks.ParseCodeDataJSONResponse(resp, r)
- }
-
- func (c *Client) CacheMovePackage(req CacheMovePackageReq) (*CacheMovePackageResp, error) {
- return JSONAPI(c.cfg, http.DefaultClient, &req, &CacheMovePackageResp{})
- }
- */
|