erp/resources/frontend/src/api/rankingData.js

108 lines
2.1 KiB
JavaScript
Raw Normal View History

2022-08-02 10:16:07 +08:00
/*
* @Description: 排名
* @Author: chenzhiwei (725551805@qq.com)
* @Date: 2021-08-02 16:09:41
* @LastEditors: czw (725551805@qq.com)
* @LastEditTime: 2022-03-03 22:17:09
* @FilePath: /glxt/src/api/rankingData.js
*/
2022-08-06 20:03:35 +08:00
import http from "@/util/http.js";
2022-08-02 10:16:07 +08:00
// export function rankingData(data) {
// // 传递参数
// return http({
// url: "newh5app/api/mobile/v1/music/rank/16/",
// method: "get",
// params: data // 传递参数
// });
// }
2022-08-06 20:03:35 +08:00
export function postadd(params) {
2022-08-02 10:16:07 +08:00
// 传递id
return http({
2022-08-06 20:03:35 +08:00
url: "/api/admin/auth/login", // 传递id
method: "post",
params: params,
});
2022-08-02 10:16:07 +08:00
}
// 列表
2022-08-06 20:03:35 +08:00
export function store_list(params) {
2022-08-02 10:16:07 +08:00
return http({
2022-08-06 20:03:35 +08:00
url: "/api/admin/shopGroups",
method: "get",
params: params,
});
2022-08-02 10:16:07 +08:00
}
2022-08-06 20:03:35 +08:00
export function storeDetail(params) {
2022-08-02 10:16:07 +08:00
return http({
2022-08-06 20:03:35 +08:00
url: "/storess/show",
method: "get",
params: params,
});
2022-08-02 10:16:07 +08:00
}
// 鲜花项目接口从这里开始
// 商品种类列表
2022-08-20 10:17:22 +08:00
export function goods_types(params) {
2022-08-02 10:16:07 +08:00
return http({
2022-08-06 20:03:35 +08:00
url: "/api/goods_types",
method: "get",
2022-08-20 10:17:22 +08:00
params,
2022-08-06 20:03:35 +08:00
});
2022-08-02 10:16:07 +08:00
}
// 商品种类列表删除
2022-08-06 20:03:35 +08:00
export function Delgoods_types(id) {
2022-08-02 10:16:07 +08:00
return http({
url: `/api/goods_types/${id}`,
2022-08-06 20:03:35 +08:00
method: "delete",
});
2022-08-02 10:16:07 +08:00
}
// 新增种类
2022-08-06 20:03:35 +08:00
export function Addgoods_types(data) {
2022-08-02 10:16:07 +08:00
return http({
2022-08-06 20:03:35 +08:00
url: "/api/goods_types/",
method: "post",
data,
});
2022-08-02 10:16:07 +08:00
}
// 编辑种类
2022-08-06 20:03:35 +08:00
export function editGoods_types(id, data) {
2022-08-02 10:16:07 +08:00
return http({
url: `/api/goods_types/${id}`,
2022-08-06 20:03:35 +08:00
method: "patch",
data,
});
2022-08-02 10:16:07 +08:00
}
// 商品品牌列表
2022-08-19 19:28:37 +08:00
export function Brand_goods_types(params) {
2022-08-02 10:16:07 +08:00
return http({
2022-08-06 20:03:35 +08:00
url: "/api/goods_brands",
method: "get",
params
2022-08-06 20:03:35 +08:00
});
2022-08-02 10:16:07 +08:00
}
// 商品品牌列表删除
2022-08-06 20:03:35 +08:00
export function DelBrand_goods_types(id) {
2022-08-02 10:16:07 +08:00
return http({
url: `/api/goods_brands/${id}`,
2022-08-06 20:03:35 +08:00
method: "delete",
});
2022-08-02 10:16:07 +08:00
}
// 新增品牌
2022-08-06 20:03:35 +08:00
export function AddBrandgoods_types(data) {
2022-08-02 10:16:07 +08:00
return http({
2022-08-06 20:03:35 +08:00
url: "/api/goods_brands",
method: "post",
data,
});
2022-08-02 10:16:07 +08:00
}
// 编辑品牌
2022-08-06 20:03:35 +08:00
export function editBrand_types(id, data) {
2022-08-02 10:16:07 +08:00
return http({
url: `/api/goods_brands/${id}`,
2022-08-06 20:03:35 +08:00
method: "patch",
data,
});
2022-08-04 18:59:32 +08:00
}