import service from '@/utils/request'

// @Tags TwiActFinish
// @Summary 创建TwiActFinish
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TwiActFinish true "创建TwiActFinish"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /twiActFinish/createTwiActFinish [post]
export const createTwiActFinish = (data) => {
  return service({
    url: '/twiActFinish/createTwiActFinish',
    method: 'post',
    data
  })
}

// @Tags TwiActFinish
// @Summary 删除TwiActFinish
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TwiActFinish true "删除TwiActFinish"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /twiActFinish/deleteTwiActFinish [delete]
export const deleteTwiActFinish = (data) => {
  return service({
    url: '/twiActFinish/deleteTwiActFinish',
    method: 'delete',
    data
  })
}

// @Tags TwiActFinish
// @Summary 删除TwiActFinish
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除TwiActFinish"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /twiActFinish/deleteTwiActFinish [delete]
export const deleteTwiActFinishByIds = (data) => {
  return service({
    url: '/twiActFinish/deleteTwiActFinishByIds',
    method: 'delete',
    data
  })
}

// @Tags TwiActFinish
// @Summary 更新TwiActFinish
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TwiActFinish true "更新TwiActFinish"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /twiActFinish/updateTwiActFinish [put]
export const updateTwiActFinish = (data) => {
  return service({
    url: '/twiActFinish/updateTwiActFinish',
    method: 'put',
    data
  })
}

// @Tags TwiActFinish
// @Summary 用id查询TwiActFinish
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.TwiActFinish true "用id查询TwiActFinish"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /twiActFinish/findTwiActFinish [get]
export const findTwiActFinish = (params) => {
  return service({
    url: '/twiActFinish/findTwiActFinish',
    method: 'get',
    params
  })
}

// @Tags TwiActFinish
// @Summary 分页获取TwiActFinish列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取TwiActFinish列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /twiActFinish/getTwiActFinishList [get]
export const getTwiActFinishList = (params) => {
  return service({
    url: '/twiActFinish/getTwiActFinishList',
    method: 'get',
    params
  })
}
