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