dividend.go 1.3 KB
package dto

type CompanyContractDividendDto struct {
	CooperationContractName   string `json:"cooperationContractName"`
	CooperationContractNumber string `json:"cooperationContractNumber"`
	CooperationContractID     string `json:"cooperationContractId"`
	DividendsAmount           string `json:"dividendsAmount"`
	DividendsOrderAmount      string `json:"dividendsOrderAmount"`
	CreatedAt                 int64  `json:"createdAt"`
	CooperationContractStatus int    `json:"cooperationContractStatus"`
}

func (v *CompanyContractDividendDto) LoadDto() {
	v = &CompanyContractDividendDto{
		CooperationContractID:     "79879879834",
		CooperationContractNumber: "dfjkdjfld",
		CooperationContractName:   "合约名称",
		DividendsAmount:           "9876.99",
		DividendsOrderAmount:      "8596.33",
		CreatedAt:                 1628901385000,
		CooperationContractStatus: 1,
	}
}

func NewCompanyContractDividendDto() *CompanyContractDividendDto {
	v := &CompanyContractDividendDto{
		CooperationContractID:     "79879879834",
		CooperationContractNumber: "dfjkdjfld",
		CooperationContractName:   "合约名称",
		DividendsAmount:           "9876.99",
		DividendsOrderAmount:      "8596.33",
		CreatedAt:                 1628901385000,
		CooperationContractStatus: 1,
	}
	return v
}