import service from '@/utils/request'

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

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

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

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

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

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