money_incentives_estimate_dto.go 1.1 KB
package dto

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

type StageAndUndertaker struct {
	// 分红阶段
	Stage int32 `json:"stage"`
}

type MoneyIncentivesEstimateDto struct {
	// 共创合约ID
	CooperationContractId int64 `json:"cooperationContractId,string"`
	// 共创合约编号
	CooperationContractNumber string `json:"cooperationContractNumber"`
	// 共创合约名称
	CooperationContractName string `json:"cooperationContractName"`
	// 共创模式或者合伙模式
	CooperationMode *domain.CooperationMode `json:"cooperationMode"`
	// 共创合约发起部门
	Department *domain.Department `json:"department"`
	// 共创合约发起人
	CooperationContractSponsor *domain.User `json:"cooperationContractSponsor"`
	// 创建合约时间
	CreatedAt time.Time `json:"createdAt"`
	// 阶段和承接人
	StageAndUndertaker *StageAndUndertaker `json:"stageAndUndertaker"`
}

func (dto *MoneyIncentivesEstimateDto) LoadDto(contract *domain.CooperationContract) error {
	dto.CooperationContractId = contract.CooperationContractId
	return nil
}