...
|
...
|
@@ -103,7 +103,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsEstimateUpdate(param Re |
|
|
}
|
|
|
|
|
|
// Dividends-estimatesSearch-dividends-incentives 查询业绩分红
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimateSearchDividends(param ReqDividendsEstimateSearchDividend) (*DataDividendsEstimateSearchDividend,error) {
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimateSearchDividends(param ReqDividendsEstimateSearchDividend) (*DataDividendsEstimateSearchDividend, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/search-dividends-incentives"
|
|
|
method := "POST"
|
|
|
req := gateway.CreateRequest(url, method)
|
...
|
...
|
@@ -134,7 +134,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsEstimateSearchDividends |
|
|
}
|
|
|
|
|
|
// DividendsEstimatesSearch查询分红预算单
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesSearch(param ReqDividendsEstimatesSearch) (*DataDividendsEstimatesSearch, error) {
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesSearch(param ReqDividendsEstimateSearch) (*DataDividendsEstimateSearch, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/search"
|
|
|
method := "POST"
|
|
|
req := gateway.CreateRequest(url, method)
|
...
|
...
|
@@ -159,7 +159,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesSearch(param R |
|
|
if err != nil {
|
|
|
return nil, fmt.Errorf("解析查询分红预算单:%w", err)
|
|
|
}
|
|
|
var data DataDividendsEstimatesSearch
|
|
|
var data DataDividendsEstimateSearch
|
|
|
err = gateway.GetResponseData(result, &data)
|
|
|
return &data, err
|
|
|
}
|
...
|
...
|
@@ -196,8 +196,8 @@ func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesSearchMoney(pa |
|
|
}
|
|
|
|
|
|
// Dividends-estimates[dividendsEstimateId}Cancel 取消分红预算
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesCancel(param ReqDividendsEstimateCancel) (*DataDividendsEstimatesCancel, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/"+strconv.ItoA(param.DividendsEstimateId)+"/cancel"
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesCancel(param ReqDividendsEstimateCancel) (*DataDividendsEstimateCancel, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/" + strconv.Itoa(param.DividendsEstimateId) + "/cancel"
|
|
|
method := "POST"
|
|
|
req := gateway.CreateRequest(url, method)
|
|
|
log.Logger.Debug("向基础模块请求数据:取消分红预算。", map[string]interface{}{
|
...
|
...
|
@@ -221,13 +221,13 @@ func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesCancel(param R |
|
|
if err != nil {
|
|
|
return nil, fmt.Errorf("解析取消分红预算:%w", err)
|
|
|
}
|
|
|
var data DataDividendsEstimatesCancel
|
|
|
var data DataDividendsEstimateCancel
|
|
|
err = gateway.GetResponseData(result, &data)
|
|
|
return &data, err
|
|
|
}
|
|
|
|
|
|
// Dividends-estimatesEstimate-money-incentives 确定预算金额激励分红
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesEstimateMoneys(param ReqDividendsEestimatesEstimateMoney) (*DataDividendsEstimatesEstimateMoney, error) {
|
|
|
// DividendsEstimatesEstimateMoneys 确定预算金额激励分红
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesEstimateMoneys(param ReqDividendsEstimateMoneyIncentives) (*DataDividendsEstimateMoneyIncentives, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/estimate-money-incentives"
|
|
|
method := "POST"
|
|
|
req := gateway.CreateRequest(url, method)
|
...
|
...
|
@@ -252,15 +252,15 @@ func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesEstimateMoneys |
|
|
if err != nil {
|
|
|
return nil, fmt.Errorf("解析确定预算金额激励分红:%w", err)
|
|
|
}
|
|
|
var data DataDividendsEstimatesEstimateMoney
|
|
|
var data DataDividendsEstimateMoneyIncentives
|
|
|
err = gateway.GetResponseData(result, &data)
|
|
|
return &data, err
|
|
|
}
|
|
|
|
|
|
// Dividends-estimates[dividendsEstimateId} 移除分红预算
|
|
|
// DividendAestimatesdivDidendsEstimat 移除分红预算
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendAestimatesdivDidendsEstimat(param ReqDividendsEstimateRemove) (
|
|
|
*DataDividendsEstimateRemove, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/"+strconv.Itoa(param.DividendsEstimateId)
|
|
|
url := gateway.baseUrL + "/dividends-estimates/" + strconv.Itoa(param.DividendsEstimateId)
|
|
|
method := "DELETE"
|
|
|
req := gateway.CreateRequest(url, method)
|
|
|
log.Logger.Debug("向基础模块请求数据:移除分红预算。", map[string]interface{}{
|
...
|
...
|
@@ -289,8 +289,8 @@ func (gateway HttplibAlliedCreationCooperation) DividendAestimatesdivDidendsEsti |
|
|
return &data, err
|
|
|
}
|
|
|
|
|
|
// Dividends-estimatesList-dividends-incentives 返回业绩激励分红详情
|
|
|
func (gateway HttplibAlliedCreationCooperation) Dividends-estimatesList-dividends-incentives(param ReqDividends-estimatesList-dividends-incentives) (*DataDividends-estimatesList-dividends-incentives, error) {
|
|
|
// DividendsEstimateListDividend 返回业绩激励分红详情
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimateListDividend(param ReqDividendsEstimateListDividend) (*DataDividendsEstimateListDividend, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/list-dividends-incentives"
|
|
|
method := "GET"
|
|
|
req := gateway.CreateRequest(url, method)
|
...
|
...
|
@@ -315,13 +315,13 @@ func (gateway HttplibAlliedCreationCooperation) Dividends-estimatesList-dividend |
|
|
if err != nil {
|
|
|
return nil, fmt.Errorf("解析返回业绩激励分红详情:%w", err)
|
|
|
}
|
|
|
var data DataDividends-estimatesList-dividends-incentives
|
|
|
var data DataDividendsEstimateListDividend
|
|
|
err = gateway.GetResponseData(result, &data)
|
|
|
return &data, err
|
|
|
}
|
|
|
|
|
|
// Dividends-estimates 返回分红预算列表
|
|
|
func (gateway HttplibAlliedCreationCooperation) Dividends-estimates(param ReqDividends-estimates) (*DataDividends-estimates, error) {
|
|
|
// DividendsEstimateList 返回分红预算列表
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimateList(param ReqDividendsEstimateList) (*DataDividendsEstimateList, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates"
|
|
|
method := "GET"
|
|
|
req := gateway.CreateRequest(url, method)
|
...
|
...
|
@@ -346,14 +346,14 @@ func (gateway HttplibAlliedCreationCooperation) Dividends-estimates(param ReqDiv |
|
|
if err != nil {
|
|
|
return nil, fmt.Errorf("解析返回分红预算列表:%w", err)
|
|
|
}
|
|
|
var data DataDividends-estimates
|
|
|
var data DataDividendsEstimateList
|
|
|
err = gateway.GetResponseData(result, &data)
|
|
|
return &data, err
|
|
|
}
|
|
|
|
|
|
// Dividends-estimates[dividendsEstimateId} 返回分红预算详情
|
|
|
func (gateway HttplibAlliedCreationCooperation) Dividends-estimates[dividendsEstimateId}(param ReqDividends-estimates[dividendsEstimateId}) (*DataDividends-estimates[dividendsEstimateId}, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/{dividendsEstimateId}"
|
|
|
//DividendsEstimateGet 返回分红预算详情
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimateGet(param ReqDividendsEstimateGet) (*DataDividendsEstimateGet, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/" + strconv.Itoa(param.DividendsEstimateId)
|
|
|
method := "GET"
|
|
|
req := gateway.CreateRequest(url, method)
|
|
|
log.Logger.Debug("向基础模块请求数据:返回分红预算详情。", map[string]interface{}{
|
...
|
...
|
@@ -377,13 +377,13 @@ func (gateway HttplibAlliedCreationCooperation) Dividends-estimates[dividendsEst |
|
|
if err != nil {
|
|
|
return nil, fmt.Errorf("解析返回分红预算详情:%w", err)
|
|
|
}
|
|
|
var data DataDividends-estimates[dividendsEstimateId}
|
|
|
var data DataDividendsEstimateGet
|
|
|
err = gateway.GetResponseData(result, &data)
|
|
|
return &data, err
|
|
|
}
|
|
|
|
|
|
// Dividends-estimatesList-money-incentives 返回金额激励分红列表
|
|
|
func (gateway HttplibAlliedCreationCooperation) Dividends-estimatesList-money-incentives(param ReqDividends-estimatesList-money-incentives) (*DataDividends-estimatesList-money-incentives, error) {
|
|
|
// DividendsEstimatesListMoney 返回金额激励分红列表
|
|
|
func (gateway HttplibAlliedCreationCooperation) DividendsEstimatesListMoney(param ReqDividendsEstimatesListMoney) (*DataDividendsEstimatesListMoney, error) {
|
|
|
url := gateway.baseUrL + "/dividends-estimates/list-money-incentives"
|
|
|
method := "GET"
|
|
|
req := gateway.CreateRequest(url, method)
|
...
|
...
|
@@ -408,8 +408,7 @@ func (gateway HttplibAlliedCreationCooperation) Dividends-estimatesList-money-in |
|
|
if err != nil {
|
|
|
return nil, fmt.Errorf("解析返回金额激励分红列表:%w", err)
|
|
|
}
|
|
|
var data DataDividends-estimatesList-money-incentives
|
|
|
var data DataDividendsEstimatesListMoney
|
|
|
err = gateway.GetResponseData(result, &data)
|
|
|
return &data, err
|
|
|
} |
|
|
|
...
|
...
|
|