package command import "github.com/beego/beego/v2/core/validation" type GetCycleCommand struct { Id int64 `cname:"周期Id" json:"id,string" valid:"Required"` } func (in *GetCycleCommand) Valid(*validation.Validation) { }