import service from '@/utils/request'

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

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

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

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

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

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