| | |
| | | if !ok { |
| | | return |
| | | } |
| | | |
| | | errCode, serviceContract := checkServiceContractParams(params.ServiceContract) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | |
| | | return |
| | | } |
| | | |
| | | serviceContracts, total, errCode := serviceContractService.GetServiceContractList(params.Page, params.PageSize, params.Keyword) |
| | | serviceContracts, total, errCode := serviceContractService.GetServiceContractList(params.Page, params.PageSize, params.QueryClass, params.KeywordType, params.Keyword) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | | return |
| | |
| | | List: serviceContracts, |
| | | Count: int(total), |
| | | }) |
| | | } |
| | | } |