...
|
...
|
@@ -214,6 +214,19 @@ func (controller *CooperationController) SearchCooperationProject() { |
|
|
controller.ReturnPageListData(int64(total), data, err, cmd.PageNumber)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) SearchCooperationProjectContracts() {
|
|
|
svr := service.CooperationProjectService{}
|
|
|
cmd := &command.SearchCooperationProjectContractQuery{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
total, data, err := svr.SearchCooperationProjectContracts(cmd)
|
|
|
controller.ReturnPageListData(int64(total), data, err, cmd.PageNumber)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonSearchCooperationProject() {
|
|
|
svr := service.CooperationProjectService{}
|
|
|
cmd := &command.PersonSearchCooperationProjectQuery{}
|
...
|
...
|
@@ -227,6 +240,32 @@ func (controller *CooperationController) PersonSearchCooperationProject() { |
|
|
controller.ReturnPageListData(int64(total), data, err, cmd.PageNumber)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonSearchCooperationProjectStarred() {
|
|
|
svr := service.CooperationProjectService{}
|
|
|
cmd := &command.PersonSearchCooperationProjectQuery{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
total, data, err := svr.PersonSearchCooperationProject(cmd)
|
|
|
controller.ReturnPageListData(int64(total), data, err, cmd.PageNumber)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationController) PersonCooperationProjectSharedInfo() {
|
|
|
svr := service.CooperationProjectService{}
|
|
|
cmd := &command.PersonSearchCooperationProjectQuery{}
|
|
|
err := controller.Unmarshal(cmd)
|
|
|
if err != nil {
|
|
|
controller.Response(nil, err)
|
|
|
return
|
|
|
}
|
|
|
cmd.Operator = controller.GetOperator()
|
|
|
total, data, err := svr.PersonSearchCooperationProject(cmd)
|
|
|
controller.ReturnPageListData(int64(total), data, err, cmd.PageNumber)
|
|
|
}
|
|
|
|
|
|
//func (controller *CooperationController) PersonRecommendCooperationProject() {
|
|
|
// svr := service.CooperationProjectService{}
|
|
|
// cmd := &command.PersonSearchCooperationProjectQuery{}
|
...
|
...
|
|