import service from '@/utils/request'

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

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

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

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

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

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