fix
wangpengfei
2023-08-18 9a7e0a7da01a9f9625ceaca0c61a59c540c6438f
api/v1/serviceFollowup.go
@@ -7,7 +7,6 @@
   "aps_crm/pkg/contextx"
   "aps_crm/pkg/ecode"
   "github.com/gin-gonic/gin"
   "strconv"
)
type ServiceFollowupApi struct{}
@@ -47,17 +46,17 @@
//   @Tags      ServiceFollowup
//   @Summary   删除服务跟进
//   @Produce   application/json
//   @Param      id   path      int   true   "查询参数"
//   @Param      object   body      request.DeleteServiceFollowup true   "查询参数"
//   @Success   200   {object}   contextx.Response{}
//   @Router      /api/serviceFollowup/delete/{id} [delete]
//   @Router      /api/serviceFollowup/delete [delete]
func (s *ServiceFollowupApi) Delete(c *gin.Context) {
   ctx, ok := contextx.NewContext(c, nil)
   var params request.DeleteServiceFollowup
   ctx, ok := contextx.NewContext(c, &params)
   if !ok {
      return
   }
   id, _ := strconv.Atoi(c.Param("id"))
   errCode := serviceFollowupService.DeleteServiceFollowup(id)
   errCode := serviceFollowupService.DeleteServiceFollowup(params.Ids)
   if errCode != ecode.OK {
      ctx.Fail(errCode)
      return
@@ -112,7 +111,7 @@
      ClientId:       serviceFollowup.ClientId,
      Number:         serviceFollowup.Number,
      ContactId:      serviceFollowup.ContactId,
      ServiceId:      serviceFollowup.ServiceId,
      ServiceOrderId: serviceFollowup.ServiceOrderId,
      MemberId:       serviceFollowup.MemberId,
      PlanId:         serviceFollowup.PlanId,
      SatisfactionId: serviceFollowup.Satisfaction,
@@ -142,7 +141,7 @@
      return
   }
   serviceFollowups, total, errCode := serviceFollowupService.GetServiceFollowupList(params.Page, params.PageSize, params.KeywordType, params.Keyword)
   serviceFollowups, total, errCode := serviceFollowupService.GetServiceFollowupList(params.Page, params.PageSize, params.KeywordType, params.Keyword, params.ServiceOrderId)
   if errCode != ecode.OK {
      ctx.Fail(errCode)
      return