cooperation_contract_undertaker.go 925 字节
package domain

// 共创合约承接人
type CooperationContractUndertaker struct {
}

type CooperationContractUndertakerRepository interface {
	Save(cooperationContractUndertaker *CooperationContractUndertaker) (*CooperationContractUndertaker, error)
	Remove(cooperationContractUndertaker *CooperationContractUndertaker) (*CooperationContractUndertaker, error)
	FindOne(queryOptions map[string]interface{}) (*CooperationContractUndertaker, error)
	Find(queryOptions map[string]interface{}) (int64, []*CooperationContractUndertaker, error)
}

func (cooperationContractUndertaker *CooperationContractUndertaker) Identify() interface{} {
	if cooperationContractUndertaker.cooperationContractUndertakerId == 0 {
		return nil
	}
	return cooperationContractUndertaker.cooperationContractUndertakerId
}

func (cooperationContractUndertaker *CooperationContractUndertaker) Update(data map[string]interface{}) error {
	return nil
}