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