cooperation_contract_dto.go 569 字节
package dto

import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"

type CooperationContractDto struct {
	*domain.CooperationContract
	// 可以去除勾选的共创项目承接对象列表
	UndertakerTypesUncheckedAvailable []int32 `json:"undertakerTypesUncheckedAvailable"`
}

func (dto *CooperationContractDto) LoadDto(contract *domain.CooperationContract, undertakerTypesUncheckedAvailable []int32) error {
	dto.CooperationContract = contract
	dto.UndertakerTypesUncheckedAvailable = undertakerTypesUncheckedAvailable
	return nil
}