...
|
...
|
@@ -3,6 +3,7 @@ package mobile_client |
|
|
import (
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/command"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/application/mobile/cooperation/service"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/log"
|
|
|
)
|
|
|
|
|
|
// Controller
|
...
|
...
|
@@ -180,6 +181,7 @@ func (controller *CooperationController) UpdateCooperationProject() { |
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.CooperationProjectId = controller.GetString(":projectId")
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.UpdateCooperationProject(cmd)
|
|
|
controller.Response(data, err)
|
...
|
...
|
@@ -208,7 +210,7 @@ func (controller *CooperationController) SearchCooperationProject() { |
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
total, data, err := svr.SearchCooperationProject(cmd)
|
|
|
controller.returnPageListData(int64(total), data, err, cmd.PageNumber)
|
|
|
controller.ReturnPageListData(int64(total), data, err, cmd.PageNumber)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonSearchCooperationProject() {
|
...
|
...
|
@@ -230,8 +232,7 @@ func (controller *CooperationController) CreditAccountSearch() { |
|
|
cmd := &command.CreditAccountSearchCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CreditAccountSearch(cmd)
|
...
|
...
|
@@ -243,8 +244,7 @@ func (controller *CooperationController) CreditAccountGet() { |
|
|
cmd := &command.CreditAccountGetCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CreditAccountGet(cmd)
|
...
|
...
|
@@ -256,8 +256,7 @@ func (controller *CooperationController) CreditAccountPay() { |
|
|
cmd := &command.CreditAccountPayCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CreditAccountPay(cmd)
|
...
|
...
|
@@ -269,8 +268,7 @@ func (controller *CooperationController) CreditAccountPaySearch() { |
|
|
cmd := &command.CreditAccountPaySearchCommand{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
log.Logger.Error(err.Error())
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
data, err := svr.CreditAccountPaySearch(cmd)
|
...
|
...
|
|