mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-24 23:41:52 +08:00
13 lines
238 B
Go
13 lines
238 B
Go
package apis
|
|
|
|
import (
|
|
"yunion.io/x/jsonutils"
|
|
)
|
|
|
|
// Meta is embedded by every input or output params
|
|
type Meta struct{}
|
|
|
|
func (m Meta) JSON(self interface{}) *jsonutils.JSONDict {
|
|
return jsonutils.Marshal(self).(*jsonutils.JSONDict)
|
|
}
|