...
|
...
|
@@ -3,12 +3,13 @@ package command |
|
|
import "github.com/beego/beego/v2/core/validation"
|
|
|
|
|
|
type QueryProjectCommand struct {
|
|
|
CompanyId int64 `cname:"公司ID" json:"companyId"`
|
|
|
CycleId int64 `cname:"周期ID" json:"cycleId,string"`
|
|
|
Name string `cname:"项目名称" json:"name"`
|
|
|
State int `cname:"项目状态" json:"state"`
|
|
|
PageNumber int `cname:"分页页码" json:"pageNumber" valid:"Required"`
|
|
|
PageSize int `cname:"分页数量" json:"pageSize" valid:"Required"`
|
|
|
CompanyId int64 `cname:"公司ID" json:"companyId"`
|
|
|
CycleId int64 `cname:"周期ID" json:"cycleId,string"`
|
|
|
Name string `cname:"项目名称" json:"name"`
|
|
|
State int `cname:"项目状态" json:"state"`
|
|
|
PmpIds []string `cname:"项目管理员ID" json:"pmpIds"`
|
|
|
PageNumber int `cname:"分页页码" json:"pageNumber" valid:"Required"`
|
|
|
PageSize int `cname:"分页数量" json:"pageSize" valid:"Required"`
|
|
|
}
|
|
|
|
|
|
func (in *QueryProjectCommand) Valid(validation *validation.Validation) {
|
...
|
...
|
|