| | |
| | | "aps_crm/pkg/contextx"
|
| | | "aps_crm/pkg/ecode"
|
| | | "github.com/gin-gonic/gin"
|
| | | "strconv"
|
| | | "time"
|
| | | )
|
| | |
|
| | |
| | | // @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, ¶ms) |
| | | 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
|