...
|
...
|
@@ -25,14 +25,27 @@ func (controller *CooperationApplicationController) ApplyForCooperation() { |
|
|
|
|
|
func (controller *CooperationApplicationController) ApprovalCooperationApplication() {
|
|
|
cooperationApplicationService := service.NewCooperationApplicationService(nil)
|
|
|
agreeCooperationApplicationCommand := &command.ApprovalCooperationApplicationCommand{}
|
|
|
_ = controller.Unmarshal(agreeCooperationApplicationCommand)
|
|
|
approvalCooperationApplicationCommand := &command.ApprovalCooperationApplicationCommand{}
|
|
|
_ = controller.Unmarshal(approvalCooperationApplicationCommand)
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
agreeCooperationApplicationCommand.CompanyId = header.CompanyId
|
|
|
agreeCooperationApplicationCommand.OrgId = header.OrgId
|
|
|
agreeCooperationApplicationCommand.UserId = header.UserId
|
|
|
agreeCooperationApplicationCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := cooperationApplicationService.ApprovalCooperationApplication(agreeCooperationApplicationCommand)
|
|
|
approvalCooperationApplicationCommand.CompanyId = header.CompanyId
|
|
|
approvalCooperationApplicationCommand.OrgId = header.OrgId
|
|
|
approvalCooperationApplicationCommand.UserId = header.UserId
|
|
|
approvalCooperationApplicationCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := cooperationApplicationService.ApprovalCooperationApplication(approvalCooperationApplicationCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *CooperationApplicationController) CancelCooperationApplication() {
|
|
|
cooperationApplicationService := service.NewCooperationApplicationService(nil)
|
|
|
cancelCooperationApplicationCommand := &command.CancelCooperationApplicationCommand{}
|
|
|
_ = controller.Unmarshal(cancelCooperationApplicationCommand)
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
cancelCooperationApplicationCommand.CompanyId = header.CompanyId
|
|
|
cancelCooperationApplicationCommand.OrgId = header.OrgId
|
|
|
cancelCooperationApplicationCommand.UserId = header.UserId
|
|
|
cancelCooperationApplicationCommand.UserBaseId = header.UserBaseId
|
|
|
data, err := cooperationApplicationService.CancelCooperationApplication(cancelCooperationApplicationCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
...
|
...
|
|