...
|
...
|
@@ -61,13 +61,11 @@ func (controller *ContractUndertakerFeedbackController) RemoveContractUndertaker |
|
|
contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
|
|
|
removeContractUndertakerFeedbackCommand := &command.RemoveContractUndertakerFeedbackCommand{}
|
|
|
_ = controller.Unmarshal(removeContractUndertakerFeedbackCommand)
|
|
|
// 解析头部信息
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
removeContractUndertakerFeedbackCommand.CompanyId = header.CompanyId
|
|
|
removeContractUndertakerFeedbackCommand.OrgId = header.OrgId
|
|
|
removeContractUndertakerFeedbackCommand.UserId = header.UserId
|
|
|
removeContractUndertakerFeedbackCommand.UserBaseId = header.UserBaseId
|
|
|
// 解析路径参数
|
|
|
contractUndertakerFeedbackId := controller.GetString(":contractUndertakerFeedbackId")
|
|
|
removeContractUndertakerFeedbackCommand.FeedbackId = contractUndertakerFeedbackId
|
|
|
data, err := contractUndertakerFeedbackService.RemoveContractUndertakerFeedback(removeContractUndertakerFeedbackCommand)
|
...
|
...
|
@@ -77,17 +75,12 @@ func (controller *ContractUndertakerFeedbackController) RemoveContractUndertaker |
|
|
func (controller *ContractUndertakerFeedbackController) SearchContractUndertakerFeedback() {
|
|
|
contractUndertakerFeedbackService := service.NewContractUndertakerFeedbackService(nil)
|
|
|
searchContractUndertakerFeedbackQuery := &query.SearchContractUndertakerFeedbackQuery{}
|
|
|
// 解析头部信息
|
|
|
_ = controller.Unmarshal(searchContractUndertakerFeedbackQuery)
|
|
|
header := controller.GetRequestHeader(controller.Ctx)
|
|
|
searchContractUndertakerFeedbackQuery.CompanyId = header.CompanyId
|
|
|
searchContractUndertakerFeedbackQuery.OrgId = header.OrgId
|
|
|
searchContractUndertakerFeedbackQuery.UserId = header.UserId
|
|
|
searchContractUndertakerFeedbackQuery.UserBaseId = header.UserBaseId
|
|
|
// 获取路径参数
|
|
|
pageSize, _ := controller.GetInt64("pageSize")
|
|
|
searchContractUndertakerFeedbackQuery.PageSize = pageSize
|
|
|
pageNumber, _ := controller.GetInt64("pageNumber")
|
|
|
searchContractUndertakerFeedbackQuery.PageNumber = pageNumber
|
|
|
data, err := contractUndertakerFeedbackService.SearchContractUndertakerFeedback(searchContractUndertakerFeedbackQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
|