...
|
...
|
@@ -2,6 +2,7 @@ package command |
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
|
|
|
"reflect"
|
|
|
"strings"
|
|
|
|
...
|
...
|
@@ -23,6 +24,8 @@ type UpdateCooperationProjectCommand struct { |
|
|
PublisherUid string `cname:"共创项目发布人UID" json:"publisherUid" valid:"Required"`
|
|
|
// 共创项目描述
|
|
|
CooperationProjectDescription string `cname:"共创项目描述" json:"cooperationProjectDescription,omitempty"`
|
|
|
// 附件
|
|
|
Attachment []*domain.Attachment `cname:"共创项目附件" json:"attachment,omitempty"`
|
|
|
// 公司ID,通过集成REST上下文获取
|
|
|
CompanyId int64 `cname:"公司ID" json:"companyId" valid:"Required"`
|
|
|
// 组织机构ID
|
...
|
...
|
@@ -34,7 +37,6 @@ type UpdateCooperationProjectCommand struct { |
|
|
}
|
|
|
|
|
|
func (updateCooperationProjectCommand *UpdateCooperationProjectCommand) Valid(validation *validation.Validation) {
|
|
|
//validation.SetError("CustomValid", "未实现的自定义认证")
|
|
|
}
|
|
|
|
|
|
func (updateCooperationProjectCommand *UpdateCooperationProjectCommand) ValidateCommand() error {
|
...
|
...
|
|