| | |
| | | ctx.Ok() |
| | | } |
| | | |
| | | |
| | | // checkServiceFollowupParams |
| | | func checkServiceFollowupParams(serviceFollowup request.ServiceFollowup) (errCode int, serviceFollowupModel model.ServiceFollowup) { |
| | | //if serviceFollowup.Number == "" { |
| | |
| | | return |
| | | } |
| | | |
| | | serviceFollowups, total, errCode := serviceFollowupService.GetServiceFollowupList(params.Page, params.PageSize, params.Keyword) |
| | | serviceFollowups, total, errCode := serviceFollowupService.GetServiceFollowupList(params.Page, params.PageSize, params.KeywordType, params.Keyword) |
| | | if errCode != ecode.OK { |
| | | ctx.Fail(errCode) |
| | | return |
| | | } |
| | | |
| | | ctx.OkWithDetailed(response.ServiceFollowupResponse{ |
| | | List: serviceFollowups, |
| | | List: serviceFollowups, |
| | | Count: int(total), |
| | | }) |
| | | } |
| | | } |