98 lines
3.1 KiB
JavaScript
Executable File
98 lines
3.1 KiB
JavaScript
Executable File
import service from '@/utils/request'
|
|
|
|
// @Tags ProductCategory
|
|
// @Summary 创建农资行情分类表
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param data body model.ProductCategory true "创建农资行情分类表"
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
|
|
// @Router /productCategory/createProductCategory [post]
|
|
export const createProductCategory = (data) => {
|
|
return service({
|
|
url: '/productCategory/createProductCategory',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// @Tags ProductCategory
|
|
// @Summary 删除农资行情分类表
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param data body model.ProductCategory true "删除农资行情分类表"
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
|
|
// @Router /productCategory/deleteProductCategory [delete]
|
|
export const deleteProductCategory = (params) => {
|
|
return service({
|
|
url: '/productCategory/deleteProductCategory',
|
|
method: 'delete',
|
|
params
|
|
})
|
|
}
|
|
|
|
// @Tags ProductCategory
|
|
// @Summary 批量删除农资行情分类表
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param data body request.IdsReq true "批量删除农资行情分类表"
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
|
|
// @Router /productCategory/deleteProductCategory [delete]
|
|
export const deleteProductCategoryByIds = (params) => {
|
|
return service({
|
|
url: '/productCategory/deleteProductCategoryByIds',
|
|
method: 'delete',
|
|
params
|
|
})
|
|
}
|
|
|
|
// @Tags ProductCategory
|
|
// @Summary 更新农资行情分类表
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param data body model.ProductCategory true "更新农资行情分类表"
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
|
|
// @Router /productCategory/updateProductCategory [put]
|
|
export const updateProductCategory = (data) => {
|
|
return service({
|
|
url: '/productCategory/updateProductCategory',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
// @Tags ProductCategory
|
|
// @Summary 用id查询农资行情分类表
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param data query model.ProductCategory true "用id查询农资行情分类表"
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
|
|
// @Router /productCategory/findProductCategory [get]
|
|
export const findProductCategory = (params) => {
|
|
return service({
|
|
url: '/productCategory/findProductCategory',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// @Tags ProductCategory
|
|
// @Summary 分页获取农资行情分类表列表
|
|
// @Security ApiKeyAuth
|
|
// @accept application/json
|
|
// @Produce application/json
|
|
// @Param data query request.PageInfo true "分页获取农资行情分类表列表"
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
|
// @Router /productCategory/getProductCategoryList [get]
|
|
export const getProductCategoryList = (params) => {
|
|
return service({
|
|
url: '/productCategory/getProductCategoryList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|