import service from '@/utils/request'

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

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

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

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

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

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

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