32 lines
778 B
Go
32 lines
778 B
Go
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, c.httpCli, &req, &CacheMovePackageResp{})
|
|
}
|
|
*/
|