作者 tangxuhui

更新

... ... @@ -6,7 +6,9 @@ type SearchFeedbackCommand struct {
//操作人
Operator domain.Operator `json:"-"`
// 页面大小
PageNumber int64 `cname:"页码" json:"pageNumber,omitempty"`
PageNumber int64 ` json:"pageNumber"`
// 页面大小
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 ` json:"pageSize"`
ContractName string `json:"contractName"`
UndertakerName string `json:"undertakerName"`
}
... ...
... ... @@ -15,8 +15,10 @@ func (srv UndertakerFeedbackService) SearchFeedback(cmd *command.SearchFeedbackC
gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
cmd.Operator)
resultMenu, err := gateway.ContractUndertakerFeedbackSearch(allied_creation_cooperation.ReqContractUndertakerFeedbackSearch{
PageNumber: cmd.PageNumber,
PageSize: cmd.PageSize,
PageNumber: cmd.PageNumber,
PageSize: cmd.PageSize,
CooperationContractName: cmd.ContractName,
UndertakerName: cmd.UndertakerName,
})
if err != nil {
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
... ...
... ... @@ -36,9 +36,11 @@ type (
type (
ReqContractUndertakerFeedbackSearch struct {
// 页面大小
PageNumber int64 `cname:"页码" json:"pageNumber,omitempty"`
PageNumber int64 `json:"pageNumber"`
// 页面大小
PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"`
PageSize int64 `json:"pageSize"`
UndertakerName string `json:"undertakerName"`
CooperationContractName string `json:"cooperationContractName"`
}
DataContractUndertakerFeedbackSearch struct {
... ...
... ... @@ -6,5 +6,5 @@ import (
)
func init() {
web.Router("/v1/web/contract-undertaker-feedbacks/search", &web_client.UndertakerFeedbackController{}, "Put:SearchFeedback")
web.Router("/v1/web/contract-undertaker-feedbacks/search", &web_client.UndertakerFeedbackController{}, "Post:SearchFeedback")
}
... ...