fix
wangpengfei
2023-08-02 7e0823fc3b352cfcbb4a2f21088c00db2c00c395
api/v1/followRecord.go
@@ -7,7 +7,6 @@
   "aps_crm/pkg/contextx"
   "aps_crm/pkg/ecode"
   "github.com/gin-gonic/gin"
   "strconv"
   "time"
)
@@ -48,17 +47,17 @@
//   @Tags      FollowRecord
//   @Summary   删除跟进记录
//   @Produce   application/json
//   @Param      id   path      string   true   "跟进记录id"
//   @Param      object   body      request.DeleteFollowRecord true   "查询参数"
//   @Success   200   {object}   contextx.Response{}
//   @Router      /api/followRecord/delete/{id} [delete]
//   @Router      /api/followRecord/delete [delete]
func (fr *FollowRecordApi) Delete(c *gin.Context) {
   ctx, ok := contextx.NewContext(c, nil)
   var params request.DeleteFollowRecord
   ctx, ok := contextx.NewContext(c, &params)
   if !ok {
      return
   }
   id, _ := strconv.Atoi(c.Param("id"))
   errCode := followRecordService.DeleteFollowRecord(id)
   errCode := followRecordService.DeleteFollowRecord(params.Ids)
   if errCode != ecode.OK {
      ctx.Fail(errCode)
      return