审查视图

pkg/application/evaluation_project/command/project_option.go 485 字节
郑周 authored
1 2 3 4 5 6
package command

import (
	"github.com/beego/beego/v2/core/validation"
)
郑周 authored
7 8
type ActivateProjectCommand struct {
	Id int64 `cname:"项目ID" json:"id,string" valid:"Required"`
郑周 authored
9 10 11
}

type CopyProjectCommand struct {
郑周 authored
12 13
	CreatorId int64 `cname:"创建人ID" json:"creatorId"`
	Id        int64 `cname:"模板ID" json:"id,string" valid:"Required"`
郑周 authored
14 15
}
郑周 authored
16 17
func (in *ActivateProjectCommand) Valid(validation *validation.Validation) {
郑周 authored
18 19 20 21 22
}

func (in *CopyProjectCommand) Valid(*validation.Validation) {

}