mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
22 lines
343 B
Go
22 lines
343 B
Go
package api
|
|
|
|
import (
|
|
"github.com/bitly/go-simplejson"
|
|
)
|
|
|
|
type CleanupArgs struct {
|
|
ResType string
|
|
}
|
|
|
|
type CleanupResult struct {
|
|
}
|
|
|
|
func NewCleanupArgs(sjson *simplejson.Json) (*CleanupArgs, error) {
|
|
args := new(CleanupArgs)
|
|
if resType, ok := sjson.CheckGet("res_type"); ok {
|
|
args.ResType = resType.MustString()
|
|
}
|
|
|
|
return args, nil
|
|
}
|