正在显示
4 个修改的文件
包含
11 行增加
和
5 行删除
@@ -6,7 +6,9 @@ type SearchFeedbackCommand struct { | @@ -6,7 +6,9 @@ type SearchFeedbackCommand struct { | ||
6 | //操作人 | 6 | //操作人 |
7 | Operator domain.Operator `json:"-"` | 7 | Operator domain.Operator `json:"-"` |
8 | // 页面大小 | 8 | // 页面大小 |
9 | - PageNumber int64 `cname:"页码" json:"pageNumber,omitempty"` | 9 | + PageNumber int64 ` json:"pageNumber"` |
10 | // 页面大小 | 10 | // 页面大小 |
11 | - PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"` | 11 | + PageSize int64 ` json:"pageSize"` |
12 | + ContractName string `json:"contractName"` | ||
13 | + UndertakerName string `json:"undertakerName"` | ||
12 | } | 14 | } |
@@ -17,6 +17,8 @@ func (srv UndertakerFeedbackService) SearchFeedback(cmd *command.SearchFeedbackC | @@ -17,6 +17,8 @@ func (srv UndertakerFeedbackService) SearchFeedback(cmd *command.SearchFeedbackC | ||
17 | resultMenu, err := gateway.ContractUndertakerFeedbackSearch(allied_creation_cooperation.ReqContractUndertakerFeedbackSearch{ | 17 | resultMenu, err := gateway.ContractUndertakerFeedbackSearch(allied_creation_cooperation.ReqContractUndertakerFeedbackSearch{ |
18 | PageNumber: cmd.PageNumber, | 18 | PageNumber: cmd.PageNumber, |
19 | PageSize: cmd.PageSize, | 19 | PageSize: cmd.PageSize, |
20 | + CooperationContractName: cmd.ContractName, | ||
21 | + UndertakerName: cmd.UndertakerName, | ||
20 | }) | 22 | }) |
21 | if err != nil { | 23 | if err != nil { |
22 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 24 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
pkg/infrastructure/service_gateway/allied_creation_cooperation/param_contract_undertaker_feedback.go
@@ -36,9 +36,11 @@ type ( | @@ -36,9 +36,11 @@ type ( | ||
36 | type ( | 36 | type ( |
37 | ReqContractUndertakerFeedbackSearch struct { | 37 | ReqContractUndertakerFeedbackSearch struct { |
38 | // 页面大小 | 38 | // 页面大小 |
39 | - PageNumber int64 `cname:"页码" json:"pageNumber,omitempty"` | 39 | + PageNumber int64 `json:"pageNumber"` |
40 | // 页面大小 | 40 | // 页面大小 |
41 | - PageSize int64 `cname:"页面大小" json:"pageSize,omitempty"` | 41 | + PageSize int64 `json:"pageSize"` |
42 | + UndertakerName string `json:"undertakerName"` | ||
43 | + CooperationContractName string `json:"cooperationContractName"` | ||
42 | } | 44 | } |
43 | 45 | ||
44 | DataContractUndertakerFeedbackSearch struct { | 46 | DataContractUndertakerFeedbackSearch struct { |
@@ -6,5 +6,5 @@ import ( | @@ -6,5 +6,5 @@ import ( | ||
6 | ) | 6 | ) |
7 | 7 | ||
8 | func init() { | 8 | func init() { |
9 | - web.Router("/v1/web/contract-undertaker-feedbacks/search", &web_client.UndertakerFeedbackController{}, "Put:SearchFeedback") | 9 | + web.Router("/v1/web/contract-undertaker-feedbacks/search", &web_client.UndertakerFeedbackController{}, "Post:SearchFeedback") |
10 | } | 10 | } |
-
请 注册 或 登录 后发表评论