import service from '@/utils/request'

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

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

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

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

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

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