import service from '@/utils/request'

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

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

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

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

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

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

// @Tags TwiMetamask
// @Summary 解绑电报
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TwiMetamask true "更新TwiMetamask 解绑电报"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"解绑成功"}"
// @Router /twiMetamask/updateTwiMetamask [put]
export const unbindTwiMetamaskTelegram = (data) => {
  return service({
    url: '/twiMetamask/unbindTelegram',
    method: 'put',
    data
  })
}

// @Tags TwiMetamask
// @Summary 解绑推特
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TwiMetamask true "更新TwiMetamask 解绑推特"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"解绑成功"}"
// @Router /twiMetamask/updateTwiMetamask [put]
export const unbindTwiMetamaskTwitter = (data) => {
  return service({
    url: '/twiMetamask/unbindTwitter',
    method: 'put',
    data
  })
}
