param_dividends_estimate.go 5.4 KB
package allied_creation_cooperation

import "time"



//确定预算分红激励
type (
	ReqDividendsEstimateIncentive struct {
		CooperationContractNumber string //合约编号
		OrderOrReturnedOrderNum   string //分红订单号/退货单号
	}

	DataDividendsEstimateIncentive struct {
	}
)

//更新分红预算
type (
	ReqDividendsEstimateUpdate struct {
	}

	DataDividendsEstimateUpdate struct {
	}
)

//查询业绩分红
type (
	ReqDividendsEstimateSearchDividend struct {
	}

	DataDividendsEstimateSearchDividend struct {
	}
)

//查询分红预算单
type (
	ReqDividendsEstimateSearch struct {
		PageNumber int `json:"pageNumber"`
		PageSize   int `json:"pageSize"`
	}

	DataDividendsEstimateSearch struct {
		Grid struct {
			Total int
			List  []struct {
				DividendsEstimateId          int64     `json:"dividendsEstimateId,string"`   // 承接人分红预算记录ID
				DividendsAccountStatus       int32     `json:"dividendsAccountStatus"`       // 分红结算状态
				DividendsAmount              float64   `json:"dividendsAmount"`              // 分红金额
				DividendsEstimateOrderNumber string    `json:"dividendsEstimateOrderNumber"` // 承接人分红预算单号
				DividendsEstimateTime        time.Time `json:"dividendsEstimateTime"`        // 分红预算时间
				DividendsParticipateType     int32     `json:"dividendsParticipateType"`     // 参与分红类型,1承接人,2推荐人,3关联业务员
				DividendsType                int32     `json:"dividendsType"`                // 分红类型,1订单分红,2退货冲销,3金额激励
				OrderOrReturnedOrderNum      string    `json:"orderOrReturnedOrderNum"`      // 分红订单号或退货单号
				CooperationProjectNumber     string    `json:"cooperationProjectNumber"`     // 共创项目编号,
				DividendsUser                struct {
					UserId     int64 `json:"userId,string"`     // 用户ID,
					UserBaseId int64 `json:"userBaseId,string"` // 用户基本id
					UserType   int32 `json:"userType"`          // 用户类型
				} `json:"dividendsUser"` // 分红用户
				Org struct {
					OrgId   int64  `json:"orgId,string"` // 组织机构ID
					OrgName string `json:"orgName"`      // 组织名称
				} `json:"org"` // 数据所属组织机构
				Company struct {
					CompanyId   int64  `json:"companyId,string"` // 公司ID,
					CompanyLogo string `json:"companyLogo"`      // 公司logo
					CompanyName string `json:"companyName"`      // 公司名称
				} `json:"company"` // 公司
				CreatedAt time.Time `json:"createdAt"` // 创建时间
				UpdatedAt time.Time `json:"updatedAt"` // 更新时间
			}
		}
	}
)

//查询金额激励分红
type (
	ReqDividendsEstimateSearchMoney struct {
	}

	DataDividendsEstimateSearchMoney struct {
	}
)

//取消分红预算
type (
	ReqDividendsEstimateCancel struct {
		DividendsEstimateId int
	}

	DataDividendsEstimateCancel struct {
	}
)

//确定预算金额激励分红
type (
	ReqDividendsEstimateMoneyIncentives struct {
	}

	DataDividendsEstimateMoneyIncentives struct {
	}
)

//移除分红预算
type (
	ReqDividendsEstimateRemove struct {
		DividendsEstimateId int
	}

	DataDividendsEstimateRemove struct {
	}
)

//返回业绩激励分红详情
type (
	ReqDividendsEstimateListDividend struct {
	}

	DataDividendsEstimateListDividend struct {
	}
)

//返回分红预算列表
type (
	ReqDividendsEstimateList struct {
	}

	DataDividendsEstimateList struct {
	}
)

//返回分红预算详情
type (
	ReqDividendsEstimateGet struct {
		DividendsEstimateId int
	}

	DataDividendsEstimateGet struct {
		DividendsEstimateId          int64     `json:"dividendsEstimateId,string"`   // 承接人分红预算记录ID
		DividendsAccountStatus       int32     `json:"dividendsAccountStatus"`       // 分红结算状态
		DividendsAmount              float64   `json:"dividendsAmount"`              // 分红金额
		DividendsEstimateOrderNumber string    `json:"dividendsEstimateOrderNumber"` // 承接人分红预算单号
		DividendsEstimateTime        time.Time `json:"dividendsEstimateTime"`        // 分红预算时间
		DividendsParticipateType     int32     `json:"dividendsParticipateType"`     // 参与分红类型,1承接人,2推荐人,3关联业务员
		DividendsType                int32     `json:"dividendsType"`                // 分红类型,1订单分红,2退货冲销,3金额激励
		OrderOrReturnedOrderNum      string    `json:"orderOrReturnedOrderNum"`      // 分红订单号或退货单号
		CooperationProjectNumber     string    `json:"cooperationProjectNumber"`     // 共创项目编号,
		DividendsUser                struct {
			UserId     int64 `json:"userId,string"`     // 用户ID,
			UserBaseId int64 `json:"userBaseId,string"` // 用户基本id
			UserType   int32 `json:"userType"`          // 用户类型
		} `json:"dividendsUser"` // 分红用户
		Org struct {
			OrgId   int64  `json:"orgId,string"` // 组织机构ID
			OrgName string `json:"orgName"`      // 组织名称
		} `json:"org"` // 数据所属组织机构
		Company struct {
			CompanyId   int64  `json:"companyId,string"` // 公司ID,
			CompanyLogo string `json:"companyLogo"`      // 公司logo
			CompanyName string `json:"companyName"`      // 公司名称
		} `json:"company"` // 公司
		CreatedAt time.Time `json:"createdAt"` // 创建时间
		UpdatedAt time.Time `json:"updatedAt"` // 更新时间
	}
)

//返回金额激励分红列表
type (
	ReqDividendsEstimatesListMoney struct {
	}

	DataDividendsEstimatesListMoney struct {
	}
)